BigW Consortium Gitlab

build.feature 1005 Bytes
Newer Older
1
Feature: Project Badges Build
2
  Background:
3 4
    Given I sign in as a user
    And I own a project
5 6 7 8
    And project has CI enabled
    And project has a recent build

  Scenario: I want to see a badge for successfully built project
9
    Given recent build is successful
10 11 12
    When I display builds badge for a master branch
    Then I should see a build success badge

13
  Scenario: I want to see a badge for project with failed builds
14 15 16
    Given recent build failed
    When I display builds badge for a master branch
    Then I should see a build failed badge
17 18

  Scenario: I want to see a badge for project with running builds
19 20
    Given recent build is successful
    And project has another build that is running
21 22
    When I display builds badge for a master branch
    Then I should see a build running badge
23 24 25 26 27

  Scenario: I want to see a fresh badge on each request
    Given recent build is successful
    When I display builds badge for a master branch
    Then I should see a badge that has not been cached