Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 983 Bytes

README.md

File metadata and controls

47 lines (31 loc) · 983 Bytes

Environment for TDD with JS

Installation

  • Install VirtualBox
  • Install vagrant
  • Install Ansible
  • Clone repository: git clone [email protected]:sawyer-effect/tdd-js.git

To run VM

  • Go to project dir: cd tdd-js
  • Execute command vagrant up

To run tests

To run tests you can run the following commads:

Grunt

vagrant ssh -c "grunt --gruntfile /opt/software/tdd-js/Gruntfile.js test"

Gulp

vagrant ssh -c "gulp --gulpfile /opt/software/tdd-js/Gulpfile.js test"

Tasks to run in Jenkins

Karma

cd /opt/software/tdd-js
./node_modules/.bin/karma start --single-run --browsers PhantomJS

tdd_framework

curl http://[HOST]/on/demandware.store/Sites-[SITE_NAME]-Site/default/Tester-Run\?suite\=[SUITE_NAME]\&cartridge\=[CARTRIDGE_NAME]\&testid\=-1 | if [ `jq '.passed'` != "false"  ] ; then exit 1 ; else exit 0 ; fi