testing - PhantomJS teamcity config -
in teamcity config have build step runs phantomjs tests. "command line" step custom script. script looks like:
%phantomjs% createentitypopuptest\unit.htm
%phantomjs% excelimportpopuptest\unit.htm
... etc.
so runs each qunit test package mentioned in htm page. didn't manage find way point phantomjs (phantomjs-1.9.0-windows) folder, not single file. there no need change config each time when add new files tests.
i used chutzpah wrap behavior use in teamcity. chutzpah can run tests written in qunit, jasmine or mocha , uses phantomjs headless test runner.
https://github.com/mmanela/chutzpah
i installed on build agents , added path on machine.
now add command line runner step called 'run js test' in build template. command line simply:
chutzpah.console.exe %jstestfolder%
then define parameter each project pointing folder... chutzpah rest.
Comments
Post a Comment