Wednesday 2 March 2016

TFS running javascript tests

As JavaScript development becomes more first class citizen so does its testing.
I have started to write more JavaScript code and want to be sure that I have not broke anything and prove that the code does what expected without hidden traps

I am attempting to do so on configuration:
TFS 2012
VisualStudio 2012
Windows

Assumptions
You know how to write unit test using jasmine test runner
You can create successful build on your tfs

Structure:
Here you will be able to see my code structure for this project.




I have wrote a sample tests

Now I need to make it run on TFS

I had to create a location shared code that contain jasmine resource this resource is added as follows




 In Team Explorer, go to the Builds section and Edit your Build Definition which will run the javascript tests.
- Click on the Process tab
 - Select the row named Automated Tests.
 - Click on … button next to the value.
 Select the Tests to Run and click Edit. Change the Test assembly specification to **\*.js




No comments:

Post a Comment