Testing Betty’s source code

In any existing Python environment, run ./bin/test.py or any of the ./bin/test-*.py commands.

Environment variables

These impact the ./bin/test.py command:

  • BETTY_TEST_SKIP_RUFF=true: Skip Ruff tests.

  • BETTY_TEST_SKIP_STYLELINT=true: Skip Stylelint tests.

  • BETTY_TEST_SKIP_TSC=true: Skip tsc tests.

  • BETTY_TEST_SKIP_ESLINT=true: Skip ESLint tests.

  • BETTY_TEST_SKIP_PLAYWRIGHT=true: Skip Playwright tests.

  • BETTY_TEST_SKIP_WEBPACK_ENTRY_POINT_PROVIDER=true: Skip tests covering betty.extensions.webpack.build.EntryPointProvider’s Webpack builds.

Fixing problems automatically

In any existing Python environment, run ./bin/fix.py.