Skip to content

Testing

Testing your apps is critical. AI coding assistants are really good at writing tests, but you should still review and understand them.

Linting should be run in git hooks (e.g. using husky).

Unit and integration tests should cover critical logic and functionality. If they run fast enough, they should be run in git hooks too.

End-to-end tests should get the most coverage, but will take longer to run.

Use oxlint for linting code first.

Then use Vitest for unit and integration testing your code.

Use golangci-lint for running linting and static analysis.

Use the built-in Go Test and test-tables (where appropriate) for unit and integration testing your code.

Use Playwright for end-to-end testing your website and web applications.