Skip to content

Testing your app

Novis has a test runner built in. You write tests in Novis, and nvs test runs them. You do not need to install a test framework.

  • Test doubles shows how to replace a mail server, an HTTP API or the clock in a test. A test double is an object that replaces a real one during a test. It also shows how to read the mail and the logs of a test.
  • Testing a page sends a request to your routes without starting a server.
  • Testing a command runs your command-line program with its arguments and input, and checks its exit code and output.

Read Syntax: writing tests for every option of #[Test].