Skip to content

Contribution Guide

Kian Peymani edited this page Oct 26, 2016 · 1 revision

Contribution Guide

(This page will soon be rewritten with more detail)

Running tests

All features are tested strictly using mocha.

To run all of the tests, type npm test. Tests are divided by Layer or feature inside top.js. You can comment a section to omit a group of tests, or use the Mocha's .skip().

Manual test

Due to logging difficulties inside mocha, some features can be tested inside the manualTest folder. To run a specific xNode :

node mathMs/mathMs.js 

for any possible reason, the configuration inside the json files can be overwritten at runtime by:

node mathMs/mathMs.js --xyzport 4000 --xyzhost http://localhost

Using xyz-cli [unstable]

xyz dev command will automatically run all xNodes, assuming that you are in the root directory of a project (similar to manualTest) where a xyz.json file is available

Logging

Clone this wiki locally