Skip to content

Commit

Permalink
instrument temp module instead in TestCoverage test function
Browse files Browse the repository at this point in the history
  • Loading branch information
tonerdo committed Mar 24, 2018
1 parent f442e6a commit dabc081
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/coverlet.core.tests/CoverageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ public void TestCoverage()
string identifier = Guid.NewGuid().ToString();

var directory = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), identifier));
var tempModule = Path.Combine(directory.FullName, Path.GetFileName(module));

File.Copy(module, Path.Combine(directory.FullName, Path.GetFileName(module)), true);
File.Copy(module, tempModule, true);

var coverage = new Coverage(module, identifier);
var coverage = new Coverage(tempModule, identifier);
coverage.PrepareModules();

var result = coverage.GetCoverageResult();
Expand Down

0 comments on commit dabc081

Please sign in to comment.