Skip to content

Test Setup

Rohan Sawahn edited this page Mar 6, 2021 · 2 revisions

End-to-End Testing

We use Cypress as a End-to-End testing library. The cypress tests are located in the cypress/integration folder. When cypress is run it will also provide videos of the failing tests, so you can easily debug where your application fails. You can run cypress with the following command: npx cypress run

Unit Testing

We use Jest for unit testing. The unit tests are located directly with the code to be tested and are named with <file_name>.spec.ts You can run the tests with npm run test

Seeding the Database

In order to make testing and developing easier, we provide some dummy data which will be created in the database with npm run db:seed

Services for Testing

These will automtically be started when you run npm run dev.

  • Baikal: Baikal is a lightweight CalDAV server. It contains a sample user john.doe with the password root. You can add it from the following url: http://localhost:5232/dav.php/calendars/john.doe/test

  • Nextcloud: Nextcloud also will host a CalDav calendar, which can be used for testing purposes

  • Mailhog is used to test whether emails are properly send

Clone this wiki locally