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)
Signup
Maven Surefire
  • Maven Surefire
  • SUREFIRE-86 Support TestNG
  • SUREFIRE-92

Fix classloader separation of Test NG

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0 (2.2 plugin)
  • Fix Version/s: None
  • Component/s: TestNG support
  • Labels:
    None
  • Number of attachments :
    0

Description

Currently, all of the test classes go into the surefire classloader (as before) so that TestNG can find them.

Using the context classloader might be the key to avoiding this.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Kenney Westerhof added a comment - 19/Oct/06 5:59 AM

I think this is fixed by my commit in revision 441092 (see SUREFIRE-54).

The solution is to have 2 classloaders; one with the tests, and another one with surefire + testing framework,
that has the tests-classloader as a parent.

Close?

Show
Kenney Westerhof added a comment - 19/Oct/06 5:59 AM I think this is fixed by my commit in revision 441092 (see SUREFIRE-54 ). The solution is to have 2 classloaders; one with the tests, and another one with surefire + testing framework, that has the tests-classloader as a parent. Close?
Hide
Permalink
Brett Porter added a comment - 31/Oct/06 11:29 AM

I think so, but I'm confused (it is early). In junit, we have to use reflection to call out to the test classes from surefire because of the separation of classloaders. Does this solution rely on the ability of testng to use a different classloader, and so by moving testng into the surefire classloader, the tests can be entirely separated?

Show
Brett Porter added a comment - 31/Oct/06 11:29 AM I think so, but I'm confused (it is early). In junit, we have to use reflection to call out to the test classes from surefire because of the separation of classloaders. Does this solution rely on the ability of testng to use a different classloader, and so by moving testng into the surefire classloader, the tests can be entirely separated?
Hide
Permalink
Dan Fabulich added a comment - 20/Nov/07 4:38 PM

I think this issue is minor; so long as you can fork TestNG and so long as TestNG works in the integration tests, this issue can't cause a serious bug.

Show
Dan Fabulich added a comment - 20/Nov/07 4:38 PM I think this issue is minor; so long as you can fork TestNG and so long as TestNG works in the integration tests, this issue can't cause a serious bug.
Hide
Permalink
Kristian Rosenvold added a comment - 16/Feb/12 9:18 AM

I'm closing this issue because as I understand it, it is fixed. There is separation and has been for quite a long time. Feel free to supplement further details if I'm misunderstanding something here.

Show
Kristian Rosenvold added a comment - 16/Feb/12 9:18 AM I'm closing this issue because as I understand it, it is fixed. There is separation and has been for quite a long time. Feel free to supplement further details if I'm misunderstanding something here.

People

  • Assignee:
    Unassigned
    Reporter:
    Brett Porter
Vote (0)
Watch (1)

Dates

  • Created:
    04/Mar/06 7:18 AM
    Updated:
    23/Dec/12 12:49 PM
    Resolved:
    16/Feb/12 9:18 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.