Skip to content

Instantly share code, notes, and snippets.

@loganhasson
Created May 18, 2015 14:33
Show Gist options
  • Save loganhasson/0dbcdb5e31fcce4fa622 to your computer and use it in GitHub Desktop.
Save loganhasson/0dbcdb5e31fcce4fa622 to your computer and use it in GitHub Desktop.

Revisions

  1. loganhasson created this gist May 18, 2015.
    12 changes: 12 additions & 0 deletions cuke.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #!/bin/bash

    # A function to run a specific cucumber feature test
    # USE: cuke path-to-feature:line

    function cuke () {
    if [ -n "$1" ]; then
    cucumber --require features $1
    else
    echo 'USE: cuke path-to-feature:line'
    fi
    }