chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
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 by ashernave (1.2k 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 .
answered by alex (17k 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 by ashernave (1.2k 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 by Shai Barak (1.5k points)
...