FAQ: Why are my tests not included in the test run?
As an alternative to Microsoft Test Manager (MTM), users can use tcm.exe command line to run and manage their test cases. The command line way is particularly useful in running tests in non-interactive way (say via scripts).
FAQ: While using “tcm.exe run” command to run all the test cases in a test plan\suite is –
- Either, The “tcm.exe run /create” command gives “A test run must be created with at least one test case.” error. Why?
- Or, The “tcm.exe run /create” command is not running all my test cases in the test suite. Why?
A: By default, “tcm.exe run /create” command creates a test run for only tests (or rather test points for more knowledgeable ones) in active state and ignores tests not in active state. (Refer screenshot below to understand what I mean by active state here.) This is deliberate to ensure users can avoid rerunning tests that have already passed and can control what to run by moving it to active in MTM.
You can however specify /include option to tcm.exe run command to force include all the tests.