Skip to content

Commit

Permalink
* Appveyor tests skipped until #1 solved.
Browse files Browse the repository at this point in the history
  • Loading branch information
Blind-Striker committed Dec 6, 2018
1 parent bac30b0 commit 3fd2ec7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
14 changes: 10 additions & 4 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ Task("Test")
settings.Configuration = configuration;

string appveyor = EnvironmentVariable("APPVEYOR");
if(!string.IsNullOrEmpty(appveyor) && appveyor == "True")
{
settings.ArgumentCustomization = args => args.Append(" --test-adapter-path:. --logger:Appveyor");
}
// if(!string.IsNullOrEmpty(appveyor) && appveyor == "True")
// {
// settings.ArgumentCustomization = args => args.Append(" --test-adapter-path:. --logger:Appveyor");
// }

IList<TestProjMetadata> testProjMetadatas = GetProjMetadatas();

Expand All @@ -60,6 +60,12 @@ Task("Test")
Information($"Running {targetFramework.ToUpper()} tests for {testProj.AssemblyName}");
settings.Framework = targetFramework;

// Temporary workaround. See https://github.com/armutcom/armut-opentracing-contrib-instrumentation/issues/1
if(appveyor == "True")
{
continue;
}

if(IsRunningOnUnix() && targetFramework == "net461")
{
RunXunitUsingMono(targetFramework, $"{testProj.DirectoryPath}/bin/Release/{targetFramework}/{testProj.AssemblyName}.dll");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public async Task Creates_span()
Assert.Single(_tracer.FinishedSpans());
}

// [Fact]
[Fact]
public async Task Span_is_child_of_parent()
{
// Create parent span
Expand All @@ -113,7 +113,7 @@ public async Task Span_is_child_of_parent()
Assert.Same(parentSpan.Context, childSpan.References[0].Context);
}

// [Fact]
[Fact]
public async Task Span_has_correct_properties()
{
await _httpClient.SendAsync(new HttpRequestMessage(HttpMethod.Get, new Uri("http://www.example.com/api/values")));
Expand Down Expand Up @@ -227,7 +227,7 @@ public async Task Creates_error_span_if_request_times_out()
Assert.True(span.Tags[Tags.Error.Key] as bool?);
}

// [Fact]
[Fact]
public async Task Creates_error_span_if_request_fails()
{
var request = new HttpRequestMessage(HttpMethod.Get, new Uri("http://www.example.com/api/values"));
Expand Down

0 comments on commit 3fd2ec7

Please sign in to comment.