Mailing List Archive

Problem running all of a module's tests under IntelliJ: "Wrong test finished."
Hi Dawid :)

Do you use IntelliJ? There appears to be some form of bad interaction between the new RandomizedTesting library additions and IntelliJ's test runner.

When I try to run all of an IntelliJ module's tests under IntelliJ, e.g. analyzers-common or lucene (including core and test-framework), not all tests run; those that don't run are reported as "not started". The external test process reports "Wrong test finished." (???) and then returns exit code -1.

This behavior is relatively new - I don't think the modules/*->lucene/ move is the culprit (the IntelliJ lucene+test-framework module didn't move and it has this issue).

Here's the output from running all analyzers-common tests:

----------
"C:\Program Files\Java\jdk1.6.0_21\bin\java" -ea -DtempDir=temp -Didea.launcher.port=7541 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 11.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 11.1\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 11.1\plugins\junit\lib\junit-rt.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\alt-rt.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\sunjce_provider.jar;C:\svn\lucene\dev\trunk\lucene\build\analysis\analyzers-common\classes\test;C:\svn\lucene\dev\trunk\lucene\build\analysis\analyzers-common\classes\java;C:\svn\lucene\dev\trunk\lucene\test-framework\lib\junit-4.10.jar;C:\svn\lucene\dev\trunk\lucene\test-framework\lib\randomizedtesting-runner-1.2.0.jar;C:\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\test;C:\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\java;C:\svn\lucene\dev\trunk\lucene\test-framework\lib\ant-1.7.1.jar;C:\svn\lucene\dev\trunk\lucene\test-framework\lib\ant-junit-1.7.1.jar" com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 @C:\Users\sarowe\AppData\Local\Temp\idea_junit3377604973713774012.tmp -socket53790

Test '.<default package>.WordBreakTestUnicode_6_0_0' ignored
Test 'org.apache.lucene.analysis.pattern.TestPatternReplaceCharFilter.testNastyPattern' ignored

Wrong test finished. Last started: [] stopped: testNastyPattern(org.apache.lucene.analysis.pattern.TestPatternReplaceCharFilter); class org.junit.runner.Description

Process finished with exit code -1
----------


Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
RE: Problem running all of a module's tests under IntelliJ: "Wrong test finished." [ In reply to ]
JetBrains has 7 issues in their issue tracker for IntelliJ IDEA that mention "Wrong test finished." - all are marked closed & fixed.

http://youtrack.jetbrains.com/issues/IDEA?q=%22Wrong+test+finished%22

AFAICT, the problems mentioned in the above reports are of two main types:

1. Problem running concurrent tests (IDEA-54745).
2. Problem with exception thrown in @BeforeClass (IDEA-49505; IDEA-38287; IDEA-36591)

I tried adding "-Dtests.jvms=1" to the run configuration for the analyzers-common module's tests, and IntelliJ still had the same problem (some tests didn't run & "Wrong test finished"), so I don't think the problem is #1.

Steve

-----Original Message-----
From: Steven A Rowe [mailto:sarowe@syr.edu]
Sent: Tuesday, April 17, 2012 12:05 PM
To: dev@lucene.apache.org
Subject: Problem running all of a module's tests under IntelliJ: "Wrong test finished."

Hi Dawid :)

Do you use IntelliJ? There appears to be some form of bad interaction between the new RandomizedTesting library additions and IntelliJ's test runner.

When I try to run all of an IntelliJ module's tests under IntelliJ, e.g. analyzers-common or lucene (including core and test-framework), not all tests run; those that don't run are reported as "not started". The external test process reports "Wrong test finished." (???) and then returns exit code -1.

This behavior is relatively new - I don't think the modules/*->lucene/ move is the culprit (the IntelliJ lucene+test-framework module didn't move and it has this issue).

Here's the output from running all analyzers-common tests:

----------
"C:\Program Files\Java\jdk1.6.0_21\bin\java" -ea -DtempDir=temp -Didea.launcher.port=7541 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 11.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 11.1\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 11.1\plugins\junit\lib\junit-rt.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\alt-rt.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\sunjce_provider.jar;C:\svn\lucene\dev\trunk\lucene\build\analysis\analyzers-common\classes\test;C:\svn\lucene\dev\trunk\lucene\build\analysis\analyzers-common\classes\java;C:\svn\lucene\dev\trunk\lucene\test-framework\lib\junit-4.10.jar;C:\svn\lucene\dev\trunk\lucene\test-framework\lib\randomizedtesting-runner-1.2.0.jar;C:\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\test;C:\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\java;C:\svn\lucene\dev\trunk\lucene\test-framework\lib\ant-1.7.1.jar;C:\svn\lucene\dev\trunk\lucene\test-framework\lib\ant-junit-1.7.1.jar" com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 @C:\Users\sarowe\AppData\Local\Temp\idea_junit3377604973713774012.tmp -socket53790

Test '.<default package>.WordBreakTestUnicode_6_0_0' ignored Test 'org.apache.lucene.analysis.pattern.TestPatternReplaceCharFilter.testNastyPattern' ignored

Wrong test finished. Last started: [] stopped: testNastyPattern(org.apache.lucene.analysis.pattern.TestPatternReplaceCharFilter); class org.junit.runner.Description

Process finished with exit code -1
----------


Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished." [ In reply to ]
No, I don't use IntelliJ. I also don't know how they run their tests
but I suspect they use some hackish way to plug into junit runner (a
non-standard listener or something)?

My syspicion is that they pass Description objects as filters and
expect identical Description objects to appear on the listener's
output. This doesn't need to be the case and is not a contract
anywhere. Hard to tell, really.

I files an issue for this -
https://github.com/carrotsearch/randomizedtesting/issues/83

Dawid

On Tue, Apr 17, 2012 at 6:56 PM, Steven A Rowe <sarowe@syr.edu> wrote:
> JetBrains has 7 issues in their issue tracker for IntelliJ IDEA that mention "Wrong test finished." - all are marked closed & fixed.
>
> http://youtrack.jetbrains.com/issues/IDEA?q=%22Wrong+test+finished%22
>
> AFAICT, the problems mentioned in the above reports are of two main types:
>
> 1. Problem running concurrent tests (IDEA-54745).
> 2. Problem with exception thrown in @BeforeClass (IDEA-49505; IDEA-38287; IDEA-36591)
>
> I tried adding "-Dtests.jvms=1" to the run configuration for the analyzers-common module's tests, and IntelliJ still had the same problem (some tests didn't run & "Wrong test finished"), so I don't think the problem is #1.
>
> Steve
>
> -----Original Message-----
> From: Steven A Rowe [mailto:sarowe@syr.edu]
> Sent: Tuesday, April 17, 2012 12:05 PM
> To: dev@lucene.apache.org
> Subject: Problem running all of a module's tests under IntelliJ: "Wrong test finished."
>
> Hi Dawid :)
>
> Do you use IntelliJ?  There appears to be some form of bad interaction between the new RandomizedTesting library additions and IntelliJ's test runner.
>
> When I try to run all of an IntelliJ module's tests under IntelliJ, e.g. analyzers-common or lucene (including core and test-framework), not all tests run; those that don't run are reported as "not started".  The external test process reports "Wrong test finished." (???) and then returns exit code -1.
>
> This behavior is relatively new - I don't think the modules/*->lucene/ move is the culprit (the IntelliJ lucene+test-framework module didn't move and it has this issue).
>
> Here's the output from running all analyzers-common tests:
>
> ----------
> "C:\Program Files\Java\jdk1.6.0_21\bin\java" -ea -DtempDir=temp -Didea.launcher.port=7541 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 11.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 11.1\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 11.1\plugins\junit\lib\junit-rt.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\alt-rt.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\sunjce_provider.jar;C:\svn\lucene\dev\trunk\lucene\build\analysis\analyzers-common\classes\test;C:\svn\lucene\dev\trunk\lucene\build\analysis\analyzers-common\classes\java;C:\svn\lucene\dev\trunk\lucene\test-framework\lib\junit-4.10.jar;C:\svn\lucene\dev\trunk\lucene\test-framework\lib\randomizedtesting-runner-1.2.0.jar;C:\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\test;C:\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\java;C:\svn\lucene\dev\trunk\lucene\test-framework\lib\ant-1.7.1.jar;C:\svn\lucene\dev\trunk\lucene\test-framework\lib\ant-junit-1.7.1.jar" com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 @C:\Users\sarowe\AppData\Local\Temp\idea_junit3377604973713774012.tmp -socket53790
>
> Test '.<default package>.WordBreakTestUnicode_6_0_0' ignored Test 'org.apache.lucene.analysis.pattern.TestPatternReplaceCharFilter.testNastyPattern' ignored
>
> Wrong test finished. Last started: [] stopped: testNastyPattern(org.apache.lucene.analysis.pattern.TestPatternReplaceCharFilter); class org.junit.runner.Description
>
> Process finished with exit code -1
> ----------
>
>
> Steve
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished." [ In reply to ]
Steven can you send me a screenshot or something showing where I
should click to get this failure? :)

Dawid

On Tue, Apr 17, 2012 at 6:04 PM, Steven A Rowe <sarowe@syr.edu> wrote:
> Hi Dawid :)
>
> Do you use IntelliJ?  There appears to be some form of bad interaction between the new RandomizedTesting library additions and IntelliJ's test runner.
>
> When I try to run all of an IntelliJ module's tests under IntelliJ, e.g. analyzers-common or lucene (including core and test-framework), not all tests run; those that don't run are reported as "not started".  The external test process reports "Wrong test finished." (???) and then returns exit code -1.
>
> This behavior is relatively new - I don't think the modules/*->lucene/ move is the culprit (the IntelliJ lucene+test-framework module didn't move and it has this issue).
>
> Here's the output from running all analyzers-common tests:
>
> ----------
> "C:\Program Files\Java\jdk1.6.0_21\bin\java" -ea -DtempDir=temp -Didea.launcher.port=7541 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 11.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 11.1\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 11.1\plugins\junit\lib\junit-rt.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\alt-rt.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\ext\sunjce_provider.jar;C:\svn\lucene\dev\trunk\lucene\build\analysis\analyzers-common\classes\test;C:\svn\lucene\dev\trunk\lucene\build\analysis\analyzers-common\classes\java;C:\svn\lucene\dev\trunk\lucene\test-framework\lib\junit-4.10.jar;C:\svn\lucene\dev\trunk\lucene\test-framework\lib\randomizedtesting-runner-1.2.0.jar;C:\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\test;C:\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\java;C:\svn\lucene\dev\trunk\lucene\test-framework\lib\ant-1.7.1.jar;C:\svn\lucene\dev\trunk\lucene\test-framework\lib\ant-junit-1.7.1.jar" com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 @C:\Users\sarowe\AppData\Local\Temp\idea_junit3377604973713774012.tmp -socket53790
>
> Test '.<default package>.WordBreakTestUnicode_6_0_0' ignored
> Test 'org.apache.lucene.analysis.pattern.TestPatternReplaceCharFilter.testNastyPattern' ignored
>
> Wrong test finished. Last started: [] stopped: testNastyPattern(org.apache.lucene.analysis.pattern.TestPatternReplaceCharFilter); class org.junit.runner.Description
>
> Process finished with exit code -1
> ----------
>
>
> Steve
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
RE: Problem running all of a module's tests under IntelliJ: "Wrong test finished." [ In reply to ]
Dawid,

I have included in the IntelliJ IDEA configuration for Lucene/Solr a set of "run configurations", one per module, that runs all tests in each module.

After you have run "ant idea" at the top level, then opened the project in IntelliJ IDEA, then set up the JDK to use (the menu path to set up the JDK is printed to the terminal after you run "ant idea") you should be able to see something similar to this:

http://postimage.org/image/ivi5srd5v

To the left of the triangular green arrow icon (which means: run the selected run configuration), there is a dropdown menu for run configurations. In the above-linked image, I've left-clicked on this dropdown, and the mouse is hovering over "Module analyzers-common" - this is one of the modules that exhibits the test running problem.

Left-click on "Module analyzers-common" to set the active run configuration. After you do this, the run configuration dropdown will change to display this label. Then you can start the tests associated with this by clicking on the green triangular button to the right of the run configuration dropdown.

When IntelliJ runs tests, it will first make the associated module and its dependent modules, then show a JUnit pane at the bottom of the window, with a tree of test suites and their tests on the left, and console output on the right.

Let me know if you need more info.

Steve

-----Original Message-----
From: dawid.weiss@gmail.com [mailto:dawid.weiss@gmail.com] On Behalf Of Dawid Weiss
Sent: Tuesday, April 17, 2012 5:26 PM
To: dev@lucene.apache.org
Subject: Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished."

Steven can you send me a screenshot or something showing where I should click to get this failure? :)

Dawid

On Tue, Apr 17, 2012 at 6:04 PM, Steven A Rowe <sarowe@syr.edu> wrote:
> Hi Dawid :)
>
> Do you use IntelliJ?  There appears to be some form of bad interaction between the new RandomizedTesting library additions and IntelliJ's test runner.
>
> When I try to run all of an IntelliJ module's tests under IntelliJ, e.g. analyzers-common or lucene (including core and test-framework), not all tests run; those that don't run are reported as "not started".  The external test process reports "Wrong test finished." (???) and then returns exit code -1.
>
> This behavior is relatively new - I don't think the modules/*->lucene/ move is the culprit (the IntelliJ lucene+test-framework module didn't move and it has this issue).
>
> Here's the output from running all analyzers-common tests:
>
> ----------
> "C:\Program Files\Java\jdk1.6.0_21\bin\java" -ea -DtempDir=temp
> -Didea.launcher.port=7541 "-Didea.launcher.bin.path=C:\Program Files
> (x86)\JetBrains\IntelliJ IDEA 11.1\bin" -Dfile.encoding=UTF-8
> -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA
> 11.1\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA
> 11.1\plugins\junit\lib\junit-rt.jar;C:\Program
> Files\Java\jdk1.6.0_21\jre\lib\alt-rt.jar;C:\Program
> Files\Java\jdk1.6.0_21\jre\lib\charsets.jar;C:\Program
> Files\Java\jdk1.6.0_21\jre\lib\deploy.jar;C:\Program
> Files\Java\jdk1.6.0_21\jre\lib\javaws.jar;C:\Program
> Files\Java\jdk1.6.0_21\jre\lib\jce.jar;C:\Program
> Files\Java\jdk1.6.0_21\jre\lib\jsse.jar;C:\Program
> Files\Java\jdk1.6.0_21\jre\lib\management-agent.jar;C:\Program
> Files\Java\jdk1.6.0_21\jre\lib\plugin.jar;C:\Program
> Files\Java\jdk1.6.0_21\jre\lib\resources.jar;C:\Program
> Files\Java\jdk1.6.0_21\jre\lib\rt.jar;C:\Program
> Files\Java\jdk1.6.0_21\jre\lib\ext\dnsns.jar;C:\Program
> Files\Java\jdk1.6.0_21\jre\lib\ext\localedata.jar;C:\Program
> Files\Java\jdk1.6.0_21\jre\lib\ext\sunjce_provider.jar;C:\svn\lucene\d
> ev\trunk\lucene\build\analysis\analyzers-common\classes\test;C:\svn\lu
> cene\dev\trunk\lucene\build\analysis\analyzers-common\classes\java;C:\
> svn\lucene\dev\trunk\lucene\test-framework\lib\junit-4.10.jar;C:\svn\l
> ucene\dev\trunk\lucene\test-framework\lib\randomizedtesting-runner-1.2
> .0.jar;C:\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\test;C
> :\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\java;C:\svn\lu
> cene\dev\trunk\lucene\test-framework\lib\ant-1.7.1.jar;C:\svn\lucene\d
> ev\trunk\lucene\test-framework\lib\ant-junit-1.7.1.jar"
> com.intellij.rt.execution.application.AppMain
> com.intellij.rt.execution.junit.JUnitStarter -ideVersion5
> @C:\Users\sarowe\AppData\Local\Temp\idea_junit3377604973713774012.tmp
> -socket53790
>
> Test '.<default package>.WordBreakTestUnicode_6_0_0' ignored Test
> 'org.apache.lucene.analysis.pattern.TestPatternReplaceCharFilter.testN
> astyPattern' ignored
>
> Wrong test finished. Last started: [] stopped:
> testNastyPattern(org.apache.lucene.analysis.pattern.TestPatternReplace
> CharFilter); class org.junit.runner.Description
>
> Process finished with exit code -1
> ----------
>
>
> Steve
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
> additional commands, e-mail: dev-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org

ТÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÐÐ¥FòVç7V'67&–&RÂRÖÖ–âFWb×Vç7V'67&–&TÇV6VæRæ6†Ræ÷&pФf÷"FF—F–öæÂ6öÖÖæG2ÂRÖÖ–âFWbÖ†VÇÇV6VæRæ6†Ræ÷&pРÐ
Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished." [ In reply to ]
Thanks Steve, I'll be bulk-fixing all the discovered issues tomorrow.
I'll let you know if I figure out what's causing this.

Dawid

On Wed, Apr 18, 2012 at 12:00 AM, Steven A Rowe <sarowe@syr.edu> wrote:
> Dawid,
>
> I have included in the IntelliJ IDEA configuration for Lucene/Solr a set of "run configurations", one per module, that runs all tests in each module.
>
> After you have run "ant idea" at the top level, then opened the project in IntelliJ IDEA, then set up the JDK to use (the menu path to set up the JDK is printed to the terminal after you run "ant idea") you should be able to see something similar to this:
>
> http://postimage.org/image/ivi5srd5v
>
> To the left of the triangular green arrow icon (which means: run the selected run configuration), there is a dropdown menu for run configurations.  In the above-linked image, I've left-clicked on this dropdown, and the mouse is hovering over "Module analyzers-common" - this is one of the modules that exhibits the test running problem.
>
> Left-click on "Module analyzers-common" to set the active run configuration.  After you do this, the run configuration dropdown will change to display this label.  Then you can start the tests associated with this by clicking on the green triangular button to the right of the run configuration dropdown.
>
> When IntelliJ runs tests, it will first make the associated module and its dependent modules, then show a JUnit pane at the bottom of the window, with a tree of test suites and their tests on the left, and console output on the right.
>
> Let me know if you need more info.
>
> Steve
>
> -----Original Message-----
> From: dawid.weiss@gmail.com [mailto:dawid.weiss@gmail.com] On Behalf Of Dawid Weiss
> Sent: Tuesday, April 17, 2012 5:26 PM
> To: dev@lucene.apache.org
> Subject: Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished."
>
> Steven can you send me a screenshot or something showing where I should click to get this failure? :)
>
> Dawid
>
> On Tue, Apr 17, 2012 at 6:04 PM, Steven A Rowe <sarowe@syr.edu> wrote:
>> Hi Dawid :)
>>
>> Do you use IntelliJ?  There appears to be some form of bad interaction between the new RandomizedTesting library additions and IntelliJ's test runner.
>>
>> When I try to run all of an IntelliJ module's tests under IntelliJ, e.g. analyzers-common or lucene (including core and test-framework), not all tests run; those that don't run are reported as "not started".  The external test process reports "Wrong test finished." (???) and then returns exit code -1.
>>
>> This behavior is relatively new - I don't think the modules/*->lucene/ move is the culprit (the IntelliJ lucene+test-framework module didn't move and it has this issue).
>>
>> Here's the output from running all analyzers-common tests:
>>
>> ----------
>> "C:\Program Files\Java\jdk1.6.0_21\bin\java" -ea -DtempDir=temp
>> -Didea.launcher.port=7541 "-Didea.launcher.bin.path=C:\Program Files
>> (x86)\JetBrains\IntelliJ IDEA 11.1\bin" -Dfile.encoding=UTF-8
>> -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA
>> 11.1\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA
>> 11.1\plugins\junit\lib\junit-rt.jar;C:\Program
>> Files\Java\jdk1.6.0_21\jre\lib\alt-rt.jar;C:\Program
>> Files\Java\jdk1.6.0_21\jre\lib\charsets.jar;C:\Program
>> Files\Java\jdk1.6.0_21\jre\lib\deploy.jar;C:\Program
>> Files\Java\jdk1.6.0_21\jre\lib\javaws.jar;C:\Program
>> Files\Java\jdk1.6.0_21\jre\lib\jce.jar;C:\Program
>> Files\Java\jdk1.6.0_21\jre\lib\jsse.jar;C:\Program
>> Files\Java\jdk1.6.0_21\jre\lib\management-agent.jar;C:\Program
>> Files\Java\jdk1.6.0_21\jre\lib\plugin.jar;C:\Program
>> Files\Java\jdk1.6.0_21\jre\lib\resources.jar;C:\Program
>> Files\Java\jdk1.6.0_21\jre\lib\rt.jar;C:\Program
>> Files\Java\jdk1.6.0_21\jre\lib\ext\dnsns.jar;C:\Program
>> Files\Java\jdk1.6.0_21\jre\lib\ext\localedata.jar;C:\Program
>> Files\Java\jdk1.6.0_21\jre\lib\ext\sunjce_provider.jar;C:\svn\lucene\d
>> ev\trunk\lucene\build\analysis\analyzers-common\classes\test;C:\svn\lu
>> cene\dev\trunk\lucene\build\analysis\analyzers-common\classes\java;C:\
>> svn\lucene\dev\trunk\lucene\test-framework\lib\junit-4.10.jar;C:\svn\l
>> ucene\dev\trunk\lucene\test-framework\lib\randomizedtesting-runner-1.2
>> .0.jar;C:\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\test;C
>> :\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\java;C:\svn\lu
>> cene\dev\trunk\lucene\test-framework\lib\ant-1.7.1.jar;C:\svn\lucene\d
>> ev\trunk\lucene\test-framework\lib\ant-junit-1.7.1.jar"
>> com.intellij.rt.execution.application.AppMain
>> com.intellij.rt.execution.junit.JUnitStarter -ideVersion5
>> @C:\Users\sarowe\AppData\Local\Temp\idea_junit3377604973713774012.tmp
>> -socket53790
>>
>> Test '.<default package>.WordBreakTestUnicode_6_0_0' ignored Test
>> 'org.apache.lucene.analysis.pattern.TestPatternReplaceCharFilter.testN
>> astyPattern' ignored
>>
>> Wrong test finished. Last started: [] stopped:
>> testNastyPattern(org.apache.lucene.analysis.pattern.TestPatternReplace
>> CharFilter); class org.junit.runner.Description
>>
>> Process finished with exit code -1
>> ----------
>>
>>
>> Steve
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
>> additional commands, e-mail: dev-help@lucene.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished." [ In reply to ]
I think I know what the problem is and I'm working on a fix. This may
require you to set a property "strictJunitCompatibilityIsStupid"
though... I'm not really keen on making what I consider flaws in JUnit
a default behavior :)

Dawid

On Wed, Apr 18, 2012 at 12:05 AM, Dawid Weiss
<dawid.weiss@cs.put.poznan.pl> wrote:
> Thanks Steve, I'll be bulk-fixing all the discovered issues tomorrow.
> I'll let you know if I figure out what's causing this.
>
> Dawid
>
> On Wed, Apr 18, 2012 at 12:00 AM, Steven A Rowe <sarowe@syr.edu> wrote:
>> Dawid,
>>
>> I have included in the IntelliJ IDEA configuration for Lucene/Solr a set of "run configurations", one per module, that runs all tests in each module.
>>
>> After you have run "ant idea" at the top level, then opened the project in IntelliJ IDEA, then set up the JDK to use (the menu path to set up the JDK is printed to the terminal after you run "ant idea") you should be able to see something similar to this:
>>
>> http://postimage.org/image/ivi5srd5v
>>
>> To the left of the triangular green arrow icon (which means: run the selected run configuration), there is a dropdown menu for run configurations.  In the above-linked image, I've left-clicked on this dropdown, and the mouse is hovering over "Module analyzers-common" - this is one of the modules that exhibits the test running problem.
>>
>> Left-click on "Module analyzers-common" to set the active run configuration.  After you do this, the run configuration dropdown will change to display this label.  Then you can start the tests associated with this by clicking on the green triangular button to the right of the run configuration dropdown.
>>
>> When IntelliJ runs tests, it will first make the associated module and its dependent modules, then show a JUnit pane at the bottom of the window, with a tree of test suites and their tests on the left, and console output on the right.
>>
>> Let me know if you need more info.
>>
>> Steve
>>
>> -----Original Message-----
>> From: dawid.weiss@gmail.com [mailto:dawid.weiss@gmail.com] On Behalf Of Dawid Weiss
>> Sent: Tuesday, April 17, 2012 5:26 PM
>> To: dev@lucene.apache.org
>> Subject: Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished."
>>
>> Steven can you send me a screenshot or something showing where I should click to get this failure? :)
>>
>> Dawid
>>
>> On Tue, Apr 17, 2012 at 6:04 PM, Steven A Rowe <sarowe@syr.edu> wrote:
>>> Hi Dawid :)
>>>
>>> Do you use IntelliJ?  There appears to be some form of bad interaction between the new RandomizedTesting library additions and IntelliJ's test runner.
>>>
>>> When I try to run all of an IntelliJ module's tests under IntelliJ, e.g. analyzers-common or lucene (including core and test-framework), not all tests run; those that don't run are reported as "not started".  The external test process reports "Wrong test finished." (???) and then returns exit code -1.
>>>
>>> This behavior is relatively new - I don't think the modules/*->lucene/ move is the culprit (the IntelliJ lucene+test-framework module didn't move and it has this issue).
>>>
>>> Here's the output from running all analyzers-common tests:
>>>
>>> ----------
>>> "C:\Program Files\Java\jdk1.6.0_21\bin\java" -ea -DtempDir=temp
>>> -Didea.launcher.port=7541 "-Didea.launcher.bin.path=C:\Program Files
>>> (x86)\JetBrains\IntelliJ IDEA 11.1\bin" -Dfile.encoding=UTF-8
>>> -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA
>>> 11.1\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA
>>> 11.1\plugins\junit\lib\junit-rt.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\alt-rt.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\charsets.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\deploy.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\javaws.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\jce.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\jsse.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\management-agent.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\plugin.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\resources.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\rt.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\ext\dnsns.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\ext\localedata.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\ext\sunjce_provider.jar;C:\svn\lucene\d
>>> ev\trunk\lucene\build\analysis\analyzers-common\classes\test;C:\svn\lu
>>> cene\dev\trunk\lucene\build\analysis\analyzers-common\classes\java;C:\
>>> svn\lucene\dev\trunk\lucene\test-framework\lib\junit-4.10.jar;C:\svn\l
>>> ucene\dev\trunk\lucene\test-framework\lib\randomizedtesting-runner-1.2
>>> .0.jar;C:\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\test;C
>>> :\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\java;C:\svn\lu
>>> cene\dev\trunk\lucene\test-framework\lib\ant-1.7.1.jar;C:\svn\lucene\d
>>> ev\trunk\lucene\test-framework\lib\ant-junit-1.7.1.jar"
>>> com.intellij.rt.execution.application.AppMain
>>> com.intellij.rt.execution.junit.JUnitStarter -ideVersion5
>>> @C:\Users\sarowe\AppData\Local\Temp\idea_junit3377604973713774012.tmp
>>> -socket53790
>>>
>>> Test '.<default package>.WordBreakTestUnicode_6_0_0' ignored Test
>>> 'org.apache.lucene.analysis.pattern.TestPatternReplaceCharFilter.testN
>>> astyPattern' ignored
>>>
>>> Wrong test finished. Last started: [] stopped:
>>> testNastyPattern(org.apache.lucene.analysis.pattern.TestPatternReplace
>>> CharFilter); class org.junit.runner.Description
>>>
>>> Process finished with exit code -1
>>> ----------
>>>
>>>
>>> Steve
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
>>> additional commands, e-mail: dev-help@lucene.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
RE: Problem running all of a module's tests under IntelliJ: "Wrong test finished." [ In reply to ]
Cool, thanks!

-----Original Message-----
From: dawid.weiss@gmail.com [mailto:dawid.weiss@gmail.com] On Behalf Of Dawid Weiss
Sent: Wednesday, April 18, 2012 7:44 AM
To: dev@lucene.apache.org
Subject: Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished."

I think I know what the problem is and I'm working on a fix. This may require you to set a property "strictJunitCompatibilityIsStupid"
though... I'm not really keen on making what I consider flaws in JUnit a default behavior :)

Dawid

On Wed, Apr 18, 2012 at 12:05 AM, Dawid Weiss <dawid.weiss@cs.put.poznan.pl> wrote:
> Thanks Steve, I'll be bulk-fixing all the discovered issues tomorrow.
> I'll let you know if I figure out what's causing this.
>
> Dawid
>
> On Wed, Apr 18, 2012 at 12:00 AM, Steven A Rowe <sarowe@syr.edu> wrote:
>> Dawid,
>>
>> I have included in the IntelliJ IDEA configuration for Lucene/Solr a set of "run configurations", one per module, that runs all tests in each module.
>>
>> After you have run "ant idea" at the top level, then opened the project in IntelliJ IDEA, then set up the JDK to use (the menu path to set up the JDK is printed to the terminal after you run "ant idea") you should be able to see something similar to this:
>>
>> http://postimage.org/image/ivi5srd5v
>>
>> To the left of the triangular green arrow icon (which means: run the selected run configuration), there is a dropdown menu for run configurations.  In the above-linked image, I've left-clicked on this dropdown, and the mouse is hovering over "Module analyzers-common" - this is one of the modules that exhibits the test running problem.
>>
>> Left-click on "Module analyzers-common" to set the active run configuration.  After you do this, the run configuration dropdown will change to display this label.  Then you can start the tests associated with this by clicking on the green triangular button to the right of the run configuration dropdown.
>>
>> When IntelliJ runs tests, it will first make the associated module and its dependent modules, then show a JUnit pane at the bottom of the window, with a tree of test suites and their tests on the left, and console output on the right.
>>
>> Let me know if you need more info.
>>
>> Steve
>>
>> -----Original Message-----
>> From: dawid.weiss@gmail.com [mailto:dawid.weiss@gmail.com] On Behalf
>> Of Dawid Weiss
>> Sent: Tuesday, April 17, 2012 5:26 PM
>> To: dev@lucene.apache.org
>> Subject: Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished."
>>
>> Steven can you send me a screenshot or something showing where I
>> should click to get this failure? :)
>>
>> Dawid
>>
>> On Tue, Apr 17, 2012 at 6:04 PM, Steven A Rowe <sarowe@syr.edu> wrote:
>>> Hi Dawid :)
>>>
>>> Do you use IntelliJ?  There appears to be some form of bad interaction between the new RandomizedTesting library additions and IntelliJ's test runner.
>>>
>>> When I try to run all of an IntelliJ module's tests under IntelliJ, e.g. analyzers-common or lucene (including core and test-framework), not all tests run; those that don't run are reported as "not started".  The external test process reports "Wrong test finished." (???) and then returns exit code -1.
>>>
>>> This behavior is relatively new - I don't think the modules/*->lucene/ move is the culprit (the IntelliJ lucene+test-framework module didn't move and it has this issue).
>>>
>>> Here's the output from running all analyzers-common tests:
>>>
>>> ----------
>>> "C:\Program Files\Java\jdk1.6.0_21\bin\java" -ea -DtempDir=temp
>>> -Didea.launcher.port=7541 "-Didea.launcher.bin.path=C:\Program Files
>>> (x86)\JetBrains\IntelliJ IDEA 11.1\bin" -Dfile.encoding=UTF-8
>>> -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA
>>> 11.1\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA
>>> 11.1\plugins\junit\lib\junit-rt.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\alt-rt.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\charsets.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\deploy.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\javaws.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\jce.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\jsse.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\management-agent.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\plugin.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\resources.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\rt.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\ext\dnsns.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\ext\localedata.jar;C:\Program
>>> Files\Java\jdk1.6.0_21\jre\lib\ext\sunjce_provider.jar;C:\svn\lucene
>>> \d
>>> ev\trunk\lucene\build\analysis\analyzers-common\classes\test;C:\svn\
>>> lu
>>> cene\dev\trunk\lucene\build\analysis\analyzers-common\classes\java;C
>>> :\
>>> svn\lucene\dev\trunk\lucene\test-framework\lib\junit-4.10.jar;C:\svn
>>> \l
>>> ucene\dev\trunk\lucene\test-framework\lib\randomizedtesting-runner-1
>>> .2
>>> .0.jar;C:\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\test
>>> ;C
>>> :\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\java;C:\svn\
>>> lu
>>> cene\dev\trunk\lucene\test-framework\lib\ant-1.7.1.jar;C:\svn\lucene
>>> \d ev\trunk\lucene\test-framework\lib\ant-junit-1.7.1.jar"
>>> com.intellij.rt.execution.application.AppMain
>>> com.intellij.rt.execution.junit.JUnitStarter -ideVersion5
>>> @C:\Users\sarowe\AppData\Local\Temp\idea_junit3377604973713774012.tm
>>> p
>>> -socket53790
>>>
>>> Test '.<default package>.WordBreakTestUnicode_6_0_0' ignored Test
>>> 'org.apache.lucene.analysis.pattern.TestPatternReplaceCharFilter.tes
>>> tN
>>> astyPattern' ignored
>>>
>>> Wrong test finished. Last started: [] stopped:
>>> testNastyPattern(org.apache.lucene.analysis.pattern.TestPatternRepla
>>> ce CharFilter); class org.junit.runner.Description
>>>
>>> Process finished with exit code -1
>>> ----------
>>>
>>>
>>> Steve
>>>
>>> --------------------------------------------------------------------
>>> - To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
>>> additional commands, e-mail: dev-help@lucene.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
>> additional commands, e-mail: dev-help@lucene.apache.org
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished." [ In reply to ]
Hi Steve,

I think it should be all right now (checked on simple examples, didn't
run full lucene suites). Let me know if this works for you.

Dawid

P.S. It's a long story why this was happening -- different assumptions
by vendors concerning events passed to RunListeners...

On Wed, Apr 18, 2012 at 2:08 PM, Steven A Rowe <sarowe@syr.edu> wrote:
> Cool, thanks!
>
> -----Original Message-----
> From: dawid.weiss@gmail.com [mailto:dawid.weiss@gmail.com] On Behalf Of Dawid Weiss
> Sent: Wednesday, April 18, 2012 7:44 AM
> To: dev@lucene.apache.org
> Subject: Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished."
>
> I think I know what the problem is and I'm working on a fix. This may require you to set a property "strictJunitCompatibilityIsStupid"
> though... I'm not really keen on making what I consider flaws in JUnit a default behavior :)
>
> Dawid
>
> On Wed, Apr 18, 2012 at 12:05 AM, Dawid Weiss <dawid.weiss@cs.put.poznan.pl> wrote:
>> Thanks Steve, I'll be bulk-fixing all the discovered issues tomorrow.
>> I'll let you know if I figure out what's causing this.
>>
>> Dawid
>>
>> On Wed, Apr 18, 2012 at 12:00 AM, Steven A Rowe <sarowe@syr.edu> wrote:
>>> Dawid,
>>>
>>> I have included in the IntelliJ IDEA configuration for Lucene/Solr a set of "run configurations", one per module, that runs all tests in each module.
>>>
>>> After you have run "ant idea" at the top level, then opened the project in IntelliJ IDEA, then set up the JDK to use (the menu path to set up the JDK is printed to the terminal after you run "ant idea") you should be able to see something similar to this:
>>>
>>> http://postimage.org/image/ivi5srd5v
>>>
>>> To the left of the triangular green arrow icon (which means: run the selected run configuration), there is a dropdown menu for run configurations.  In the above-linked image, I've left-clicked on this dropdown, and the mouse is hovering over "Module analyzers-common" - this is one of the modules that exhibits the test running problem.
>>>
>>> Left-click on "Module analyzers-common" to set the active run configuration.  After you do this, the run configuration dropdown will change to display this label.  Then you can start the tests associated with this by clicking on the green triangular button to the right of the run configuration dropdown.
>>>
>>> When IntelliJ runs tests, it will first make the associated module and its dependent modules, then show a JUnit pane at the bottom of the window, with a tree of test suites and their tests on the left, and console output on the right.
>>>
>>> Let me know if you need more info.
>>>
>>> Steve
>>>
>>> -----Original Message-----
>>> From: dawid.weiss@gmail.com [mailto:dawid.weiss@gmail.com] On Behalf
>>> Of Dawid Weiss
>>> Sent: Tuesday, April 17, 2012 5:26 PM
>>> To: dev@lucene.apache.org
>>> Subject: Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished."
>>>
>>> Steven can you send me a screenshot or something showing where I
>>> should click to get this failure? :)
>>>
>>> Dawid
>>>
>>> On Tue, Apr 17, 2012 at 6:04 PM, Steven A Rowe <sarowe@syr.edu> wrote:
>>>> Hi Dawid :)
>>>>
>>>> Do you use IntelliJ?  There appears to be some form of bad interaction between the new RandomizedTesting library additions and IntelliJ's test runner.
>>>>
>>>> When I try to run all of an IntelliJ module's tests under IntelliJ, e.g. analyzers-common or lucene (including core and test-framework), not all tests run; those that don't run are reported as "not started".  The external test process reports "Wrong test finished." (???) and then returns exit code -1.
>>>>
>>>> This behavior is relatively new - I don't think the modules/*->lucene/ move is the culprit (the IntelliJ lucene+test-framework module didn't move and it has this issue).
>>>>
>>>> Here's the output from running all analyzers-common tests:
>>>>
>>>> ----------
>>>> "C:\Program Files\Java\jdk1.6.0_21\bin\java" -ea -DtempDir=temp
>>>> -Didea.launcher.port=7541 "-Didea.launcher.bin.path=C:\Program Files
>>>> (x86)\JetBrains\IntelliJ IDEA 11.1\bin" -Dfile.encoding=UTF-8
>>>> -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA
>>>> 11.1\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA
>>>> 11.1\plugins\junit\lib\junit-rt.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\alt-rt.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\charsets.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\deploy.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\javaws.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\jce.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\jsse.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\management-agent.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\plugin.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\resources.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\rt.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\ext\dnsns.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\ext\localedata.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\ext\sunjce_provider.jar;C:\svn\lucene
>>>> \d
>>>> ev\trunk\lucene\build\analysis\analyzers-common\classes\test;C:\svn\
>>>> lu
>>>> cene\dev\trunk\lucene\build\analysis\analyzers-common\classes\java;C
>>>> :\
>>>> svn\lucene\dev\trunk\lucene\test-framework\lib\junit-4.10.jar;C:\svn
>>>> \l
>>>> ucene\dev\trunk\lucene\test-framework\lib\randomizedtesting-runner-1
>>>> .2
>>>> .0.jar;C:\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\test
>>>> ;C
>>>> :\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\java;C:\svn\
>>>> lu
>>>> cene\dev\trunk\lucene\test-framework\lib\ant-1.7.1.jar;C:\svn\lucene
>>>> \d ev\trunk\lucene\test-framework\lib\ant-junit-1.7.1.jar"
>>>> com.intellij.rt.execution.application.AppMain
>>>> com.intellij.rt.execution.junit.JUnitStarter -ideVersion5
>>>> @C:\Users\sarowe\AppData\Local\Temp\idea_junit3377604973713774012.tm
>>>> p
>>>> -socket53790
>>>>
>>>> Test '.<default package>.WordBreakTestUnicode_6_0_0' ignored Test
>>>> 'org.apache.lucene.analysis.pattern.TestPatternReplaceCharFilter.tes
>>>> tN
>>>> astyPattern' ignored
>>>>
>>>> Wrong test finished. Last started: [] stopped:
>>>> testNastyPattern(org.apache.lucene.analysis.pattern.TestPatternRepla
>>>> ce CharFilter); class org.junit.runner.Description
>>>>
>>>> Process finished with exit code -1
>>>> ----------
>>>>
>>>>
>>>> Steve
>>>>
>>>> --------------------------------------------------------------------
>>>> - To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
>>>> additional commands, e-mail: dev-help@lucene.apache.org
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
>>> additional commands, e-mail: dev-help@lucene.apache.org
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
RE: Problem running all of a module's tests under IntelliJ: "Wrong test finished." [ In reply to ]
Yes! analyzers-common module tests all run now (they didn't before your LUCENE-3993 commit); I'm running all of the others now.

Thanks,
Steve

-----Original Message-----
From: dawid.weiss@gmail.com [mailto:dawid.weiss@gmail.com] On Behalf Of Dawid Weiss
Sent: Wednesday, April 18, 2012 12:00 PM
To: dev@lucene.apache.org
Subject: Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished."

Hi Steve,

I think it should be all right now (checked on simple examples, didn't run full lucene suites). Let me know if this works for you.

Dawid

P.S. It's a long story why this was happening -- different assumptions by vendors concerning events passed to RunListeners...

On Wed, Apr 18, 2012 at 2:08 PM, Steven A Rowe <sarowe@syr.edu> wrote:
> Cool, thanks!
>
> -----Original Message-----
> From: dawid.weiss@gmail.com [mailto:dawid.weiss@gmail.com] On Behalf
> Of Dawid Weiss
> Sent: Wednesday, April 18, 2012 7:44 AM
> To: dev@lucene.apache.org
> Subject: Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished."
>
> I think I know what the problem is and I'm working on a fix. This may require you to set a property "strictJunitCompatibilityIsStupid"
> though... I'm not really keen on making what I consider flaws in JUnit
> a default behavior :)
>
> Dawid
>
> On Wed, Apr 18, 2012 at 12:05 AM, Dawid Weiss <dawid.weiss@cs.put.poznan.pl> wrote:
>> Thanks Steve, I'll be bulk-fixing all the discovered issues tomorrow.
>> I'll let you know if I figure out what's causing this.
>>
>> Dawid
>>
>> On Wed, Apr 18, 2012 at 12:00 AM, Steven A Rowe <sarowe@syr.edu> wrote:
>>> Dawid,
>>>
>>> I have included in the IntelliJ IDEA configuration for Lucene/Solr a set of "run configurations", one per module, that runs all tests in each module.
>>>
>>> After you have run "ant idea" at the top level, then opened the project in IntelliJ IDEA, then set up the JDK to use (the menu path to set up the JDK is printed to the terminal after you run "ant idea") you should be able to see something similar to this:
>>>
>>> http://postimage.org/image/ivi5srd5v
>>>
>>> To the left of the triangular green arrow icon (which means: run the selected run configuration), there is a dropdown menu for run configurations.  In the above-linked image, I've left-clicked on this dropdown, and the mouse is hovering over "Module analyzers-common" - this is one of the modules that exhibits the test running problem.
>>>
>>> Left-click on "Module analyzers-common" to set the active run configuration.  After you do this, the run configuration dropdown will change to display this label.  Then you can start the tests associated with this by clicking on the green triangular button to the right of the run configuration dropdown.
>>>
>>> When IntelliJ runs tests, it will first make the associated module and its dependent modules, then show a JUnit pane at the bottom of the window, with a tree of test suites and their tests on the left, and console output on the right.
>>>
>>> Let me know if you need more info.
>>>
>>> Steve
>>>
>>> -----Original Message-----
>>> From: dawid.weiss@gmail.com [mailto:dawid.weiss@gmail.com] On Behalf
>>> Of Dawid Weiss
>>> Sent: Tuesday, April 17, 2012 5:26 PM
>>> To: dev@lucene.apache.org
>>> Subject: Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished."
>>>
>>> Steven can you send me a screenshot or something showing where I
>>> should click to get this failure? :)
>>>
>>> Dawid
>>>
>>> On Tue, Apr 17, 2012 at 6:04 PM, Steven A Rowe <sarowe@syr.edu> wrote:
>>>> Hi Dawid :)
>>>>
>>>> Do you use IntelliJ?  There appears to be some form of bad interaction between the new RandomizedTesting library additions and IntelliJ's test runner.
>>>>
>>>> When I try to run all of an IntelliJ module's tests under IntelliJ, e.g. analyzers-common or lucene (including core and test-framework), not all tests run; those that don't run are reported as "not started".  The external test process reports "Wrong test finished." (???) and then returns exit code -1.
>>>>
>>>> This behavior is relatively new - I don't think the modules/*->lucene/ move is the culprit (the IntelliJ lucene+test-framework module didn't move and it has this issue).
>>>>
>>>> Here's the output from running all analyzers-common tests:
>>>>
>>>> ----------
>>>> "C:\Program Files\Java\jdk1.6.0_21\bin\java" -ea -DtempDir=temp
>>>> -Didea.launcher.port=7541 "-Didea.launcher.bin.path=C:\Program
>>>> Files (x86)\JetBrains\IntelliJ IDEA 11.1\bin" -Dfile.encoding=UTF-8
>>>> -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA
>>>> 11.1\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA
>>>> 11.1\plugins\junit\lib\junit-rt.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\alt-rt.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\charsets.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\deploy.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\javaws.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\jce.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\jsse.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\management-agent.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\plugin.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\resources.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\rt.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\ext\dnsns.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\ext\localedata.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\ext\sunjce_provider.jar;C:\svn\lucen
>>>> e
>>>> \d
>>>> ev\trunk\lucene\build\analysis\analyzers-common\classes\test;C:\svn
>>>> \
>>>> lu
>>>> cene\dev\trunk\lucene\build\analysis\analyzers-common\classes\java;
>>>> C
>>>> :\
>>>> svn\lucene\dev\trunk\lucene\test-framework\lib\junit-4.10.jar;C:\sv
>>>> n
>>>> \l
>>>> ucene\dev\trunk\lucene\test-framework\lib\randomizedtesting-runner-
>>>> 1
>>>> .2
>>>> .0.jar;C:\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\tes
>>>> t
>>>> ;C
>>>> :\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\java;C:\svn
>>>> \
>>>> lu
>>>> cene\dev\trunk\lucene\test-framework\lib\ant-1.7.1.jar;C:\svn\lucen
>>>> e \d ev\trunk\lucene\test-framework\lib\ant-junit-1.7.1.jar"
>>>> com.intellij.rt.execution.application.AppMain
>>>> com.intellij.rt.execution.junit.JUnitStarter -ideVersion5
>>>> @C:\Users\sarowe\AppData\Local\Temp\idea_junit3377604973713774012.t
>>>> m
>>>> p
>>>> -socket53790
>>>>
>>>> Test '.<default package>.WordBreakTestUnicode_6_0_0' ignored Test
>>>> 'org.apache.lucene.analysis.pattern.TestPatternReplaceCharFilter.te
>>>> s
>>>> tN
>>>> astyPattern' ignored
>>>>
>>>> Wrong test finished. Last started: [] stopped:
>>>> testNastyPattern(org.apache.lucene.analysis.pattern.TestPatternRepl
>>>> a ce CharFilter); class org.junit.runner.Description
>>>>
>>>> Process finished with exit code -1
>>>> ----------
>>>>
>>>>
>>>> Steve
>>>>
>>>> -------------------------------------------------------------------
>>>> -
>>>> - To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
>>>> additional commands, e-mail: dev-help@lucene.apache.org
>>>>
>>>
>>> --------------------------------------------------------------------
>>> - To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
>>> additional commands, e-mail: dev-help@lucene.apache.org
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
> additional commands, e-mail: dev-help@lucene.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
> additional commands, e-mail: dev-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org

B‹KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB•È[œÝXœØÜšX™KK[XZ[ˆ]‹][œÝXœØÜšX™PXÙ[™K˜\XÚK›Ü™ÃB‘›ÜˆY][Û˜[ÛÛ[X[™ËK[XZ[ˆ]‹Z[XÙ[™K˜\XÚK›Ü™ÃBƒB
RE: Problem running all of a module's tests under IntelliJ: "Wrong test finished." [ In reply to ]
All modules' tests run (and succeed) for me now (after hacking the Solr library to exclude log4j-over-slf4j by explicitly listing all jars except l-over-s under solr/lib/). Thanks again! - Steve

-----Original Message-----
From: Steven A Rowe [mailto:sarowe@syr.edu]
Sent: Wednesday, April 18, 2012 1:30 PM
To: dev@lucene.apache.org
Subject: RE: Problem running all of a module's tests under IntelliJ: "Wrong test finished."

Yes! analyzers-common module tests all run now (they didn't before your LUCENE-3993 commit); I'm running all of the others now.

Thanks,
Steve

-----Original Message-----
From: dawid.weiss@gmail.com [mailto:dawid.weiss@gmail.com] On Behalf Of Dawid Weiss
Sent: Wednesday, April 18, 2012 12:00 PM
To: dev@lucene.apache.org
Subject: Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished."

Hi Steve,

I think it should be all right now (checked on simple examples, didn't run full lucene suites). Let me know if this works for you.

Dawid

P.S. It's a long story why this was happening -- different assumptions by vendors concerning events passed to RunListeners...

On Wed, Apr 18, 2012 at 2:08 PM, Steven A Rowe <sarowe@syr.edu> wrote:
> Cool, thanks!
>
> -----Original Message-----
> From: dawid.weiss@gmail.com [mailto:dawid.weiss@gmail.com] On Behalf
> Of Dawid Weiss
> Sent: Wednesday, April 18, 2012 7:44 AM
> To: dev@lucene.apache.org
> Subject: Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished."
>
> I think I know what the problem is and I'm working on a fix. This may require you to set a property "strictJunitCompatibilityIsStupid"
> though... I'm not really keen on making what I consider flaws in JUnit
> a default behavior :)
>
> Dawid
>
> On Wed, Apr 18, 2012 at 12:05 AM, Dawid Weiss <dawid.weiss@cs.put.poznan.pl> wrote:
>> Thanks Steve, I'll be bulk-fixing all the discovered issues tomorrow.
>> I'll let you know if I figure out what's causing this.
>>
>> Dawid
>>
>> On Wed, Apr 18, 2012 at 12:00 AM, Steven A Rowe <sarowe@syr.edu> wrote:
>>> Dawid,
>>>
>>> I have included in the IntelliJ IDEA configuration for Lucene/Solr a set of "run configurations", one per module, that runs all tests in each module.
>>>
>>> After you have run "ant idea" at the top level, then opened the project in IntelliJ IDEA, then set up the JDK to use (the menu path to set up the JDK is printed to the terminal after you run "ant idea") you should be able to see something similar to this:
>>>
>>> http://postimage.org/image/ivi5srd5v
>>>
>>> To the left of the triangular green arrow icon (which means: run the selected run configuration), there is a dropdown menu for run configurations.  In the above-linked image, I've left-clicked on this dropdown, and the mouse is hovering over "Module analyzers-common" - this is one of the modules that exhibits the test running problem.
>>>
>>> Left-click on "Module analyzers-common" to set the active run configuration.  After you do this, the run configuration dropdown will change to display this label.  Then you can start the tests associated with this by clicking on the green triangular button to the right of the run configuration dropdown.
>>>
>>> When IntelliJ runs tests, it will first make the associated module and its dependent modules, then show a JUnit pane at the bottom of the window, with a tree of test suites and their tests on the left, and console output on the right.
>>>
>>> Let me know if you need more info.
>>>
>>> Steve
>>>
>>> -----Original Message-----
>>> From: dawid.weiss@gmail.com [mailto:dawid.weiss@gmail.com] On Behalf
>>> Of Dawid Weiss
>>> Sent: Tuesday, April 17, 2012 5:26 PM
>>> To: dev@lucene.apache.org
>>> Subject: Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished."
>>>
>>> Steven can you send me a screenshot or something showing where I
>>> should click to get this failure? :)
>>>
>>> Dawid
>>>
>>> On Tue, Apr 17, 2012 at 6:04 PM, Steven A Rowe <sarowe@syr.edu> wrote:
>>>> Hi Dawid :)
>>>>
>>>> Do you use IntelliJ?  There appears to be some form of bad interaction between the new RandomizedTesting library additions and IntelliJ's test runner.
>>>>
>>>> When I try to run all of an IntelliJ module's tests under IntelliJ, e.g. analyzers-common or lucene (including core and test-framework), not all tests run; those that don't run are reported as "not started".  The external test process reports "Wrong test finished." (???) and then returns exit code -1.
>>>>
>>>> This behavior is relatively new - I don't think the modules/*->lucene/ move is the culprit (the IntelliJ lucene+test-framework module didn't move and it has this issue).
>>>>
>>>> Here's the output from running all analyzers-common tests:
>>>>
>>>> ----------
>>>> "C:\Program Files\Java\jdk1.6.0_21\bin\java" -ea -DtempDir=temp
>>>> -Didea.launcher.port=7541 "-Didea.launcher.bin.path=C:\Program
>>>> Files (x86)\JetBrains\IntelliJ IDEA 11.1\bin" -Dfile.encoding=UTF-8
>>>> -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA
>>>> 11.1\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA
>>>> 11.1\plugins\junit\lib\junit-rt.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\alt-rt.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\charsets.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\deploy.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\javaws.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\jce.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\jsse.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\management-agent.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\plugin.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\resources.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\rt.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\ext\dnsns.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\ext\localedata.jar;C:\Program
>>>> Files\Java\jdk1.6.0_21\jre\lib\ext\sunjce_provider.jar;C:\svn\lucen
>>>> e
>>>> \d
>>>> ev\trunk\lucene\build\analysis\analyzers-common\classes\test;C:\svn
>>>> \
>>>> lu
>>>> cene\dev\trunk\lucene\build\analysis\analyzers-common\classes\java;
>>>> C
>>>> :\
>>>> svn\lucene\dev\trunk\lucene\test-framework\lib\junit-4.10.jar;C:\sv
>>>> n
>>>> \l
>>>> ucene\dev\trunk\lucene\test-framework\lib\randomizedtesting-runner-
>>>> 1
>>>> .2
>>>> .0.jar;C:\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\tes
>>>> t
>>>> ;C
>>>> :\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\java;C:\svn
>>>> \
>>>> lu
>>>> cene\dev\trunk\lucene\test-framework\lib\ant-1.7.1.jar;C:\svn\lucen
>>>> e \d ev\trunk\lucene\test-framework\lib\ant-junit-1.7.1.jar"
>>>> com.intellij.rt.execution.application.AppMain
>>>> com.intellij.rt.execution.junit.JUnitStarter -ideVersion5
>>>> @C:\Users\sarowe\AppData\Local\Temp\idea_junit3377604973713774012.t
>>>> m
>>>> p
>>>> -socket53790
>>>>
>>>> Test '.<default package>.WordBreakTestUnicode_6_0_0' ignored Test
>>>> 'org.apache.lucene.analysis.pattern.TestPatternReplaceCharFilter.te
>>>> s
>>>> tN
>>>> astyPattern' ignored
>>>>
>>>> Wrong test finished. Last started: [] stopped:
>>>> testNastyPattern(org.apache.lucene.analysis.pattern.TestPatternRepl
>>>> a ce CharFilter); class org.junit.runner.Description
>>>>
>>>> Process finished with exit code -1
>>>> ----------
>>>>
>>>>
>>>> Steve
>>>>
>>>> -------------------------------------------------------------------
>>>> -
>>>> - To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
>>>> additional commands, e-mail: dev-help@lucene.apache.org
>>>>
>>>
>>> --------------------------------------------------------------------
>>> - To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
>>> additional commands, e-mail: dev-help@lucene.apache.org
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
> additional commands, e-mail: dev-help@lucene.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
> additional commands, e-mail: dev-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org

B KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB  [ X ÜšX KK[XZ[
] ][. X ÜšX PX [ K \X K Ü™ B ܈Y][Û˜[ [X[  K[XZ[
] Z[X [ K \X K Ü™ B B

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished." [ In reply to ]
Ok, glad it worked. I'm wondering if anybody is using netbeans?... :)

Dawid

On Wed, Apr 18, 2012 at 7:58 PM, Steven A Rowe <sarowe@syr.edu> wrote:
> All modules' tests run (and succeed) for me now (after hacking the Solr library to exclude log4j-over-slf4j by explicitly listing all jars except l-over-s under solr/lib/).  Thanks again! - Steve
>
> -----Original Message-----
> From: Steven A Rowe [mailto:sarowe@syr.edu]
> Sent: Wednesday, April 18, 2012 1:30 PM
> To: dev@lucene.apache.org
> Subject: RE: Problem running all of a module's tests under IntelliJ: "Wrong test finished."
>
> Yes!  analyzers-common module tests all run now (they didn't before your LUCENE-3993 commit); I'm running all of the others now.
>
> Thanks,
> Steve
>
> -----Original Message-----
> From: dawid.weiss@gmail.com [mailto:dawid.weiss@gmail.com] On Behalf Of Dawid Weiss
> Sent: Wednesday, April 18, 2012 12:00 PM
> To: dev@lucene.apache.org
> Subject: Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished."
>
> Hi Steve,
>
> I think it should be all right now (checked on simple examples, didn't run full lucene suites). Let me know if this works for you.
>
> Dawid
>
> P.S. It's a long story why this was happening -- different assumptions by vendors concerning events passed to RunListeners...
>
> On Wed, Apr 18, 2012 at 2:08 PM, Steven A Rowe <sarowe@syr.edu> wrote:
>> Cool, thanks!
>>
>> -----Original Message-----
>> From: dawid.weiss@gmail.com [mailto:dawid.weiss@gmail.com] On Behalf
>> Of Dawid Weiss
>> Sent: Wednesday, April 18, 2012 7:44 AM
>> To: dev@lucene.apache.org
>> Subject: Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished."
>>
>> I think I know what the problem is and I'm working on a fix. This may require you to set a property "strictJunitCompatibilityIsStupid"
>> though... I'm not really keen on making what I consider flaws in JUnit
>> a default behavior :)
>>
>> Dawid
>>
>> On Wed, Apr 18, 2012 at 12:05 AM, Dawid Weiss <dawid.weiss@cs.put.poznan.pl> wrote:
>>> Thanks Steve, I'll be bulk-fixing all the discovered issues tomorrow.
>>> I'll let you know if I figure out what's causing this.
>>>
>>> Dawid
>>>
>>> On Wed, Apr 18, 2012 at 12:00 AM, Steven A Rowe <sarowe@syr.edu> wrote:
>>>> Dawid,
>>>>
>>>> I have included in the IntelliJ IDEA configuration for Lucene/Solr a set of "run configurations", one per module, that runs all tests in each module.
>>>>
>>>> After you have run "ant idea" at the top level, then opened the project in IntelliJ IDEA, then set up the JDK to use (the menu path to set up the JDK is printed to the terminal after you run "ant idea") you should be able to see something similar to this:
>>>>
>>>> http://postimage.org/image/ivi5srd5v
>>>>
>>>> To the left of the triangular green arrow icon (which means: run the selected run configuration), there is a dropdown menu for run configurations.  In the above-linked image, I've left-clicked on this dropdown, and the mouse is hovering over "Module analyzers-common" - this is one of the modules that exhibits the test running problem.
>>>>
>>>> Left-click on "Module analyzers-common" to set the active run configuration.  After you do this, the run configuration dropdown will change to display this label.  Then you can start the tests associated with this by clicking on the green triangular button to the right of the run configuration dropdown.
>>>>
>>>> When IntelliJ runs tests, it will first make the associated module and its dependent modules, then show a JUnit pane at the bottom of the window, with a tree of test suites and their tests on the left, and console output on the right.
>>>>
>>>> Let me know if you need more info.
>>>>
>>>> Steve
>>>>
>>>> -----Original Message-----
>>>> From: dawid.weiss@gmail.com [mailto:dawid.weiss@gmail.com] On Behalf
>>>> Of Dawid Weiss
>>>> Sent: Tuesday, April 17, 2012 5:26 PM
>>>> To: dev@lucene.apache.org
>>>> Subject: Re: Problem running all of a module's tests under IntelliJ: "Wrong test finished."
>>>>
>>>> Steven can you send me a screenshot or something showing where I
>>>> should click to get this failure? :)
>>>>
>>>> Dawid
>>>>
>>>> On Tue, Apr 17, 2012 at 6:04 PM, Steven A Rowe <sarowe@syr.edu> wrote:
>>>>> Hi Dawid :)
>>>>>
>>>>> Do you use IntelliJ?  There appears to be some form of bad interaction between the new RandomizedTesting library additions and IntelliJ's test runner.
>>>>>
>>>>> When I try to run all of an IntelliJ module's tests under IntelliJ, e.g. analyzers-common or lucene (including core and test-framework), not all tests run; those that don't run are reported as "not started".  The external test process reports "Wrong test finished." (???) and then returns exit code -1.
>>>>>
>>>>> This behavior is relatively new - I don't think the modules/*->lucene/ move is the culprit (the IntelliJ lucene+test-framework module didn't move and it has this issue).
>>>>>
>>>>> Here's the output from running all analyzers-common tests:
>>>>>
>>>>> ----------
>>>>> "C:\Program Files\Java\jdk1.6.0_21\bin\java" -ea -DtempDir=temp
>>>>> -Didea.launcher.port=7541 "-Didea.launcher.bin.path=C:\Program
>>>>> Files (x86)\JetBrains\IntelliJ IDEA 11.1\bin" -Dfile.encoding=UTF-8
>>>>> -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA
>>>>> 11.1\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA
>>>>> 11.1\plugins\junit\lib\junit-rt.jar;C:\Program
>>>>> Files\Java\jdk1.6.0_21\jre\lib\alt-rt.jar;C:\Program
>>>>> Files\Java\jdk1.6.0_21\jre\lib\charsets.jar;C:\Program
>>>>> Files\Java\jdk1.6.0_21\jre\lib\deploy.jar;C:\Program
>>>>> Files\Java\jdk1.6.0_21\jre\lib\javaws.jar;C:\Program
>>>>> Files\Java\jdk1.6.0_21\jre\lib\jce.jar;C:\Program
>>>>> Files\Java\jdk1.6.0_21\jre\lib\jsse.jar;C:\Program
>>>>> Files\Java\jdk1.6.0_21\jre\lib\management-agent.jar;C:\Program
>>>>> Files\Java\jdk1.6.0_21\jre\lib\plugin.jar;C:\Program
>>>>> Files\Java\jdk1.6.0_21\jre\lib\resources.jar;C:\Program
>>>>> Files\Java\jdk1.6.0_21\jre\lib\rt.jar;C:\Program
>>>>> Files\Java\jdk1.6.0_21\jre\lib\ext\dnsns.jar;C:\Program
>>>>> Files\Java\jdk1.6.0_21\jre\lib\ext\localedata.jar;C:\Program
>>>>> Files\Java\jdk1.6.0_21\jre\lib\ext\sunjce_provider.jar;C:\svn\lucen
>>>>> e
>>>>> \d
>>>>> ev\trunk\lucene\build\analysis\analyzers-common\classes\test;C:\svn
>>>>> \
>>>>> lu
>>>>> cene\dev\trunk\lucene\build\analysis\analyzers-common\classes\java;
>>>>> C
>>>>> :\
>>>>> svn\lucene\dev\trunk\lucene\test-framework\lib\junit-4.10.jar;C:\sv
>>>>> n
>>>>> \l
>>>>> ucene\dev\trunk\lucene\test-framework\lib\randomizedtesting-runner-
>>>>> 1
>>>>> .2
>>>>> .0.jar;C:\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\tes
>>>>> t
>>>>> ;C
>>>>> :\svn\lucene\dev\trunk\lucene\build\lucene-idea\classes\java;C:\svn
>>>>> \
>>>>> lu
>>>>> cene\dev\trunk\lucene\test-framework\lib\ant-1.7.1.jar;C:\svn\lucen
>>>>> e \d ev\trunk\lucene\test-framework\lib\ant-junit-1.7.1.jar"
>>>>> com.intellij.rt.execution.application.AppMain
>>>>> com.intellij.rt.execution.junit.JUnitStarter -ideVersion5
>>>>> @C:\Users\sarowe\AppData\Local\Temp\idea_junit3377604973713774012.t
>>>>> m
>>>>> p
>>>>> -socket53790
>>>>>
>>>>> Test '.<default package>.WordBreakTestUnicode_6_0_0' ignored Test
>>>>> 'org.apache.lucene.analysis.pattern.TestPatternReplaceCharFilter.te
>>>>> s
>>>>> tN
>>>>> astyPattern' ignored
>>>>>
>>>>> Wrong test finished. Last started: [] stopped:
>>>>> testNastyPattern(org.apache.lucene.analysis.pattern.TestPatternRepl
>>>>> a ce CharFilter); class org.junit.runner.Description
>>>>>
>>>>> Process finished with exit code -1
>>>>> ----------
>>>>>
>>>>>
>>>>> Steve
>>>>>
>>>>> -------------------------------------------------------------------
>>>>> -
>>>>> - To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
>>>>> additional commands, e-mail: dev-help@lucene.apache.org
>>>>>
>>>>
>>>> --------------------------------------------------------------------
>>>> - To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
>>>> additional commands, e-mail: dev-help@lucene.apache.org
>>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
>> additional commands, e-mail: dev-help@lucene.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
>> additional commands, e-mail: dev-help@lucene.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org
>
>  B KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB    [  X  ܚX K  K[XZ[
>   ] ][.  X  ܚX P  X [ K \ X  K ܙ B  ܈ Y  ] [ۘ[    [X[     K[XZ[
>   ] Z [    X [ K \ X  K ܙ B B
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org