Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java test suites run twice from ANT #9

Closed
dblock opened this issue Aug 3, 2012 · 1 comment
Closed

Java test suites run twice from ANT #9

dblock opened this issue Aug 3, 2012 · 1 comment
Labels

Comments

@dblock
Copy link
Collaborator

dblock commented Aug 3, 2012

The test suites combine all the other tests, and run twice.

test:
    [junit] Running waffle.apache.AllApacheTests
    [junit] Tests run: 20, Failures: 0, Errors: 0, Time elapsed: 2.294 sec
    [junit] Running waffle.apache.MixedAuthenticatorTests
    [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.702 sec
    [junit] Running waffle.apache.NegotiateAuthenticatorTests
    [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.843 sec
    [junit] Running waffle.apache.WindowsAccountTests
    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.047 sec
    [junit] Running waffle.apache.WindowsRealmTests
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.062 sec

cc: @hazendaz

@hazendaz
Copy link
Member

hazendaz commented Aug 4, 2012

If you change the batchtest to the following, the duplicate tests will stop. It was duplicating because of the test suites I added that call the other tests thus causing multiple calls. Excluding "All*Tests.class" takes care of the issue.

        <batchtest todir="${waffle.test}">
            <fileset dir="${waffle.test.lib}">
                <include name="**/*Tests.class" />
                <exclude name="**/*LoadTests.class" />
                 <exclude name="**/*All*Tests.class" />
            </fileset>
        </batchtest>

-----Original Message-----
From: Daniel Doubrovkine (dB.) [mailto:[email protected]]
Sent: Friday, August 03, 2012 8:18 AM
To: Jeremy Landis
Subject: [waffle] Java test suites run twice from ANT (#9)

The test suites combine all the other tests, and run twice.

test:
    [junit] Running waffle.apache.AllApacheTests
    [junit] Tests run: 20, Failures: 0, Errors: 0, Time elapsed: 2.294 sec
    [junit] Running waffle.apache.MixedAuthenticatorTests
    [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.702 sec
    [junit] Running waffle.apache.NegotiateAuthenticatorTests
    [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.843 sec
    [junit] Running waffle.apache.WindowsAccountTests
    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.047 sec
    [junit] Running waffle.apache.WindowsRealmTests
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.062 sec ```

cc: @hazendaz

---
Reply to this email directly or view it on GitHub:
https://github.com/dblock/waffle/issues/9

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2197 / Virus Database: 2437/5174 - Release Date: 08/03/12

hazendaz referenced this issue in hazendaz/waffle Aug 4, 2012
Ant script was picking up test suites thus running tests twice in ant
builds.  Added exclude to prevent "All*Tests.class" from running during
ant build.
hazendaz referenced this issue in hazendaz/waffle Aug 4, 2012
addressed bug # 9.
@hazendaz hazendaz mentioned this issue Aug 7, 2012
Merged
@dblock dblock closed this as completed Aug 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants