-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Aslak Hellesøy
committed
May 1, 2021
1 parent
065d679
commit 1ee5847
Showing
1 changed file
with
4 additions
and
13 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,19 @@ | ||
# Fake Cucumber | ||
|
||
Future implementations of Cucumber will have a `protobuf` formatter that produces | ||
output in [cucumber-messages](../cucumber-messages) format. | ||
|
||
The `fake-cucumber` command line tool produces the same kind of output as those | ||
`protobuf` formatters will. It parses your `.feature` files and produces fake | ||
results, so no step definitions are needed - only `.feature` files. | ||
|
||
The purpose of `fake-cucumber` is to generate test data for formatters that | ||
will consume messages provided by `protobuf` formatters. | ||
Fake Cucumber is a simple reference implementation of Cucumber. | ||
It is primarily used to produce test data (cucumber messages). | ||
|
||
## Usage | ||
|
||
Using npm: | ||
|
||
``` | ||
npm install -g fake-cucumber | ||
fake-cucumber [--format=json|ndjson|protobuf] [FILES] | ||
fake-cucumber [FILES] | ||
``` | ||
|
||
Alternatively, using docker: | ||
|
||
``` | ||
docker run -v $(pwd)/features:/tmp/features cucumber/fake-cucumber:latest \ | ||
[--format=json|ndjson|protobuf] [FILES] | ||
docker run -v $(pwd)/features:/tmp/features cucumber/fake-cucumber:latest [FILES] | ||
``` | ||
|