Skip to content



The backend uses ExUnit.

To launch all the tests:

mix test


If you're using Docker, you can use make 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 command also works the same


Unit tests

We use Vue Test Utils and Vitest to run unit tests.

Run the tests with

npm run test

You can also get the code coverage with:

npm run coverage --reporter=default --reporter=junit --outputFile.junit=./junit.xml

E2E tests

They use Playwright and are very limited to a few views. Check out how they run in the Gitlab CI for guidance.

Last update: December 5, 2023