Open cknitt opened 3 weeks ago
Can we wait for #6899 so that the changes don't conflict?
I honestly want to completely restructure the tests, not just change the format.
There are many tests there that don't actually have a runtime, so it's like build_tests with default config.
What is your timeframe for #6899?
In #6899, you are saying
I won't refactor tests here yet.
So there shouldn't be too many conflicts?
I would like to get at least the Belt tests converted to the node test runner soon so that I can add them more easily to https://github.com/rescript-lang/experimental-rescript-stdlib-build. I had problems with the weird mt.res
there.
Nevermind. Some module resolutions might change in #6899. But that's build_tests/
and has nothing to do with test/
.
As part of the effort to get rid of ninja.js for building the stdlibs and tests, the files in
jscomp/test
need to be cleaned up.Note that due to ninja.js weirdness, there are currently some restrictions:
jscomp/test
.Tests are in the process of being converted from mocha (
Mt.*
) to the node test runner (Node_test.*
/Node_assert.*
). Currently, mocha test files need to have the suffix_test
and node test files need to have_ntest
.Proposed cleanup plan:
belt_
: tests for theBelt
namespacejs_
: tests for theJs
namespaceruntime_
: tests for the compiler runtime (Curry etc.)ocaml_
: tests for the OCaml standard librarytestutil_
(?): files containing only utility functions used by testsoutput_
: test files that do not call any actual test functions and are just here to be able to manually verify changes in the compiler output_test
suffix./cc @cometkim @fhammerschmidt