Skip to content

Commit

Permalink
Support for DotCover configuration file added - fixes cake-build#1401
Browse files Browse the repository at this point in the history
Support for DotCover configuration file added - fixes cake-build#1401
  • Loading branch information
AdaskoTheBeAsT committed Jul 19, 2018
1 parent 5cad948 commit f3598e5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 68 deletions.
Expand Up @@ -297,7 +297,7 @@ public void Should_Capture_NUnit()
}

[Fact]
public void Should_Append_ConfigurationFile_RelativePath()
public void Should_Append_ConfigurationFile()
{
// Given
var fixture = new DotCoverAnalyserFixture();
Expand All @@ -311,22 +311,6 @@ public void Should_Append_ConfigurationFile_RelativePath()
"/TargetArguments=\"-argument\" " +
"/Output=\"/Working/result.xml\"", result.Args);
}

[Fact]
public void Should_Append_ConfigurationFile_AbsolutePath()
{
// Given
var fixture = new DotCoverAnalyserFixture();
fixture.Settings.WithConfigFile(new FilePath("C:/config.xml"));

// When
var result = fixture.Run();

// Then
Assert.Equal("Analyse \"C:/config.xml\" /TargetExecutable=\"/Working/tools/Test.exe\" " +
"/TargetArguments=\"-argument\" " +
"/Output=\"/Working/result.xml\"", result.Args);
}
}
}
}
Expand Up @@ -277,7 +277,7 @@ public void Should_Capture_NUnit()
}

[Fact]
public void Should_Append_ConfigurationFile_RelativePath()
public void Should_Append_ConfigurationFile()
{
// Given
var fixture = new DotCoverCovererFixture();
Expand All @@ -291,22 +291,6 @@ public void Should_Append_ConfigurationFile_RelativePath()
"/TargetArguments=\"-argument\" " +
"/Output=\"/Working/result.dcvr\"", result.Args);
}

[Fact]
public void Should_Append_ConfigurationFile_AbsolutePath()
{
// Given
var fixture = new DotCoverCovererFixture();
fixture.Settings.WithConfigFile(new FilePath("C:/config.xml"));

// When
var result = fixture.Run();

// Then
Assert.Equal("Cover \"C:/config.xml\" /TargetExecutable=\"/Working/tools/Test.exe\" " +
"/TargetArguments=\"-argument\" " +
"/Output=\"/Working/result.dcvr\"", result.Args);
}
}
}
}
Expand Up @@ -89,7 +89,7 @@ public void Should_Append_LogFile()
}

[Fact]
public void Should_Append_ConfigurationFile_RelativePath()
public void Should_Append_ConfigurationFile()
{
// Given
var fixture = new DotCoverMergerFixture();
Expand All @@ -103,22 +103,6 @@ public void Should_Append_ConfigurationFile_RelativePath()
"/Source=\"/Working/result1.dcvr;/Working/result2.dcvr\" " +
"/Output=\"/Working/result.dcvr\"", result.Args);
}

[Fact]
public void Should_Append_ConfigurationFile_AbsolutePath()
{
// Given
var fixture = new DotCoverMergerFixture();
fixture.Settings.WithConfigFile(new FilePath("C:/config.xml"));

// When
var result = fixture.Run();

// Then
Assert.Equal("Merge \"C:/config.xml\" " +
"/Source=\"/Working/result1.dcvr;/Working/result2.dcvr\" " +
"/Output=\"/Working/result.dcvr\"", result.Args);
}
}
}
}
Expand Up @@ -97,7 +97,7 @@ public void Should_Append_LogFile()
}

[Fact]
public void Should_Append_ConfigurationFile_RelativePath()
public void Should_Append_ConfigurationFile()
{
// Given
var fixture = new DotCoverReporterFixture();
Expand All @@ -111,22 +111,6 @@ public void Should_Append_ConfigurationFile_RelativePath()
"/Source=\"/Working/result.dcvr\" " +
"/Output=\"/Working/result.xml\"", result.Args);
}

[Fact]
public void Should_Append_ConfigurationFile_AbsolutePath()
{
// Given
var fixture = new DotCoverReporterFixture();
fixture.Settings.WithConfigFile(new FilePath("C:/config.xml"));

// When
var result = fixture.Run();

// Then
Assert.Equal("Report \"C:/config.xml\" " +
"/Source=\"/Working/result.dcvr\" " +
"/Output=\"/Working/result.xml\"", result.Args);
}
}
}
}

0 comments on commit f3598e5

Please sign in to comment.