-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eunit test provider #805
eunit test provider #805
Conversation
additionally, i think we should probably include something like https://github.com/seancribbs/eunit_formatters for better output, but i don't want to add any dependencies that aren't necessary |
Regarding the compiler option to compile only some files, I believe the Eunit formatters is one of the first piece of code I override away because I always have issues compiling it properly and it's a dep in projects that I require. Though if we do that, I'd sure like not having to carry https://github.com/ferd/cth_readable around all the time :P |
both ct and eunit can specify a single file as a test set. right now there's no way to compile a single file, just it and everything else in the directory it resides in. it's not a pressing issue though and there's other more important changes i'd like to make to the compiler first there's probably a way to install the formatters to the rebar cache i bet. i should figure that out for formatters |
dropped the |
Any risk this last change breaks a lot more eunit stuff? |
low. the eunit test suite is pretty comprehensive |
I mean anyone who used to use eunit_compile_opts and others won't have their stuff working anymore. I guess it's a good thing to drop it before 3.0.0, but that does seem like a somewhat big piece to drop. |
i can revert that change. i think they are a misfeature and if we're going to consider cutting them now is the time to do it though. i plan on cutting the ct equivalents also. if we keep them around i'd like to lobby for a transformation step in the config parser that translates them into more regular forms (so like |
We'd probably like that change reverted ( |
ok. i will try to get to it this weekend |
0f11b3e
to
53ad5e9
Compare
this is good to merge now i think. reverted the removal of still not implemented but now much easier with the new provider structure and coming as soon as i cleanup the ct provider and fix the data_dir issue:
|
53ad5e9
to
333bed7
Compare
333bed7
to
2b799ba
Compare
reworked eunit provider.
improvements:
{eunit_tests, [...]}
inrebar.config
application
,module
,file
anddir
command line flags that mirror the eunit test representations. retains theapp
andsuite
command line flags as aliases ofapplication
andmodule
future improvements:
{spawn, [...]}
,{with, [...]}
,{inparallel, N, [...]}
, etcpossible drawbacks:
rebar3 --app=foo --suite=bar
would run the test suitebar
only if it were a member of the applicationfoo
. as far as i know no one ever used this