Skip to content

Commit

Permalink
Attempt to remove xml nodes from test files to pass for jruby
Browse files Browse the repository at this point in the history
  • Loading branch information
dabdine committed Dec 7, 2021
1 parent b465f05 commit a0c5b82
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion features/data/tests_with_failures.xml
@@ -1,4 +1,3 @@
<?xml version="1.0"?>
<fingerprints>
<fingerprint pattern="^foo$">
<description>foo test</description>
Expand Down
1 change: 0 additions & 1 deletion features/data/tests_with_warnings.xml
@@ -1,4 +1,3 @@
<?xml version="1.0"?>
<fingerprints>
<fingerprint pattern="^-{10} Welcome to Pure-FTPd (.*)-{10}$">
<example pureftpd.config="">---------- Welcome to Pure-FTPd ----------</example>
Expand Down
12 changes: 6 additions & 6 deletions features/verify.feature
Expand Up @@ -20,8 +20,8 @@ Feature: Verify
When I run `recog_verify tests_with_warnings.xml`
Then it should fail with:
"""
tests_with_warnings.xml:10: WARN: 'Pure-FTPd' has no test cases
tests_with_warnings.xml:10: WARN: 'Pure-FTPd' is missing an example that checks for parameter 'pureftpd.config' which is derived from a capture group
tests_with_warnings.xml:9: WARN: 'Pure-FTPd' has no test cases
tests_with_warnings.xml:9: WARN: 'Pure-FTPd' is missing an example that checks for parameter 'pureftpd.config' which is derived from a capture group
tests_with_warnings.xml: SUMMARY: Test completed with 1 successful, 2 warnings, and 0 failures
"""
And the exit status should be 2
Expand All @@ -39,10 +39,10 @@ Feature: Verify
When I run `recog_verify tests_with_failures.xml`
Then it should fail with:
"""
tests_with_failures.xml:3: FAIL: 'foo test' failed to match "bar" with (?-mix:^foo$)'
tests_with_failures.xml:8: FAIL: '' failed to match "This almost matches" with (?-mix:^This matches$)'
tests_with_failures.xml:13: FAIL: 'bar test's os.name is a non-zero pos but specifies a value of 'Bar'
tests_with_failures.xml:13: FAIL: 'bar test' failed to find expected capture group os.version '5.0'. Result was 1.0
tests_with_failures.xml:2: FAIL: 'foo test' failed to match "bar" with (?-mix:^foo$)'
tests_with_failures.xml:7: FAIL: '' failed to match "This almost matches" with (?-mix:^This matches$)'
tests_with_failures.xml:12: FAIL: 'bar test's os.name is a non-zero pos but specifies a value of 'Bar'
tests_with_failures.xml:12: FAIL: 'bar test' failed to find expected capture group os.version '5.0'. Result was 1.0
tests_with_failures.xml: SUMMARY: Test completed with 0 successful, 0 warnings, and 4 failures
"""
And the exit status should be 4

0 comments on commit a0c5b82

Please sign in to comment.