I hope this helps you . I figured it out by unloading other unit test projects and then running tests until it worked, apparently one of them was using some older prism references and those files were being included instead of the updated ones, the issue is now resolved after I removed and readded the references.
Three Unit tests pass when run separately, only one passes when run together
hop of those help? Since the Program.Main is static, your CarList is probably also static. NUnit runs tests in parallel, so each of the tests is running at nearly the same time and each is clearing the list and adding to it at the same time. That is why your tests run fine on their own, but fail when run together. One starts up and starts testing, then the second comes along and changes the data that the first test is working with.
Unit Tests failing when I Run All Tests but pass when I Debug
it helps some times The failing tests share a resource that affects them all when tested together. Recheck the affected tests and their subjects. You should also look into static fields or properties in the subjects. They tends to cause issues if not used properly when designing your classes.
Can pom.xml be set up to run testNG(UI perf. tests) tests and jUnit(unit tests) tests separately, from command line?
Hope that helps Yes you can do that. You need to make two separate testng files with different names and add unit tests in one testng and performance tests in other and you can parameterised it from the pom.xml like: