2011-08-10 102 views

回答

33
./rebar eunit skip_deps=true 

(或recursive=false与最新版本)。

+0

很酷。有用。尽管如此,我试图在rebar.config({skip_deps,true}。和{eunit,[{skip_deps,true}]}。)中设置它。 –

+4

请注意'./rebar clean get-deps compile eunit skip_deps = true'不起作用 - _Why not_?因为'rebar'会跳过*编译*依赖关系!不过,单独的命令'./rebar clean get-deps compile'和'./rebar eunit skip_deps = true'起作用。 –

3

也有只为特定的应用程序运行的测试选项:

./rebar eunit app=app_name 
+2

这实际上并不适用于我。我正在使用来自GitHub的最新钢筋快照。你正在运行哪个版本? –

+0

@Roberto Alio:奇怪。我的版本是“rebar版本:2日期:20110714_102521 vcs:git df86768” –

4

您也还可以使用

./rebar eunit apps=your_app1,your_app2 

这将运行eunit测试只针对指定的应用程序。

相关问题