https://github.com/assertthat/assertthat-testcafe-demo
Demonstration of integration TestCafe, Cucumber js and AssertThat BDD plugin
https://github.com/assertthat/assertthat-testcafe-demo
Last synced: 4 months ago
JSON representation
Demonstration of integration TestCafe, Cucumber js and AssertThat BDD plugin
- Host: GitHub
- URL: https://github.com/assertthat/assertthat-testcafe-demo
- Owner: assertthat
- Created: 2019-04-22T21:23:52.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-29T07:58:04.000Z (about 6 years ago)
- Last Synced: 2025-01-07T15:26:12.269Z (6 months ago)
- Language: JavaScript
- Size: 3.63 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# assertthat-testcafe-demo
Demonstration of integration TestCafe, Cucumber js and AssertThat BDD pluginConfigure for your project in ```package.json```:
```
"scripts": {
"pretest": "./node_modules/.bin/assertthat-bdd.cmd -i PROJECT_ID -f -a ASSERTTHAT_ACCESS_KEY -s ASSERTTHAT_SECRET_KEY",
"test": "./node_modules/.bin/cucumber-js.cmd -f json:reports/cucumber_report.json",
"posttest": "./node_modules/.bin/assertthat-bdd.cmd -i PROJECT_ID -r -a ASSERTTHAT_ACCESS_KEY -s ASSERTTHAT_SECRET_KEY"
}
```
* PROJECT_ID - mandatory Jira project Id
* ASSERTTHAT_ACCESS_KEY - alternatively can be set as environment variable
* ASSERTTHAT_SECRET_KEY - alternatively can be set as environment variableRefer to the configuration documentation here: [AssertThat+Configuration](https://assertthat.atlassian.net/wiki/spaces/ABTM/pages/725385217/AssertThat+Configuration)
To run:
```npm test```
Example feature:
```
Feature: Searching for TestCafe on GitHubI want to find TestCafe repository on GitHub
Scenario: Searching for TestCafe on GitHub
And I am opening GitHub page
When I am typing my search request "TestCafe" on GitHub
Then I am pressing "enter" key on GitHub
Then I should see that the first GitHubs result is "DevExpress/testcafe"
```