development QA tools for App
npm install qualifysSeries of tools to focus on your App's code quality.
``sh
npm install -g qualifys
cd myproject/
qf init
`
You'll need to have Node >= 7 on your computer.
- Only focus on Code quality: we want to create this tool to make more react projects testable, lintable.
- Pick it up, and use it: we make QA process easier, you only need to install the tool and then run commands to start your QA process.
#### qualifys init
`sh`
cd ~/project/myproject
qf init
This will add .editorconfig, .eslintrc, .gitignore, .npmignore to your project folder. And add src/, dist/, test/ directory to your project if they don't exist.
#### qualifys run test
Before you use test tools, ensure to install React under your project.
`sh`react 15.x.x required
npm install react
npm install react-dom
- qf run test to start test with Karma, Mocha, Expect.js and enzyme.svg loader
+ Test code support ES6.
+ Test code support , json loader.
We recmommend you to organize the test files under test/ directory.
By default, you have to specify a index.test.js in the test/ directory to declare which test files are going to be run.
`js
/**
* 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);
`
#### qualifys run coverage
- qf run cov to start generate a report of test coverage.
- qf update to upgrade qualifys to the latest version.
- qualifys --help` to show the commands help.