This project shows Business driven testing of Drools using Cucumber as the BDD test framework
- JDK 8
- Maven: 3.x
- Spring: 4.3.x
- Drools: 6.5.0.Final
- drools-support-0.0.1 module
- DRL file: src/mian/resources/playlist/playlist-rules.drl
- Cucumber feature file: src/test/features/playlist.feature
- Playlist domain package: playlist
- Create a playlist of songs
- Rules are written to identify and report a specific song
- Write test scenarios in the cucumber feature file
- Create step executions
- Run Cucumber test
The test will print out the rule(s) fired with execution stats. A cucumber report is generated as well.
- Download this project and drools-support
mvn clean install
on drools-supportmvn clean package
on this project- Tests get executed and a report will be generated at target/cucumber/cucumber-html-reports
- Optionally you may use the Jenkins Cucumber plugin to generate the report and remove the cucumber report plugin from the POM
- Test report after execution: