Re: Test framework ignoring -Dtestmethod
I don't see the test, so hard for me to tell for sure... but there are lots of scaffolding around this class as I inserted an empty test containing an assumption and it initializes lots of stuff; the assumption has to be triggering there somewhere. Once your test fails or assume-fails, locate: TEST-org.apache.solr.client.solrj.io.stream.StreamExpressionTest.xml and see inside; there should be a stack trace leading to the failed assumption. Dawid On Tue, Feb 21, 2017 at 9:00 PM, Joel Bernsteinwrote: > I traced the issue to a specific change that was made to the > StreamExpressionTest. I'm figuring out the best way to address the issue. > > Joel Bernstein > http://joelsolr.blogspot.com/ > > On Tue, Feb 21, 2017 at 2:52 PM, Joel Bernstein wrote: >> >> Hi Dawid, >> >> It does appear to be related to an assumption. I researching what the >> issue is. Also I was using -Dtestmethod to specify the method which does not >> seem to be correct. I have a reproduce method that looks like this: >> >> NOTE: reproduce with: ant test -Dtestcase=StreamExpressionTest >> -Dtests.method=testSignificantTermsStream -Dtests.seed=144DBB9558834AFE >> -Dtests.slow=true -Dtests.locale=ro -Dtests.timezone=Africa/Johannesburg >> -Dtests.asserts=true -Dtests.file.encoding=UTF-8 >> >> >> Using -Dtests.method still gives me problems with the assumption. I'm >> starting to think that the StreamExpressionTest testcase isn't structured >> properly to run individual methods. But this would be a recent issue. >> >> >> Joel Bernstein >> http://joelsolr.blogspot.com/ >> >> On Tue, Feb 21, 2017 at 2:36 PM, Dawid Weiss >> wrote: >>> >>> Joel, >>> >>> your test is being executed, but there is some kind of assumption that >>> is thrown within the body of the method (or in setup/ teardown) that >>> is causing the test to be ignored. Assumptions are regular exceptions >>> -- try wrapping in try/catch and dumping the stack trace if you can't >>> locate it easily. Alternatively, I think the test execution dumps may >>> carry a full stack already? >>> >>> Dawid >>> >>> >>> On Tue, Feb 21, 2017 at 7:23 PM, Joel Bernstein >>> wrote: >>> > >>> > A test I've just added is being ignored when it's being called with the >>> > -Dtestmethod. >>> > >>> > Here is the command line: >>> > >>> > ant test -Dtestcase=StreamExpressionTest >>> > -Dtestmethod=testSignifcantTermsStream >>> > >>> > >>> > Here are some snippets from the output: >>> > -- >>> > -- >>> > >>> > [junit4] 2> 6440 INFO >>> > >>> > (TEST-StreamExpressionTest.testSignifcantTermsStream-seed#[619661D6DA496076]) >>> > [] o.a.s.SolrTestCaseJ4 ###Ending testSignifcantTermsStream >>> > >>> >[junit4] IGNOR/A 0.18s | >>> > StreamExpressionTest.testSignifcantTermsStream >>> > >>> >[junit4]> Assumption #1: got: , expected: is >>> > >>> > >>> > >>> > [junit4] Tests summary: 1 suite, 1 test, 1 ignored (1 assumption) >>> > >>> > - >>> > >>> > - >>> > >>> > Is anyone else seeing this behavior or have any idea why this might be >>> > happening? >>> > >>> > >>> > >>> > Thanks >>> >>> - >>> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org >>> For additional commands, e-mail: dev-h...@lucene.apache.org >>> >> > - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
Re: Test framework ignoring -Dtestmethod
I traced the issue to a specific change that was made to the StreamExpressionTest. I'm figuring out the best way to address the issue. Joel Bernstein http://joelsolr.blogspot.com/ On Tue, Feb 21, 2017 at 2:52 PM, Joel Bernsteinwrote: > Hi Dawid, > > It does appear to be related to an assumption. I researching what the > issue is. Also I was using -Dtestmethod to specify the method which does > not seem to be correct. I have a reproduce method that looks like this: > > NOTE: reproduce with: ant test -Dtestcase=StreamExpressionTest > -Dtests.method=testSignificantTermsStream -Dtests.seed=144DBB9558834AFE > -Dtests.slow=true -Dtests.locale=ro -Dtests.timezone=Africa/Johannesburg > -Dtests.asserts=true -Dtests.file.encoding=UTF-8 > > > Using -Dtests.method still gives me problems with the assumption. I'm > starting to think that the StreamExpressionTest testcase isn't structured > properly to run individual methods. But this would be a recent issue. > > Joel Bernstein > http://joelsolr.blogspot.com/ > > On Tue, Feb 21, 2017 at 2:36 PM, Dawid Weiss > wrote: > >> Joel, >> >> your test is being executed, but there is some kind of assumption that >> is thrown within the body of the method (or in setup/ teardown) that >> is causing the test to be ignored. Assumptions are regular exceptions >> -- try wrapping in try/catch and dumping the stack trace if you can't >> locate it easily. Alternatively, I think the test execution dumps may >> carry a full stack already? >> >> Dawid >> >> >> On Tue, Feb 21, 2017 at 7:23 PM, Joel Bernstein >> wrote: >> > >> > A test I've just added is being ignored when it's being called with the >> > -Dtestmethod. >> > >> > Here is the command line: >> > >> > ant test -Dtestcase=StreamExpressionTest >> > -Dtestmethod=testSignifcantTermsStream >> > >> > >> > Here are some snippets from the output: >> > -- >> > -- >> > >> > [junit4] 2> 6440 INFO >> > (TEST-StreamExpressionTest.testSignifcantTermsStream-seed#[ >> 619661D6DA496076]) >> > [] o.a.s.SolrTestCaseJ4 ###Ending testSignifcantTermsStream >> > >> >[junit4] IGNOR/A 0.18s | StreamExpressionTest.testSigni >> fcantTermsStream >> > >> >[junit4]> Assumption #1: got: , expected: is >> > >> > >> > >> > [junit4] Tests summary: 1 suite, 1 test, 1 ignored (1 assumption) >> > >> > - >> > >> > - >> > >> > Is anyone else seeing this behavior or have any idea why this might be >> > happening? >> > >> > >> > >> > Thanks >> >> - >> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org >> For additional commands, e-mail: dev-h...@lucene.apache.org >> >> >
Re: Test framework ignoring -Dtestmethod
Hi Dawid, It does appear to be related to an assumption. I researching what the issue is. Also I was using -Dtestmethod to specify the method which does not seem to be correct. I have a reproduce method that looks like this: NOTE: reproduce with: ant test -Dtestcase=StreamExpressionTest -Dtests.method=testSignificantTermsStream -Dtests.seed=144DBB9558834AFE -Dtests.slow=true -Dtests.locale=ro -Dtests.timezone=Africa/Johannesburg -Dtests.asserts=true -Dtests.file.encoding=UTF-8 Using -Dtests.method still gives me problems with the assumption. I'm starting to think that the StreamExpressionTest testcase isn't structured properly to run individual methods. But this would be a recent issue. Joel Bernstein http://joelsolr.blogspot.com/ On Tue, Feb 21, 2017 at 2:36 PM, Dawid Weisswrote: > Joel, > > your test is being executed, but there is some kind of assumption that > is thrown within the body of the method (or in setup/ teardown) that > is causing the test to be ignored. Assumptions are regular exceptions > -- try wrapping in try/catch and dumping the stack trace if you can't > locate it easily. Alternatively, I think the test execution dumps may > carry a full stack already? > > Dawid > > > On Tue, Feb 21, 2017 at 7:23 PM, Joel Bernstein > wrote: > > > > A test I've just added is being ignored when it's being called with the > > -Dtestmethod. > > > > Here is the command line: > > > > ant test -Dtestcase=StreamExpressionTest > > -Dtestmethod=testSignifcantTermsStream > > > > > > Here are some snippets from the output: > > -- > > -- > > > > [junit4] 2> 6440 INFO > > (TEST-StreamExpressionTest.testSignifcantTermsStream- > seed#[619661D6DA496076]) > > [] o.a.s.SolrTestCaseJ4 ###Ending testSignifcantTermsStream > > > >[junit4] IGNOR/A 0.18s | StreamExpressionTest. > testSignifcantTermsStream > > > >[junit4]> Assumption #1: got: , expected: is > > > > > > > > [junit4] Tests summary: 1 suite, 1 test, 1 ignored (1 assumption) > > > > - > > > > - > > > > Is anyone else seeing this behavior or have any idea why this might be > > happening? > > > > > > > > Thanks > > - > To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org > For additional commands, e-mail: dev-h...@lucene.apache.org > >
Re: Test framework ignoring -Dtestmethod
Joel, your test is being executed, but there is some kind of assumption that is thrown within the body of the method (or in setup/ teardown) that is causing the test to be ignored. Assumptions are regular exceptions -- try wrapping in try/catch and dumping the stack trace if you can't locate it easily. Alternatively, I think the test execution dumps may carry a full stack already? Dawid On Tue, Feb 21, 2017 at 7:23 PM, Joel Bernsteinwrote: > > A test I've just added is being ignored when it's being called with the > -Dtestmethod. > > Here is the command line: > > ant test -Dtestcase=StreamExpressionTest > -Dtestmethod=testSignifcantTermsStream > > > Here are some snippets from the output: > -- > -- > > [junit4] 2> 6440 INFO > (TEST-StreamExpressionTest.testSignifcantTermsStream-seed#[619661D6DA496076]) > [] o.a.s.SolrTestCaseJ4 ###Ending testSignifcantTermsStream > >[junit4] IGNOR/A 0.18s | StreamExpressionTest.testSignifcantTermsStream > >[junit4]> Assumption #1: got: , expected: is > > > > [junit4] Tests summary: 1 suite, 1 test, 1 ignored (1 assumption) > > - > > - > > Is anyone else seeing this behavior or have any idea why this might be > happening? > > > > Thanks - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
Re: Test framework ignoring -Dtestmethod
Hi Steve, It's misspelled the same way in the method and the command line. I'll fix the misspelling, but something else is going on here that is causing the test to be ignored. Joel Bernstein http://joelsolr.blogspot.com/ On Tue, Feb 21, 2017 at 1:51 PM, Steve Rowewrote: > Hi Joel, > > Looks like testSignifcantTermsStream is misspelled? (missing “i” between > “f” and “c”) > > —- > Steve > www.lucidworks.com > > > On Feb 21, 2017, at 1:23 PM, Joel Bernstein wrote: > > > > > > A test I've just added is being ignored when it's being called with the > -Dtestmethod. > > > > Here is the command line: > > > > ant test -Dtestcase=StreamExpressionTest -Dtestmethod= > testSignifcantTermsStream > > > > > > Here are some snippets from the output: > > -- > > -- > > [junit4] 2> 6440 INFO (TEST-StreamExpressionTest. > testSignifcantTermsStream-seed#[619661D6DA496076]) [] > o.a.s.SolrTestCaseJ4 ###Ending testSignifcantTermsStream > > > >[junit4] IGNOR/A 0.18s | StreamExpressionTest. > testSignifcantTermsStream > > > >[junit4]> Assumption #1: got: , expected: is > > > > > > > > [junit4] Tests summary: 1 suite, 1 test, 1 ignored (1 assumption) > > > > - > > > > - > > > > Is anyone else seeing this behavior or have any idea why this might be > happening? > > > > > > Thanks > > > > > - > To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org > For additional commands, e-mail: dev-h...@lucene.apache.org > >
Re: Test framework ignoring -Dtestmethod
Hi Joel, Looks like testSignifcantTermsStream is misspelled? (missing “i” between “f” and “c”) —- Steve www.lucidworks.com > On Feb 21, 2017, at 1:23 PM, Joel Bernsteinwrote: > > > A test I've just added is being ignored when it's being called with the > -Dtestmethod. > > Here is the command line: > > ant test -Dtestcase=StreamExpressionTest > -Dtestmethod=testSignifcantTermsStream > > > Here are some snippets from the output: > -- > -- > [junit4] 2> 6440 INFO > (TEST-StreamExpressionTest.testSignifcantTermsStream-seed#[619661D6DA496076]) > [] o.a.s.SolrTestCaseJ4 ###Ending testSignifcantTermsStream > >[junit4] IGNOR/A 0.18s | StreamExpressionTest.testSignifcantTermsStream > >[junit4]> Assumption #1: got: , expected: is > > > > [junit4] Tests summary: 1 suite, 1 test, 1 ignored (1 assumption) > > - > > - > > Is anyone else seeing this behavior or have any idea why this might be > happening? > > > Thanks > - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
Test framework ignoring -Dtestmethod
A test I've just added is being ignored when it's being called with the -Dtestmethod. Here is the command line: ant test -Dtestcase=StreamExpressionTest -Dtestmethod=testSignifcantTermsStream Here are some snippets from the output: -- -- [junit4] 2> 6440 INFO (TEST-StreamExpressionTest.testSignifcantTermsStream-seed#[619661D6DA496076]) [] o.a.s.SolrTestCaseJ4 ###Ending testSignifcantTermsStream [junit4] IGNOR/A 0.18s | StreamExpressionTest.testSignifcantTermsStream [junit4]> Assumption #1: got: , expected: is [junit4] Tests summary: 1 suite, 1 test, 1 ignored (1 assumption) - - Is anyone else seeing this behavior or have any idea why this might be happening? Thanks