Sha256: dfc3da973e3540c8e44b80ff2bb5b538881f7728e33e2e6060f63442d0f5ac18

Contents?: true

Size: 1.64 KB

Versions: 1

Compression:

Stored size: 1.64 KB

Contents

@run
Feature: Run rspec and acceptance test suits
  Onceover should allow to run rspec and acceptance test for all profvile and role classes
  or for any part of them. Use should set if he wants to see only summary of tests or full
  log info.

  Background:
    Given onceover executable

  Scenario: Run correct spec tests
    Given initialized control repo "basic"
    When I run onceover command "run spec"
    Then I should not see any errors

  Scenario: Run spec tests with misspelled module in Puppetfile
    Given initialized control repo "basic"
    And in Puppetfile is misspelled module's name
    When I run onceover command "run spec"
    Then I should see error with message pattern "The module acme-not_exists does not exist"

  Scenario: Run advanced spec tests
    Given control repo "puppet_controlrepo"
    When I run onceover command "run spec"
    Then I should not see any errors

  Scenario: Check that control_branch functionality works
    Given initialized control repo "control_branch"
    When I run onceover command "run spec"
    Then the temporary Puppetfile should contain the git branch

  Scenario: Run with local modifications
    Given initialized control repo "basic"
    When I run onceover command "run spec"
    And I make local modifications
    And I run onceover command "run spec"
    Then I should see message pattern "local modifications"

  Scenario: Force overwrite local modifications
    Given initialized control repo "basic"
    When I run onceover command "run spec"
    And I make local modifications
    And I run onceover command "run spec --force"
    Then I should see message pattern "Overwriting local modifications"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
onceover-3.5.0 features/run.feature