mobilizon.chapril.org-mobil.../support/guides/development/tests.md
Thomas Citharel fa03c48db3
Update docs and support
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-11 17:03:18 +02:00

925 B

Tests

Backend

The backend uses ExUnit.

To launch all the tests:

mix test

If you want test coverage:

mix coveralls.html

It will show the coverage and will output a cover/excoveralls.html file.

If you want to test a single file:

mix test test/mobilizon/actors/actors_test.exs

If you want to test a specific test, block or line:

mix test test/mobilizon/actors/actors_test.exs:85

Note: The coveralls.html also works the same

Front-end

Unit tests

Not done yet.

End-to-end tests

We use Cypress for End-to-end testing.

When inside the js directory, you can do either

npx cypress run

to run the tests, or

npx cypress open

to open the interactive GUI.

Cypress provided a subscription to their recording dashboard since Mobilizon is an Open-Source project. Thanks!