Sha256: 0aa66916cfdb13474c29fb458ac1212b05a3c60fc4a4b95d593043a9774789ba

Contents?: true

Size: 783 Bytes

Versions: 7

Compression:

Stored size: 783 Bytes

Contents

Feature: Command Line Processing
  As a source code writer I want to be able to
  calculate my hits-of-code metric

  Scenario: Help can be printed
    When I run bin/hoc with "-h"
    Then Exit code is zero
    And Stdout contains "--format"

  Scenario: Simple git repo
    Given I run bash:
    """
    set -e
    git init .
    git config user.email test@teamed.io
    git config user.name test
    echo 'hello, world!' > test.txt
    git add test.txt
    git commit -am test
    """
    When I run bin/hoc with "-f int"
    Then Exit code is zero
    And Stdout contains "1"

  Scenario: Real git repo
    Given I run bash:
    """
    set -e
    rm -rf *
    git clone https://github.com/teamed/hoc.git .
    """
    When I run bin/hoc with "-f int"
    Then Exit code is zero

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hoc-0.6 features/cli.feature
hoc-0.5 features/cli.feature
hoc-0.4.2 features/cli.feature
hoc-0.4.1 features/cli.feature
hoc-0.4 features/cli.feature
hoc-0.3 features/cli.feature
hoc-0.2 features/cli.feature