How to configure unique MSTEST folder

84 Views Asked by At

I am running SQL Server CE unit tests with Visual Studio 2015.

Test output folder is default to

TestResults\user.name_HOST-PC 2016-12-18 15_36_34\Out

The problem is that tests are running fast and there are few tests that can run in same second, get equally same output directory and therefore lock the SQL Server CE .sdf file each to other.

I am looking for a way to tell to VS to create output folder with milliseconds or a GUI in folder name but did not find any solution

1

There are 1 best solutions below

0
On

Evenually, the solution (partial) was to generate globally unique file names to .sdf files.

I just added a GUID to .sdf database filename name, so even if two tests are running at the same second, they have different connection strings and work with different files