This is the concluding post part 6 of 6 posts. you can find the previous post here.
Guideline and thought process of using the complete structure:
- Always keep the JavaScript tests in .js files under Test projects
- Refer production files from Main project.
- Reason to write tests for each function separately because it will help in troubleshooting to correct broken function.
- Always inherit from base : JavaScriptTestBase
- JavaScript Function name is case sensitive. Just be careful!
- In Setup function use AppendProdJavaScriptFile() to all production JavaScript file to test.
- The path of the JavaScript file name mentioned in MS Test is critical.
I hope this 6 part series was helpful for you to set up your JSTest.Net infrastructure.
Happy Testing!
1 comment