File: old_version_json.feature

package info (click to toggle)
ruby-simplecov 0.22.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,500 kB
  • sloc: ruby: 5,550; makefile: 10
file content (27 lines) | stat: -rw-r--r-- 1,158 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@rspec

Feature:

  This test project has a resultset.json generated by simplecov 0.17.1 lying around
  (we changed the file format in 0.18) - as long as we want a hassle free upgrade
  path from 0.17 and below to our current version this cuke should pass :) #820

  Background:
    Given I'm working on the project "old_coverage_json"

  Scenario: Running the tests succeeds
    Given the paths in the old .resultset.json are adjusted to the current environment
    When I open the coverage report generated with `bundle exec rspec spec`
    Then I should see the groups:
      | name      | coverage | files |
      | All Files | 88.89%    | 2     |
    And I should see a line coverage summary of 8/9

  Scenario: Running the tests succeeds even with a current time stamp
    Given the paths in the old .resultset.json are adjusted to the current environment
    And the timestamp in the .resultset.json is current
    When I open the coverage report generated with `bundle exec rspec spec`
    Then I should see the groups:
      | name      | coverage | files |
      | All Files | 88.89%   | 2     |
    And I should see a line coverage summary of 8/9