jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JBehave
  • JBEHAVE-132

Support multiple test frameworks

  • Log In
  • Views
    • XML
    • Word
    • Printable

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

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

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Mauro Talevi added a comment - 19/Sep/08 9:52 AM

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 - 19/Sep/08 9:52 AM 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.

People

  • Assignee:
    Mauro Talevi
    Reporter:
    Mauro Talevi
Vote (0)
Watch (0)

Dates

  • Created:
    19/Sep/08 4:46 AM
    Updated:
    16/Oct/08 4:47 PM
    Resolved:
    16/Oct/08 4:47 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.