The test suite seems to depend on state from previous tests to pass sometimes.
Run against 85449ab (1.3.0-dev), lua 5.4.2
fex:
make test
-> all passingfailures
make test
-> fails to runcore
(so core
+ failures
)make test
-> all passingOr a tighter focus:
core
&& failures
in test/init.lua
.test/core#test-nest
&& test/failures#test-suggestions
make test
-> 2/2 tests passingtest/core#test-nest
make test
-> test failsPreviously:
The compiler plugin used in failures#test-macro-traces
would be retained in subsequent tests until one of the repl
tests seemed to unintentionally remove it, see https://github.com/bakpakin/Fennel/pull/427#issuecomment-1138286136
(The compiler plugin test currently includes a work-around via an internal guard to only intentionally fail once.)
I have a workaround in 29fcf70 but it's not ideal as it just redundantly reloads the compiler before kicking things off. Ideally we could load everything we need the bootstrap compiler for, then load the real one. I'm having some trouble with my attempts to do that, so I've added a temporary workaround.
Looks like f706c61 fixes this!