Welcome to Typemock Answers. Here you can ask and receive answers from other community members. And if you liked or disliked an answer or thread: react with an up- or downvote Enjoy!

How to make the smart test runner in VS skip a test project

0 votes
Hi all,

We have installed Typemock version 7.4.3. Our solutions contains both integration test project and a few unit tests project. We want to be able to make the test runner in VS skip the execution in the integration tests project. Is there a way to do it?

Thanks,
Asher
asked Feb 6, 2014 by ashernave (220 points)

3 Answers

0 votes
Hi Asher,

If you're asking about Smart-Runner, then this feature is already built in.
On the first time you run a test, the Smart-Runner classifies it as either a fast test or a slow test.
Tests that are classified as slow(longer than 2 sec) will run for another 3 seconds.
After 5 seconds overall the runner will kill the test execution and continue to the next test.

The slow test will not be ran the next time you run all test.
A slow test session will be triggered either manually or when your machine is in Idle(5 minutes).

You can also put the don't-run attribute in this case the test will be transparent to the Smart-Runner .

 

Alex Galin | Support Team

answered Feb 6, 2014 by alex (17,910 points)
0 votes
Hi Alex,

I don't want to run the tests automatically at all, because I don't want to get false tests result. The runner shows all fail tests in the same list and I am not sure which one is an integration test and which is a unit test. Breakdown to assembly level would have helped. The "don't run" attribute is a better solution for me, although I wish it was in the assembly level.

Thanks,
Asher
answered Feb 9, 2014 by ashernave (220 points)
0 votes
Hi Asher,

Thank you for raising this issue.

Currently you can use the DontRun attribute on Classes and Methods only.
We intend to make it work on Assembly level as well but i can't give a time frame for that.
answered Feb 10, 2014 by Shai Barak (1,460 points)
...