Add Gwen to JS projects and shift left
You can now add Gwen to JS projects using npm and have all your executable Gherkin living next to your code and integrated into your development and testing process.
Init project command
gwen init command initialises Gwen in your project directory by creating the following:
- Project, browser, and environment level settings files
- Feature and meta subdirectories
- Sample feature and meta files
HOCON and JSON settings
Two new settings formats are now supported in addition to properties:
- HOCON (Human-Optimized Config Object Notation)
- A superset of JSON
- Pure JSON format
Better defaults for better Gherkin
gwen.feature.mode setting now defaults to declarative instead of imperative to keep DSL steps confined to meta and out of feature specifications.
gwen.behavior.rules setting now defaults to strict instead of lenient to enforce correct behavioral semantics and Given-When-Then order in all feature scenarios.
Gwen now logs pretty execution results to the console.
New CLI option for verbose logging
Use the new
-v|--verbose CLI option for verbose logging instead (equivalent to Gwen 2 logging).
Configurable CLI options
CLI options are now configurable enabling you to customize your own Gwen launch profile.
The embedded web engine now uses Selenium 4 and new DSLs have been added to support:
- Gwen workspaces have been deprecated in favor of JS projects
- Applitools integration has been removed