Open oubiwann opened 3 years ago
I did a quick check on lines of code, and about 1/3rd of the eunit wrappers were brought into LFE.
Just 2/3rds to go ... 😉
Also, I should note that these wrappers have been used on numerous projects over the past 7 years (6 years in its current location). Only minor updates have been made in the macros over the last 4 years. All-told, this is stable code with a stable API.
This is a proposal, for @rvirding's approval:
Some of the macros that wrap eunit (from the ltest project) are already in LFE-proper (here), yet these are only here in order to run the unit tests on the
clj.lfe
library; they could be used by everyone/any project, if we structured things a little differently. The idea of providing an eunit wrapper in LFE-proper isn't all that bad, considering eunit comes with Erlang/OTP and isn't a third-party library. Note that the eunit wrapper DSL has only one dependency: LFE itself (it doesn't even require rebar3).Required tasks:
test/ltest-macros.lfe
(full set of macros: https://github.com/lfex/ltest/blob/release/0.11.x/include/ltest-macros.lfe)lfe/test/ltest-macros.lfe
tolfe/include/eunit.lfe
test/clj-tests.lfe
to include the test macros from the new locationlfe/test
so that we can test the test-makersREADME.md
to mention the new DSL supportAdditional support:
lfe/include/eunit.lfe
)