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: [email protected]
        ReportedBy: [email protected]


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.

Reply via email to