JBehave
  1. JBehave
  2. JBEHAVE-132

Support multiple test frameworks

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      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

        Hide
        Mauro Talevi added a comment -

        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.

        Show
        Mauro Talevi added a comment - 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.
        Mauro Talevi made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Mauro Talevi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: