Testing

Writing

See the SKAO developer guide for more information

Unit tests

Vitest is the test running framework. Test files are located in the same folder as the component that they are testing

Running from the command line

> yarn test:unit

To run using the cypress GUI interface, execute the following

> yarn test:unit:ui

End-2-End tests

Cypress as the test running framework. Test Files are contained within the cypress/e2e folder.

Running from the command line

> yarn cypress:run

To run using the cypress GUI interface, execute the following and follow the prompts for e2e testing

> yarn cypress:open