visual studio - Ignore unit tests part of an ordered test -


i've got vs2015 update 2 solution includes unit test project. part of test project, i've got bunch of unit tests , integration tests.

the integration tests ordered tests fire off bunch of test method in correct sequence, along initialization code injects actual dependencies instead of mocks.

when run tests vs, it's hitting unit tests in ordered tests twice. guess once because they're in ordered tests file, , once because methods labeled [testmethod] (but otherwise can't add them ordered test file). not intended; need these methods run part of ordered test, should not fire off individually (in wrong sequence).

in end decided go 1 testmethod calls several methods integration scenario. eliminates need 'hide' tests part of ordered test, in fact eliminates entire need ordered test. word of caution: should not calling other tests within test, create seperate class sets integration test scenario , runs of tests want perform.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -