[Ann] new versions of VS Code extensions Alcotest and Expect & Inline tests, now on Open VSX too

New versions for both extensions that fix a critical bug: until now if there had been more than one test runner the tests from all other runners had been deleted during test discovery.

Important feature added to the Expect and Inline extension: on startup and Refresh Tests now the tests are not run, but only a list of tests is generated. This speeds up test discovery significantly (and now both extensions work the same).

Alcotest Test Explorer Version 0.6.0

VS Code Marketplace
Open VSX
GitHub

Changelog

  • Make the path to the Dune executable configurable. Can now be either an absolute path, a path relative to the project root or just dune, which is looked up in the local Opam environment or the PATH.
  • Add a message window to ask for a reload if a configuration value has changed.
  • Update documentation

Bugfixes

  • Do not delete the test groups of all other test runners if there exists more than one test runner.

Expect and Inline Tests Version 0.5.0

VS Code Marketplace
Open VSX
GitHub

Changelog

  • No need to run all tests at startup or refresh. Use the -list-test-names argument of the inline test runners.
  • New configuration values:
    • expectppx.discoverInSources - Whether to parse source files on open and save for tests and update the Test Explorer tree. Should be set to true if expectppx.discoverOnStartup is false.
    • expectppx.dunePath - Set an absolute path or a path relative to the project root of the Dune executable. Default: dune - use the one in the local Opam environment or in PATH. See Issue #3.
    • expectppx.excludeRunners - A list of inline test runner names to be excluded from test discovery an startup or refresh, e.g. because they take too long to finish.
  • Add a message window to ask for a reload if a configuration value has changed.
  • Disable ANSI color escape sequences in output of test failures.
  • Update the documentation.

Bugfixes

  • Fix bug when tests from other test runners are deleted on startup or refresh having more than one inline test runner. See Issue #3.

Internal Changes

  • Remove ANSI escape sequences from test fixtures.
  • Add yarn target for the Open VSX Registry.
1 Like