Skip to content

sawyer-effect/tdd-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Environment for TDD with JS

Installation

  • Install VirtualBox
  • Install vagrant
  • Install Ansible
  • Clone repository: git clone git@github.com: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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published