doc: add list of testing packages together with their usage

This commit is contained in:
Xymorot 2019-10-12 02:21:27 +02:00
parent 5acc27c6d9
commit bf1cd72f7c
1 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,11 @@ This is also pre-defined in the npm script `typeorm:migrate`.
The testing framework of choice is [Mocha](https://mochajs.org/). Call `npm run test` to run all tests. Tests are written in typescript and need to be transpiled before testing.
- assertion is (mainly) done by [Chai](https://www.chaijs.com/)
- Electron specific testing is done by [Spectron](https://electronjs.org/spectron)
- spies, stubs and mocks are provided by [Sinon.JS](https://sinonjs.org/)
- HTTP server mocking is done by [nock](https://github.com/nock/nock)
#### Tagging
Mocha does [not have a seperate tagging feature](https://github.com/mochajs/mocha/wiki/Tagging), but it can filter via title. Us the following tags in your test titles: