-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use new messages without protobuf dependencies, and Markdown support. #1645
Merged
Merged
Changes from 20 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
08403f5
Start refactoring the code to use the new messages from the json-sche…
492a172
Everything compiles
647840d
Fix import of messages module
aurelien-reeves 8c5d8d7
Fix import of messages in coordinator
aurelien-reeves 2510af6
Update predictableTimestamp to work with new messages
aurelien-reeves c0d4723
Fix tests related to capture groups
aurelien-reeves 016b380
Fix some more tests
0f3316d
Fix more tests
2f82e90
Fix another spec
2ced43e
All unit tests passing
84160e8
cck fixes
bbbb254
Merge master, use most recent cucumber/common modules
24c000d
Make more scenarios pass
fa9247f
Fix import
a0a398c
Export Status
ea31ebd
All features passing
c966ca5
npm test is now passing
473ea97
Update @cucumber dependencies
913d843
Add support for Markdown
d6f9357
update yarn lockfile
davidjgoss 9c0c509
Fix npm dependencies
3caecf5
Use .feature.md extension. Update dependencies.
aslakhellesoy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import assert from 'assert' | ||
import { Given } from '../../../src' | ||
|
||
Given('I have {int} cukes in my belly', function (cukeCount: number) { | ||
assert(cukeCount) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
compatibility/features/unknown-parameter-type/unknown-parameter-type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Command line interface | ||
In order to run cucumber in different contexts | ||
As a person who wants to run features | ||
I want to run Cucumber on the command line | ||
|
||
## Scenario: run feature with non-default step definitions file location specified (-r option) | ||
|
||
* Given a file named "features/a.feature" with: | ||
```gherkin | ||
Feature: some feature | ||
Scenario: | ||
When a step is passing | ||
``` | ||
* And a file named "step_definitions/cucumber_steps.js" with: | ||
```javascript | ||
const {When} = require('@cucumber/cucumber') | ||
|
||
When(/^a step is passing$/, function() {}) | ||
``` | ||
* When I run cucumber-js with `-r step_definitions/cucumber_steps.js` | ||
|
||
## Scenario: run feature with step definitions in required directory (-r option) | ||
|
||
* Given a file named "features/a.feature" with: | ||
```gherkin | ||
Feature: some feature | ||
Scenario: | ||
When a step is passing | ||
``` | ||
* And a file named "step_definitions/cucumber_steps.js" with: | ||
```javascript | ||
const {When} = require('@cucumber/cucumber') | ||
|
||
When(/^a step is passing$/, function() {}); | ||
``` | ||
* When I run cucumber-js with `-r step_definitions` | ||
|
||
`@spawn` | ||
# Scenario: display Cucumber version | ||
|
||
* When I run cucumber-js with `--version` | ||
* Then I see the version of Cucumber | ||
|
||
`@spawn` | ||
# Scenario: display help | ||
* When I run cucumber-js with `--help` | ||
* Then I see the help text for Cucumber |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the extension
.feature.md
be for MDG files?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure. What are the benefits of enforcing that extension?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the discussion the other day it was that:
.feature.md
files and offer completion and quick-run features like they do for feature filesUsers could always specify the glob differently themselves, as many do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For a human, from just reading the file name, we know that this should be an executable spec in addition of some documentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good point. IIRC, @mpkorstanje also suggested that using
.feature.md
could protect against accidentally picking up Markdown files without any Gherkin in it.I'll change it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed - it's looking for
.feature.md
by default now