Skip to content

Commit

Permalink
Merge branch 'master' into gherkin
Browse files Browse the repository at this point in the history
  • Loading branch information
vsiakka committed Apr 2, 2020
2 parents 9458030 + 04710cd commit 9c28ef7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
8 changes: 7 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "gherkin-lint",
"version": "3.4.0",
"version": "3.4.2",
"description": "A Gherkin linter/validator written in javascript",
"author": "Vasiliki Siakka",
"contributors": [
Expand Down
2 changes: 2 additions & 0 deletions test/feature-finder/feature-finder.js
Expand Up @@ -19,6 +19,8 @@ describe('Feature finder', function() {
},
'feature': {
'f.txt': ''
},
'directory.feature': {
}
});
});
Expand Down
5 changes: 5 additions & 0 deletions test/rules/max-scenarios-per-file/max-scenarios-per-file.js
Expand Up @@ -24,4 +24,9 @@ describe('Max Scenarios per File rule', function () {
runTest('max-scenarios-per-file/TooManyScenarios.feature', { maxScenarios: 10, countOutlineExamples: false }, [{ messageElements: { variable: 11 }, line: 0 }]);
runTest('max-scenarios-per-file/TooManyExamples.feature', { maxScenarios: 10, countOutlineExamples: false }, []);
});

it('considers a scenario outline with many examples to be one scenario when "countOutlineExamples" is false', function () {
runTest('max-scenarios-per-file/TooManyScenarios.feature', { maxScenarios: 10, countOutlineExamples: false }, [{ messageElements: { variable: 11 }, line: 0 }]);
runTest('max-scenarios-per-file/TooManyExamples.feature', { maxScenarios: 10, countOutlineExamples: false }, []);
});
});

0 comments on commit 9c28ef7

Please sign in to comment.