-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in terratest-log-parser that mixes result lines (#899)
- Loading branch information
1 parent
3af8e92
commit d1ce8be
Showing
23 changed files
with
83 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
modules/logger/parser/fixtures/failing_example_expected/TestBasicExample.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
=== RUN TestBasicExample | ||
--- FAIL: TestBasicExample (0.00s) | ||
integration_test.go:10: | ||
integration_test.go:10: | ||
Error Trace: integration_test.go:10 | ||
Error: Expected value not to be nil. | ||
Test: TestBasicExample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
modules/logger/parser/fixtures/failing_example_expected/TestPanicExample.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
=== RUN TestPanicExample | ||
--- FAIL: TestPanicExample (0.00s) | ||
integration_test.go:14: | ||
integration_test.go:14: | ||
Error Trace: integration_test.go:14 | ||
Error: Expected value not to be nil. | ||
Test: TestPanicExample |
2 changes: 1 addition & 1 deletion
2
modules/logger/parser/fixtures/failing_example_expected/TestRealWorldExample.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
=== RUN TestRealWorldExample | ||
--- FAIL: TestRealWorldExample (0.00s) | ||
integration_test.go:18: | ||
integration_test.go:18: | ||
Error Trace: integration_test.go:18 | ||
Error: Expected value not to be nil. | ||
Test: TestRealWorldExample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
=== RUN TestIntegrationBasicExample | ||
=== PAUSE TestIntegrationBasicExample | ||
=== RUN TestIntegrationFailingExample | ||
=== PAUSE TestIntegrationFailingExample | ||
=== RUN TestIntegrationPanicExample | ||
=== PAUSE TestIntegrationPanicExample | ||
=== CONT TestIntegrationBasicExample | ||
=== CONT TestIntegrationPanicExample | ||
=== CONT TestIntegrationFailingExample | ||
=== CONT TestIntegrationBasicExample | ||
integration_test.go:57: | ||
Error Trace: integration_test.go:57 | ||
Error: Should be true | ||
Test: TestIntegrationBasicExample | ||
--- PASS: TestIntegrationPanicExample (0.00s) | ||
--- PASS: TestIntegrationFailingExample (0.00s) | ||
--- FAIL: TestIntegrationBasicExample (0.00s) | ||
FAIL | ||
FAIL github.com/gruntwork-io/terratest/modules/logger/parser 1.589s | ||
FAIL |
9 changes: 9 additions & 0 deletions
9
...es/logger/parser/fixtures/new_go_failing_example_expected/TestIntegrationBasicExample.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
=== RUN TestIntegrationBasicExample | ||
=== PAUSE TestIntegrationBasicExample | ||
=== CONT TestIntegrationBasicExample | ||
=== CONT TestIntegrationBasicExample | ||
integration_test.go:57: | ||
Error Trace: integration_test.go:57 | ||
Error: Should be true | ||
Test: TestIntegrationBasicExample | ||
--- FAIL: TestIntegrationBasicExample (0.00s) |
4 changes: 4 additions & 0 deletions
4
.../logger/parser/fixtures/new_go_failing_example_expected/TestIntegrationFailingExample.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
=== RUN TestIntegrationFailingExample | ||
=== PAUSE TestIntegrationFailingExample | ||
=== CONT TestIntegrationFailingExample | ||
--- PASS: TestIntegrationFailingExample (0.00s) |
4 changes: 4 additions & 0 deletions
4
...es/logger/parser/fixtures/new_go_failing_example_expected/TestIntegrationPanicExample.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
=== RUN TestIntegrationPanicExample | ||
=== PAUSE TestIntegrationPanicExample | ||
=== CONT TestIntegrationPanicExample | ||
--- PASS: TestIntegrationPanicExample (0.00s) |
13 changes: 13 additions & 0 deletions
13
modules/logger/parser/fixtures/new_go_failing_example_expected/report.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuites> | ||
<testsuite tests="3" failures="1" time="1.589" name="github.com/gruntwork-io/terratest/modules/logger/parser"> | ||
<properties> | ||
<property name="go.version" value="go1.16.3"></property> | ||
</properties> | ||
<testcase classname="parser" name="TestIntegrationBasicExample" time="0.000"> | ||
<failure message="Failed" type=""> integration_test.go:57: </failure> | ||
</testcase> | ||
<testcase classname="parser" name="TestIntegrationFailingExample" time="0.000"></testcase> | ||
<testcase classname="parser" name="TestIntegrationPanicExample" time="0.000"></testcase> | ||
</testsuite> | ||
</testsuites> |
6 changes: 6 additions & 0 deletions
6
modules/logger/parser/fixtures/new_go_failing_example_expected/summary.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- PASS: TestIntegrationPanicExample (0.00s) | ||
--- PASS: TestIntegrationFailingExample (0.00s) | ||
--- FAIL: TestIntegrationBasicExample (0.00s) | ||
FAIL | ||
FAIL github.com/gruntwork-io/terratest/modules/logger/parser 1.589s | ||
FAIL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters