Skip to content

Testing

Filip Hnízdo edited this page Aug 4, 2016 · 1 revision
  • install the following global command $> npm install -g grunt-cli jasmine-node pm2
  • clone the iris-project-template or you may setup your own site by following the iris wiki and add the package.json dev-dependencies to be found in iris-project-template $> git clone https://github.com/CityWebConsultants/iris-project-template.git
  • install all the package.json dependencies including dev $> npm install --only=dev
  • navigate to your test mongodb and import the following json file, you may ommit this import, by modifying the test_config.js available in the test folder to you current set of admin account $> mongoimport --db mysite --collection users --file fixtures/users.json $> mongoimport --db mysite --collection pages --file fixtures/pages.json 5.to save on console, you may run the iris site in pm2 instance $> pm2 start index.js(or your site script file)
  • run the test $> grunt default
Clone this wiki locally