Skip to content

rmunn/dotnet-test-xunit-timing-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bug repro

Reproduction for a timing bug in dotnet test.

To reproduce:

  • Clone this repo
  • Run time dotnet test --logger "console;verbosity=quiet
  • Note the time elapsed that dotnet test reports is the time taken to run the second test
  • Run time dotnet test --logger "console;verbosity=normal
  • Note the time elapsed is now correct

When running with verbosity=quiet, whichever test runs first, its time elapsed will not be counted in the total. Try changing the time spent in Task.Delay calls, or adding a third test that sleeps a different number of seconds. The results are consistent: the total time reported is the actual time taken minus the time taken by the first test to run.

When running with verbosity=normal, the time elapsed is correct, counting all tests in its total.

About

Repro for timing issue with dotnet test and xUnit

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages