Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Working on inkjs tests

The test suite can be run with the command npm test. If you plan to work on tests, you can run npm run watch:test which will re-run the tests every time a file is changed. You can use it in conjunction with npm run watch if you're working on the ink source files at the same time.

The tests are run against an ink story that is almost like a serie of unit tests. The inkfiles folder contains the ink story as well as the compiled version.

Actual test files can be found in the tests/specs folder and they are written using jasmine.

You will see test coverage reports in the console where the tests are running, but you can also see a detailed line by line report in the tests/coverage folder that will be generated there.