Details
Description
Currently, we support JUnit 4.x as the test framework to run scenarios via the @Test annotation.
We could easily extend support to multiple frameworks - including JUnit 3.8 and TestNG.
The cleanest approach would be to rename abstract Scenario to JUnitScenario and pull up a Scenario interface.
Since JUnit 4.x jar includes the 3.8 classes, support for JUnit 3 would simply require extending TestCase and having a run method that starts with "test".
Activity
Mauro Talevi
made changes -
Field | Original Value | New Value |
---|---|---|
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Extracted Scenario interface and provided AbstractScenario impl.
Renamed Scenario -> JUnitScenario (which now supports both JUnit 4.x and JUnit 3.x) and refactored it to be a decorator of AbstractScenario.
The main difference is that AbstractScenario is test-framework agnostic while JUnitScenario (and others to come) decorate AbstractScenario to add test-framework support.