ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47558] New: Assertion status silently ignored by <junit> if unforked
Date Wed, 22 Jul 2009 15:10:20 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47558

           Summary: Assertion status silently ignored by <junit> if
                    unforked
           Product: Ant
           Version: 1.6.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Optional Tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: jglick@netbeans.org


Compare the <junit><assertions> code added to 1.6 to
https://issues.apache.org/bugzilla/attachment.cgi?id=7141 from bug #21387; it
does not support assertions in unforked mode, and looks like it does not even
warn you if you try. Options:

1. Make JUnitTask.executeInVM warn:

        if (getCommandline().getAssertions() != null) {
            log("assertions are ignored if running in the same VM.",
                Project.MSG_WARN);
        }

2. Add a method to BaseAssertion to configure a ClassLoader with
set*AssertionStatus, and use this in JUnitTask.executeInVM (possibly also in
ExecuteJava.execute).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message