I have multiple Mocha test suites in the same NTVS project. When I run the tests in this project from Test Explorer by right clicking and selecting 'Run All Tests', each test is run as its own test suite. Is this by design or is there a way to control how VS runs the test? This same behavior occurs when running the tests as part of a TFS build.
Please let me know if you need me to elaborate on anything.
Thanks!
Expected Behavior
before()
run test 1
run test 2
run test 3
after()
Actual Behavior
before()
run test 1
after()
before()
run test 2
after()
before()
run test 3
after()
- NTVS Version: 1.1
- Visual Studio Version: 2013 Professional Update 5
- Node.js Version: 4.4.7
Steps to Reproduce
- Create simple Mocha test suite with multiple tests and before() and after()
- Right click on project in Test Explorer and select 'Run All Tests'
- Observer that before() and after() are called for each test
I have multiple Mocha test suites in the same NTVS project. When I run the tests in this project from Test Explorer by right clicking and selecting 'Run All Tests', each test is run as its own test suite. Is this by design or is there a way to control how VS runs the test? This same behavior occurs when running the tests as part of a TFS build.
Please let me know if you need me to elaborate on anything.
Thanks!
Expected Behavior
before()
run test 1
run test 2
run test 3
after()
Actual Behavior
before()
run test 1
after()
before()
run test 2
after()
before()
run test 3
after()
Steps to Reproduce