[ https://issues.apache.org/jira/browse/LUCENE-7937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16139041#comment-16139041 ]
Mike Sokolov edited comment on LUCENE-7937 at 8/23/17 8:39 PM: --------------------------------------------------------------- JUnit test runner display in IntelliJ shown above. The first image shows what happens when you run an entire LuceneTestCase class. The second one shows what happens when you run a single method in the same class -- you see all the methods in orange and the one you ran in green (it passed). The last one shows what happens when you run a single method in another class (not a LuceneTestCase), which also has a lot of other methods that didn't get run, and are not displayed: just the one method shown passing. Also -- just to be totally explicit, I ran the single test cases by right-clicking and in that test runner output window. was (Author: sokolov): JUnit test runner display in IntelliJ shown above. The first image shows what happens when you run an entire LuceneTestCase class. The second one shows what happens when you run a single method in the same class -- you see all the methods in orange and the one you ran in green (it passed). The last one shows what happens when you run a single method in another class (not a LuceneTestCase), which also has a lot of other methods that didn't get run, and are not displayed: just the one method shown passing. > Improve tests to play nicely w/IntelliJ IDE > ------------------------------------------- > > Key: LUCENE-7937 > URL: https://issues.apache.org/jira/browse/LUCENE-7937 > Project: Lucene - Core > Issue Type: Improvement > Components: general/test > Affects Versions: 7.1 > Reporter: Mike Sokolov > Attachments: Screen Shot 2017-08-23 at 4.27.19 PM.png, Screen Shot > 2017-08-23 at 4.27.49 PM.png, Screen Shot 2017-08-23 at 4.28.22 PM.png > > > When running a single test in IntelliJ, something about the way the tests are > run causes the UI to display all the tests in the class *other than the one > that was run* as if they had been ignored. In contrast, running a single test > in a typical test case class not derived from LuceneTestCase shows only the > status of that test case method, not all the other methods in the class. > This is somewhat irritating since it makes it hard to see what's going on > with the test of interest. > This is with IntelliJ 2017.1.4, junit 4.12 -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org