Skip to content

Commit

Permalink
test(builtin): test failing test with bazel coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan authored and alexeagle committed Sep 9, 2020
1 parent 3d0d1f7 commit c146da6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions e2e/coverage/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ jasmine_node_test(
":coverage_test_srcs",
],
)

# Verify that the error code is propogated out from a failing spec
# when coverage is on
jasmine_node_test(
name = "fail_test",
srcs = ["fail.spec.js"],
expected_exit_code = 3,
)
3 changes: 3 additions & 0 deletions e2e/coverage/fail.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
describe('jasmine_node_fail_test', () => {
it('should fail', () => {expect(0).toEqual(1)});
});

0 comments on commit c146da6

Please sign in to comment.