mirror of
https://github.com/sstephenson/bats.git
synced 2026-02-25 09:18:10 +01:00
Revert "Merge pull request #25 from sstephenson/stack-trace"
This reverts commit07bdee33a1, reversing changes made toc36ad10d8c.
This commit is contained in:
@@ -157,11 +157,3 @@ fixtures bats
|
||||
[ "${lines[0]}" = "This isn't TAP!" ]
|
||||
[ "${lines[1]}" = "Good day to you" ]
|
||||
}
|
||||
|
||||
@test "failing helper function logs the test case's line number" {
|
||||
run bats "$FIXTURE_ROOT/failing_helper.bats"
|
||||
[ $status -eq 1 ]
|
||||
[ "${lines[1]}" = "not ok 1 failing helper function" ]
|
||||
[ "${lines[2]}" = "# (from function \`failing_helper' in file $FIXTURE_ROOT/test_helper.bash, line 6," ]
|
||||
[ "${lines[3]}" = "# in test file $FIXTURE_ROOT/failing_helper.bats, line 5)" ]
|
||||
}
|
||||
|
||||
6
test/fixtures/bats/failing_helper.bats
vendored
6
test/fixtures/bats/failing_helper.bats
vendored
@@ -1,6 +0,0 @@
|
||||
load "test_helper"
|
||||
|
||||
@test "failing helper function" {
|
||||
true
|
||||
failing_helper
|
||||
}
|
||||
4
test/fixtures/bats/test_helper.bash
vendored
4
test/fixtures/bats/test_helper.bash
vendored
@@ -1,7 +1,3 @@
|
||||
help_me() {
|
||||
true
|
||||
}
|
||||
|
||||
failing_helper() {
|
||||
false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user