Skip to content
This repository was archived by the owner on Mar 25, 2023. It is now read-only.

Dev Testing

mugip edited this page Feb 2, 2021 · 13 revisions

Testing

In "im pact", we have begun to work on improving reliability through automated testing. Therefore, any source codes pushed to the repository are automatically tested by CI (GitHub Actions).

However, the coverage of automated testing for the whole source code is still heavily insufficient. Please help us improve coverage.

CI on Docker codecov Maintainability

When you developing, we recommend you to write and run the automated testing on your local.


Unit Test for Backend (a.k.a. 'server')

Automated testing by Jest is available.

On Local

$ npm run test:server -- -- -- --watchAll

On Docker

$ sudo docker-compose up -d
$ sudo docker-compose exec app npm run test:server -- -- -- --watchAll

(NOTE: -- passes the following arguments to npm of root -> lerna -> npm of server)


Unit Test for Frontend (a.k.a. 'client')

Automated testing by Karma + Jasmine is available. (This combination is experimental for now. It may be replaced to Jest in the future.)

On Local (with your Chrome browser)

#TODO

On Docker (with headless Chromium browser in the container)

$ sudo docker-compose up -d
$ sudo docker-compose exec app npm run test:client

Unit Test for Actions and Tweet Filter

Please refer to Development of Actions or Development of Tweet Filters.


Home

Clone this wiki locally