-
Notifications
You must be signed in to change notification settings - Fork 518
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
rebar_prv_common_test refactor #894
Conversation
Hm, could we warn on unsupported command line options? Or would that be too much? |
that's already taken care of by getopt, i think there's a warning for of the options i dropped from the command line most were difficult to check for validity or convert to the proper format ct expect from a string. most can be reenabled, i just didn't have time to handle them properly this week |
That sounds good. Would have to try it on a work project to feel super safe about it. |
@talentdeficit can you rebase. @ferd and you going to try it at work tomorrow? |
Yeah, I'll give it a try tomorrow. If I don't have news about this by noon, ping me. |
593aae4
to
105f5c0
Compare
* remove partial support for ct `test_spec` until it can be done properly and warn if `test_spec` is present in test opts * use new compiler functionality to reduce complexity of provider * reduce command line options available to those that can be supported properly
105f5c0
to
dd93ab2
Compare
rebased. i also had time to add support for most of the easier command line options and to fix the handling of suites specified as atoms (which ct allows, but rebar3 ct would fail on) |
dd93ab2
to
cf66dfd
Compare
Got this stacktrace while running tests: ===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace
===> Uncaught error: function_clause
===> Stack trace to the error location: [{rebar_prv_common_test,
format_result,
[killed],
[{file,
"/Users/fhebert/code/self/rebar3/_build/default/lib/rebar/src/rebar_prv_common_test.erl"},
{line,425}]},
{rebar_prv_common_test,
'-handle_quiet_results/2-lc$^0/1-0-',
1,
[{file,
"/Users/fhebert/code/self/rebar3/_build/default/lib/rebar/src/rebar_prv_common_test.erl"},
{line,412}]},
{rebar_prv_common_test,
handle_quiet_results,2,
[{file,
"/Users/fhebert/code/self/rebar3/_build/default/lib/rebar/src/rebar_prv_common_test.erl"},
{line,412}]},
{rebar_prv_common_test,do,2,
[{file,
"/Users/fhebert/code/self/rebar3/_build/default/lib/rebar/src/rebar_prv_common_test.erl"},
{line,59}]},
{rebar_core,do,2,
[{file,
"/Users/fhebert/code/self/rebar3/_build/default/lib/rebar/src/rebar_core.erl"},
{line,125}]},
{rebar3,main,1,
[{file,
"/Users/fhebert/code/self/rebar3/_build/default/lib/rebar/src/rebar3.erl"},
{line,56}]},
{escript,run,2,
[{file,"escript.erl"},
{line,752}]},
{escript,start,1,
[{file,"escript.erl"},
{line,276}]}] |
|
Trying to dig out of the thousands of log lines we got with the test per usual:
I'm thinking this might be related to cth_readable hook interactions though. |
I re-ran it this morning on fresher builds after having |
Oh, +1 if that wasn't clear. |
test_spec
until it can be done properlyand warn if
test_spec
is present in test optssupported properly
ct_tests