소스 검색

Fix test/rebar_eunit_tests.erl

pull/3/head
Slava Yurin 13 년 전
committed by Tuncer Ayaz
부모
커밋
22dec4cbb7
1개의 변경된 파일8개의 추가작업 그리고 6개의 파일을 삭제
  1. +8
    -6
      test/rebar_eunit_tests.erl

+ 8
- 6
test/rebar_eunit_tests.erl 파일 보기

@ -77,18 +77,21 @@ cover_with_suite_test_() ->
setup,
fun() ->
setup_cover_project_with_suite(),
rebar("-v eunit suite=mysuite")
rebar("-v eunit suites=mysuite")
end,
fun teardown/1,
[{"All cover reports are generated",
[{"Cover reports are generated for module",
assert_files_in("the temporary eunit directory",
expected_cover_generated_files())},
[".eunit/index.html",
".eunit/mysuite.COVER.html"])},
{"Only production modules get coverage reports",
assert_files_not_in("the temporary eunit directory",
[".eunit/myapp_mymod_tests.COVER.html",
".eunit/mysuite.COVER.html"])}]}.
[".eunit/myapp_app.COVER.html",
".eunit/myapp_mymod.COVER.html",
".eunit/myapp_sup.COVER.html",
".eunit/myapp_mymod_tests.COVER.html"])}]}.
expected_cover_generated_files() ->
[".eunit/index.html",
@ -247,6 +250,5 @@ assert_full_coverage(Mod) ->
Result = [X || X <- string:tokens(binary_to_list(F), "\n"),
string:str(X, Mod) =/= 0,
string:str(X, "100%") =/= 0],
ok = file:close(F),
?assert(length(Result) =:= 1)
end.

불러오는 중...
취소
저장