Sha256: b871aab265f95a48a9d70a34b9e54efc81c8c25359eab21fb5870d1929933194

Contents?: true

Size: 1.64 KB

Versions: 2

Compression:

Stored size: 1.64 KB

Contents

Feature: Verify
  Scenario: No tests
    When I run `recog_verify no_tests.xml`
    Then it should pass with:
      """
      SUMMARY: Test completed with 0 successful, 0 warnings, and 0 failures
      """

  Scenario: Successful tests
    When I run `recog_verify successful_tests.xml`
    Then it should pass with:
      """
      SUMMARY: Test completed with 4 successful, 0 warnings, and 0 failures
      """

  Scenario: Tests with warnings, warnings enabled
    When I run `recog_verify tests_with_warnings.xml`
    Then it should fail with:
      """
      WARN: 'Pure-FTPd' has no test cases
      WARN: 'Pure-FTPd' is missing an example that checks for parameter 'pureftpd.config' messsage which is derived from a capture group
      SUMMARY: Test completed with 1 successful, 2 warnings, and 0 failures
      """
    And the exit status should be 2

  Scenario: Tests with warnings, warnings disabled
    When I run `recog_verify --no-warnings tests_with_warnings.xml`
    Then it should pass with:
      """
      SUMMARY: Test completed with 1 successful, 0 warnings, and 0 failures
      """

  Scenario: Tests with failures
    When I run `recog_verify tests_with_failures.xml`
    Then it should fail with:
      """
      FAIL: 'foo test' failed to match "bar" with (?-mix:^foo$)'
      FAIL: '' failed to match "This almost matches" with (?-mix:^This matches$)'
      FAIL: 'bar test's os.name is a non-zero pos but specifies a value of 'Bar'
      FAIL: 'bar test' failed to find expected capture group os.version '5.0'. Result was 1.0
      SUMMARY: Test completed with 0 successful, 0 warnings, and 4 failures
      """
    And the exit status should be 4

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
recog-2.3.7 features/verify.feature
recog-2.3.6 features/verify.feature