Series of tools to focus on your App's code quality.
npm install -g qualifys cd myproject/ qf init
You'll need to have Node >= 7 on your computer.
cd ~/project/myproject qf init
This will add
.npmignore to your project folder. And add
test/ directory to your project if they don't exist.
Before you use test tools, ensure to install
React under your project.
# react 15.x.x required npm install react npm install react-dom
qf run testto start test with
We recmommend you to organize the test files under
By default, you have to specify a
index.test.js in the
test/ directory to declare which test files are going to be run.
/** * only require other test-files here * include all of the files with form of *.test.js */ const testFiles = require.context('.', false, /\.test\.js$/); testFiles.keys().forEach(testFiles);
qf run covto start generate a report of test coverage.
qf updateto upgrade qualifys to the latest version.
qualifys --helpto show the commands help.