Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drools Business Driven testing using Cucumber

This project shows Business driven testing of Drools using Cucumber as the BDD test framework

Version

  • JDK 8
  • Maven: 3.x
  • Spring: 4.3.x
  • Drools: 6.5.0.Final
  • drools-support-0.0.1 module

Background

Components

  • DRL file: src/mian/resources/playlist/playlist-rules.drl
  • Cucumber feature file: src/test/features/playlist.feature
  • Playlist domain package: playlist

Test steps

  1. Create a playlist of songs
  2. Rules are written to identify and report a specific song
  3. Write test scenarios in the cucumber feature file
  4. Create step executions
  5. Run Cucumber test

The test will print out the rule(s) fired with execution stats. A cucumber report is generated as well.

Run tests

  • Download this project and drools-support
  • mvn clean install on drools-support
  • mvn 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: Music playlist test report

Reference

About

Business driven testing of Drools 6.5 components using Cucumber-java test framework

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages