I can import test cases to Microsoft Test Manager from unit test assembly created in Visual Studio using tcm testcase import command.When I try to import test cases but using NUnit assembly the command fails saying "No Tests found to import".Is there another way by which I can import test cases created in Nunit to Microsoft Test Manager?
相关问题
- Partial Code Coverage C# - Nunit
- Expect exceptions in nUnit without the ExpectedExc
- How can I output results of tests ran with NUnit 3
- NUnit Unit Test has “ExpectedException” but still
- Why can't the NUnit Test Adapter find my FsUni
相关文章
- How to set the value of a query string in test met
- How to unit-test a class which needs a specific fi
- How do I ignore a test based on another test in NU
- Test projects not reading app.config in TeamCity -
- How can I display more info in an error message wh
- Dependencies not flowing between dependent project
- Unit testing methods using AddOrUpdate with Entity
- NUnit test with Application loop in it hangs when
We were able to pick up our NUnit tests fine using
tcm
to import to MTM, by adding aTestMethodAttribute
to our NUnit test methods.For example:
Using the fully-qualified reference to
TestMethod
was preferred over a using directive, since several of the class names clash between either implementation so this would introduce an ambiguity.With the above in place, we were then able to successfully call
tcm.exe
to import these tests:No, your tests need to be in the MSTest framework in order to be integrated with the Microsoft Test Manager. If you want to use MTM you need to convert your NUnit Test cases into MSTests. You can refer this URL in order to achieve this.