[erlang-questions] rebar3 and ct

alisdair sullivan alisdairsullivan@REDACTED
Thu Mar 24 15:37:51 CET 2016


rebar3 doesn’t currently support the setting on test configuration via `ct_opts` like that. changing your `ct_opts` section to: `[{dir, “test”}, {logdir, “logs”}]` should work 

> On Mar 24, 2016, at 2:34 AM, Alexander Petrovsky <askjuise@REDACTED> wrote:
> 
> Hi!
> 
> I have the follow ct section in rebar.config:
> 
> {ct_opts, [{alias, myapp, "./test/"}, {logdir, "./logs/"}, {suites, myapp, all}]}.
> {ct_compile_opts, [{i, "./include/"}]}.
> 
> On the "rebar 3.0.0-beta.3+build.327.ref97ae8d6 on Erlang/OTP 18 Erts 7.0" it's work perfectly, but on the "rebar 3.0.0+build.273.refd2de55d on Erlang/OTP 18 Erts 7.0" it says:
> 
> ===> sh(cp -Rp /Users/juise/Documents/myapp/test/myapp_shaper_SUITE.beam /Users/juise/Documents/myapp/test/myapp_shaper_SUITE.erl /Users/juise/Documents/myapp/test/TEST-file_"myapp.app".xml "/Users/juise/Documents/myapp/_build/test/lib/myapp/test")
> failed with return code 1 and the following output:
> cp: /Users/juise/Documents/myapp/test/TEST-file_myapp.app.xml: No such file or directory
> 
> and after "rm -rf ./test/TEST*.xml" it says:
> 
> ./rebar3 ct skip_deps=true verbose=3
> ===> Verifying dependencies...
> ===> Member `{alias,myapp,"./test/"}' of option `ct_opts' must be a 2-tuple
> make: *** [test] Error 1
> 
> How can I fix it?
> 
> -- 
> Петровский Александр / Alexander Petrovsky,
> 
> Skype: askjuise
> Phone: +7 914 8 820 815
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160324/ccfc3ef8/attachment.htm>


More information about the erlang-questions mailing list