CLI: godog
How to run tests using godog CLI.
On this page
Description
Godog CLI is program that knows how to run tests written with gherkin/cucmber syntax. Under the hood it uses GoLang.
Usages
Project’s Makefile contains command that demonstrates usage of godog CLI to run tests:
make tests-using-host
To run tests directly by godog
CLI try:
godog run features/
This mode run all tests from features/
directory synchronously.
To run all tests from features/
asynchronously add --concurrency
flag with desired value.
General rule of thumb is that value should not be greater than number of CPUs on host machine.
It is also beneficial to add --format=progress
flag to change display of format to more convenient for asynchronous mode.
godog run features/ --format=progress --concurrency=2
Tests also can be run selectively simply by passing path to them
godog run features/path/to/your/test.feature
If you mark few scenarios or features with any tag (for example: smoke
), you can run them by
godog run --tags=smoke
For more info see godog’s README CLI section.