Test runner has race condition when run multi threaded #264

Open
opened 2026-01-29 22:09:14 +00:00 by claunia · 1 comment
Owner

Originally created by @coderb on GitHub (Dec 17, 2017).

I'm using the built in xunit test runner of VS2017 and when I do "Run All" the unit tests step on each other's toes due to the shared Scratch directory which is cleared out.

Each test case should probably use it's own subdir eg .../Scratch/UUID/ for the tests.

Originally created by @coderb on GitHub (Dec 17, 2017). I'm using the built in xunit test runner of VS2017 and when I do "Run All" the unit tests step on each other's toes due to the shared `Scratch` directory which is cleared out. Each test case should probably use it's own subdir eg .../Scratch/UUID/ for the tests.
Author
Owner

@adamhathcock commented on GitHub (Dec 17, 2017):

That’s probably a good idea. I thought I had been locking threads manually.

I’ve been using xunit

@adamhathcock commented on GitHub (Dec 17, 2017): That’s probably a good idea. I thought I had been locking threads manually. I’ve been using xunit
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#264