Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.11 KB

TESTING.md

File metadata and controls

34 lines (23 loc) · 1.11 KB

Testing Thunderdome

In effort to maintain a stable application Thunderdome is supported by automated testing

End to End Testing

Playwright is used for End to End testing of Thunderdome, keep tests atomic!

cd e2e
npm install
npm test

Frontend Unit Testing

Frontend unit tests are run with Jest and utilize @testing-library/svelte.

To run the tests npm test for a single run or npm test:watch to actively watch for test changes.

Conventions for Frontend Unit Tests

  • Check out Unit testing svelte component guide
  • Test files are named {componentName}.test.js
  • Test folders are named __tests__ and live alongside the source code to which the test files are for
    • Example ui/src/pages/__tests__/*.test.js corresponds to ui/src/pages/*.svelte
  • Snapshot testing should only be used for individual components not page components

Go Unit Testing

Run make testgo to run go tests