Tests
There are unit tests intests
and eslint. They're run each time you push onCircleCI.
Run test
Execute them.
$ yarn run
test
$ yarn run lin
Unit tests
There are 2 types of test in Boostnote, one is unit tests fordataApi
, another one is unit tests for other modules inbrowser/lib/
.
Why no e2e test?
Actually, it was. Spectron was used for our e2e test tool. The reason why it was removed is that because it has problems below:
- Spectron doesn't support button click in a dialog box so the files for tests remain even after the tests finish
- It's hard to specify input field due to CodeMirror complication
- It doesn't run well on CI due to permission