Skip to content

Commit

Permalink
updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Benson Perry committed Sep 20, 2013
1 parent 40fbd69 commit 72ef04f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
16 changes: 12 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,27 @@ module.exports = function (grunt) {
}
},
test2: {
files: 'features',
files: 'features/tags.feature',
options: {
steps: 'features/step_definitions',
format: 'pretty',
tags: '@tag'
}
},
test3: {
files: 'features',
files: 'features/tags.feature',
options: {
steps: 'features/step_definitions',
format: 'pretty',
tags: ['@wip', '~@tag']
}
},
test4: {
files: 'features/tags.feature',
options: {
steps: 'features/step_definitions',
format: 'pretty',
tags: ['~@wip', '@tag']
tags: ['@wip', '@tag']
}
}
}
Expand All @@ -41,5 +49,5 @@ module.exports = function (grunt) {

grunt.registerTask('default', ['jshint', 'cucumberjs:test1']);

grunt.registerTask('tag-tests', ['cucumberjs:test2', 'cucumberjs:test3'])
grunt.registerTask('tag-tests', ['cucumberjs:test2', 'cucumberjs:test3', 'cucumberjs:test4'])
};
27 changes: 27 additions & 0 deletions features/tags.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Feature: Testing tags
As a grunt-cucumber-js dev
I want a Testing.feature file with tags
So that I can test the tag functionality of cucumber-js-task

@wip
Scenario: Tagged wip
Given I have the number 1 and 3
When I add them together
Then I should have 4

@tag
Scenario: Tagged tag
Given I have the number 1 and 3
When I add them together
Then I should have 4

Scenario: No tags
Given I have the number 1 and 3
When I add them together
Then I should have 4

@wip @tag
Scenario: Tagged wip and tag
Given I have the number 1 and 3
When I add them together
Then I should have 4

0 comments on commit 72ef04f

Please sign in to comment.