Sharing unit test with multiple projects

I have a common db unit test, which is used to check name matching, it is shared between several projects as an existing file link in visual studio, and this works fine for each project (each project is specific to db). However, it interrupts the support of the VS-test editor, since projects with a shared file do not appear in the test view, because an error is displayed during loading: Error loading C: \: Test "DefaultConstraints" from "c: \ listtest.dll", which is loaded , has the same TestId {3c0c0672-f45b-4b13-697a-77d588b873e4} as the test "DefaultConstraints", already downloaded from c: \ sandbox \ commontest.dll ".

So, I cannot run the test in VS, but I can use MSBuild, is there a better way to share common tests?

+3
source share

Source: https://habr.com/ru/post/1780197/


All Articles