[ https://issues.apache.org/jira/browse/LUCENE-2708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir resolved LUCENE-2708. --------------------------------- Resolution: Fixed I committed this to revision 1023009, 1023016 (3x) we can reopen to customize how it looks, but really these assumes are rare (jvm bug, network connection, etc) > when a test Assume fails, display information > --------------------------------------------- > > Key: LUCENE-2708 > URL: https://issues.apache.org/jira/browse/LUCENE-2708 > Project: Lucene - Java > Issue Type: Test > Affects Versions: 3.1, 4.0 > Reporter: Robert Muir > Assignee: Robert Muir > Fix For: 3.1, 4.0 > > Attachments: LUCENE-2708.patch > > > Currently if a test uses Assume.assumeTrue, it silently passes. > I think we should output something, at *least* if you have VERBOSE set, maybe > always. > Here's an example of what the output might look like: > {noformat} > junit-sequential: > [junit] Testsuite: org.apache.solr.servlet.SolrRequestParserTest > [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 1.582 sec > [junit] > [junit] ------------- Standard Error ----------------- > [junit] NOTE: testStreamURL Assume failed (ignored): > [junit] org.junit.internal.AssumptionViolatedException: got: > <java.io.FileNotFoundException: http://www.apdfgdfgache > .org/dist/lucene/solr/>, expected: null > [junit] at org.junit.Assume.assumeThat(Assume.java:70) > [junit] at org.junit.Assume.assumeNoException(Assume.java:92) > [junit] at > org.apache.solr.servlet.SolrRequestParserTest.testStreamURL(SolrRequestParserTest.java:123) > [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [junit] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [junit] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [junit] at java.lang.reflect.Method.invoke(Method.java:597) > [junit] at > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) > [junit] at > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) > [junit] at > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) > [junit] at > org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) > [junit] at > org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:48) > [junit] at > org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) > [junit] at > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) > [junit] at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:802) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:775) > [junit] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) > [junit] at > org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) > [junit] at > org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) > [junit] at > org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) > [junit] at > org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) > [junit] at > org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) > [junit] at > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) > [junit] at org.junit.runners.ParentRunner.run(ParentRunner.java:236) > [junit] at > junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39) > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420) > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911) > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768) > [junit] Caused by: java.io.FileNotFoundException: > http://www.apdfgdfgache.org/dist/lucene/solr/ > [junit] at > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1311) > [junit] at > org.apache.solr.servlet.SolrRequestParserTest.testStreamURL(SolrRequestParserTest.java:120) > [junit] ... 26 more > [junit] ------------- ---------------- --------------- > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org