docker for cucumber BDD
[sdc.git] / cucumber-js-test-apis-ci / plugins / README.md
1 <br>
2 <h1>Welcome!</h1>
3 This is the documentation for using the BDD testing framework for SDC.<br>
4 The Modules on the left contains all steps for particalar aress and/or explanations of what they do.<br>
5 <br><br>
6 <h3>How to set the server configuration</h3>
7 <li> Copy the config.json to devConfig.json
8 <li> Replace the server and user values with the correct values
9 <h3>How to run with Maven</h3>
10 <li>"mvn install" will install npm if needed, download all modules and create the documentation under the "docs" folder
11 <li>"mvn test-and-report" will run all  tests in the features folder and create an HTML report under the "reports" folder
12 <h3>How to develop tests</h3>
13 You can open the project in IntelliJ and Webstorm to run and develop scenarios.<br>
14 <li><b>You will need to install the Cucumber.Js plugin</b> In order to install, go to "Settings/Plugins". If cucumber.js in not on the list, go to "Browse repositories.." and install .
15 <li>First time only: Right click on feature file and try to run. Now go to "Run/edit configurations" and set the "executable path" to the "node_modules\.bin\cucumber-js.cmd" under your current project.
16 <li>Now you can run the feature files by right clicking on the file and selecting "Run" from IDEA.<br>
17 <li>Add to existing scenarios or create new files under the "features" directory for additional tests
18 <br>
19 <li>You can also run a specific test from the command line by running "npm run test -- [features/path to file]
20 <h3>More Information</h3>
21 <li> More on <a href="https://cucumber.io/docs/reference">Cucumber</a>
22 <li> More on <a herf="https://github.com/cucumber/cucumber/wiki/Gherkin">Gherkin</a>
23 <li> More on <a href="https://github.com/cucumber/cucumber-js">Cucumber-js</a>