semgrep / testo

Test framework for OCaml
ISC License
16 stars 1 forks source link

Fix alcotest export #95

Closed mjambon closed 1 month ago

mjambon commented 1 month ago

This fixes a storage bug when running exported tests in Alcotest.

e.g.

  │ [FAIL]        fa42a29dc6d2 Language Server (e2e)          0   Test LS.       │
  └──────────────────────────────────────────────────────────────────────────────┘
  [exception] Error: Missing initialization call: Testo.init ()
  Logs saved to `/__w/semgrep-proprietary/semgrep-proprietary/js/tests/_build/_tests/semgrep-js/fa42a29dc6d2 Language Server U+0028e2eU+0029.000.output'.

We don't have tests for the Alcotest export. For now, errors are caught in the semgrep repo where Alcotest is used to run some tests in JavaScript.

PR checklist:

Check out CONTRIBUTING.md for more details.