NielsvanDijk / syncano.com

Syncano website

Home Page:https://www.syncano.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

syncano.com

Syncano.com Website

Installation

Project requires node 6.2.1 and npm 3.9.3. The best way to manage node versions I found is n.

Installation.

$ sudo npm install -g n
$ n 6.2.1

Type n to prompt selection of an installed node. Use the up / down arrow to navigate, and press enter or the right arrow to select, or ^C to cancel:

$ n

ο 6.2.1
  4.4.3

E2E Testing

We are using nightwatchjs for e2e testing. nightwatchjs requires few binary files which can be installed via proper NPM command:

$ npm run e2e-setup

You'll also need to configure env variables for the tests to work locally:

$ export NIGHTWATCH_EMAIL="xx"
$ export NIGHTWATCH_PASSWORD="xx"

You will get them here: link.

If you are ready just run dev server:

$ npm start

and start testing using two browsers in parallel mode:

$ npm run e2e-local

or one by one:

$ npm run e2e-chrome
$ npm run e2e-firefox

If part of the tests fail for some reason, you can temporarily disable them by --skiptags argument. So if, for instance signup tests fail, you can modify package.json e2e line, so that it looks like this:

"e2e-local": "nightwatch -e chrome,firefox --suiteRetries 1 --skiptags signup",

Tests will continue to run but the classes tests will be skipped. Refer to the test files for the appropriate tag name.

About

Syncano website

https://www.syncano.io/

License:MIT License


Languages

Language:JavaScript 66.8%Language:CSS 29.4%Language:HTML 3.4%Language:Shell 0.4%Language:Ruby 0.0%