All tests failed in the build?
Hi, Just wondering whether I have broken anything. When running "ant test", all the unit tests fail for me. [...] test.client: [mkdir] Created dir: C:\dev\xwiki\trunk\test\reports [junit] Running com.xpn.xwiki.atom.WSSEHeaderTest [junit] Tests run: 9, Failures: 0, Errors: 9, Time elapsed: 0,511 sec [junit] Test com.xpn.xwiki.atom.WSSEHeaderTest FAILED [junit] Running com.xpn.xwiki.atom.XWikiHelperTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,822 sec [junit] Test com.xpn.xwiki.atom.XWikiHelperTest FAILED [junit] Running com.xpn.xwiki.test.ClassesTest [...] Here's the report for WSSEHeaderTest: <testcase classname="com.xpn.xwiki.atom.WSSEHeaderTest" name="testParseUserName" time="0.04"> <error message="com/cortexeb/tools/clover/aq" type="java.lang.NoClassDefFoundError">java.lang.NoClassDefFoundError: com/cortexeb/tools/clover/aq at [...] <testcase classname="com.xpn.xwiki.atom.WSSEHeaderTest" name="testParsePasswordDigest" time="0.0"> <error type="java.lang.NoClassDefFoundError">java.lang.NoClassDefFoundError at com.xpn.xwiki.atom.WSSEHeaderTest.testParsePasswordDigest(WSSEHeaderTest.jav a:24) [...] Is this only happening to me? Thanks -Vincent
Oh ! I see some of the tests I wrote that are failing in there, let me take a look this morning. I know that some of them will fail because they rely on the default database being loaded. I still have to fix that. On 5/22/05, Vincent Massol <[email protected]> wrote:
Hi,
Just wondering whether I have broken anything. When running "ant test", all the unit tests fail for me.
-- Luis Arias http://www.xwiki.com http://www.innover-entreprendre.net +33 6 14 20 87 93 mobile
Luis, *ALL* the unit tests fail on my machine. I doubt they're all yours. Here's the full Ant output attached. Thanks -Vincent
-----Original Message----- From: Luis Arias [mailto:[email protected]] Sent: lundi 23 mai 2005 08:48 To: [email protected] Subject: Re: [xwiki-dev] All tests failed in the build?
Oh ! I see some of the tests I wrote that are failing in there, let me take a look this morning. I know that some of them will fail because they rely on the default database being loaded. I still have to fix that.
[snip]
On 5/23/05, Vincent Massol <[email protected]> wrote:
Luis, *ALL* the unit tests fail on my machine. I doubt they're all yours. Here's the full Ant output attached.
I have 28 Failed + ldap test. I have no problem with the others. Jeremi -- http://www.sport42.net - http://fr.runnerslifestyle.com Développeur http://www.xwiki.org Tel : 06.84.50.33.49 skype: jeremi23
-----Original Message----- From: jeremi joslin [mailto:[email protected]] Sent: lundi 23 mai 2005 10:21 To: [email protected] Subject: Re: [xwiki-dev] All tests failed in the build?
On 5/23/05, Vincent Massol <[email protected]> wrote:
Luis, *ALL* the unit tests fail on my machine. I doubt they're all yours. Here's the full Ant output attached.
I have 28 Failed + ldap test. I have no problem with the others.
There are 2 types of tests - unit tests - integration tests I'd like to run only the unit tests as I believe the integration ones require some setup (Which is BTW not nice - they should be automated as well). How do I run the unit tests? Where are located the unit tests? Where are located the integration tests? It seems to me that there are integration tests in src/test, mixed with unit tests. Is that right? What do I need to run all the tests? Thanks -Vincent
On 5/23/05, Vincent Massol <[email protected]> wrote:
[snip]
There are 2 types of tests - unit tests - integration tests
I'd like to run only the unit tests as I believe the integration ones require some setup (Which is BTW not nice - they should be automated as well).
How do I run the unit tests?
Where are located the unit tests? Where are located the integration tests? It seems to me that there are integration tests in src/test, mixed with unit tests. Is that right?
yes, they are mixed with integration test.
What do I need to run all the tests?
- 2 empty mysql database xwikitest and xwikitest2 with 2 users xwikitest (all privileges on the 2 db) and xwikitest2 (all privileges on the xwikitest) - a ldap server but I don't know how to configure it. - perl I think it's all. [snip] Jérémi -- http://www.sport42.net - http://fr.runnerslifestyle.com Développeur http://www.xwiki.org Tel : 06.84.50.33.49 skype: jeremi23
Right I forget the LDAP server for the LDAP tests.. Forget about perl.. We should remove this Ludovic jeremi joslin a écrit :
On 5/23/05, Vincent Massol <[email protected]> wrote:
[snip]
There are 2 types of tests - unit tests - integration tests
I'd like to run only the unit tests as I believe the integration ones require some setup (Which is BTW not nice - they should be automated as well).
How do I run the unit tests?
Where are located the unit tests? Where are located the integration tests? It seems to me that there are integration tests in src/test, mixed with unit tests. Is that right?
yes, they are mixed with integration test.
What do I need to run all the tests?
- 2 empty mysql database xwikitest and xwikitest2 with 2 users xwikitest (all privileges on the 2 db) and xwikitest2 (all privileges on the xwikitest) - a ldap server but I don't know how to configure it. - perl I think it's all. [snip]
Jérémi
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
Currently in XWiki you have 5 types of tests: 1/ unit tests that need to database 2/ unit tests that need a database 3/ unit tests that need 2 databases (virtual wiki tests) 4/ cactus test that need a database 5/ cactus tests that need 2 databases (virtual wiki tests) Cactus tests are very close to what you call integration tests, as they handle a full wiki requests without any stubs or mock objects Unit tests are sometimes not unit enough, in the sense that they would deserve some mock objects Now the Hibernate store tests still need a database although, it is not integration tests. I agree that we could use Hypersonic as a tests database which would simplify setup.. We just need to verify that hypersonic supports "setCatalog" to switch databases, which is necessary for the virtual wiki tests. What you currently need to test: 1/ a mysql instance 2/ 2 databases called xwikitest and xwikitest2, accessible from localhost by the user xwikitest/xwikitest 3/ a tomcat instance for the cactus tests It requires a little bit of setup but it's actually what you also need to run an xwiki instance locally.. Hypersonice would be a simplicity improvement.. It's actually a good idea also to have a default release running Hypersonic.. Ludovic PS: there is some refactoring needed from Luis, who has setup additional hibernate and xwiki configs for his atom tests, instead of using the same one as the other tests. Ludovic Vincent Massol a écrit :
There are 2 types of tests - unit tests - integration tests
I'd like to run only the unit tests as I believe the integration ones require some setup (Which is BTW not nice - they should be automated as well).
How do I run the unit tests?
Where are located the unit tests? Where are located the integration tests? It seems to me that there are integration tests in src/test, mixed with unit tests. Is that right?
What do I need to run all the tests?
Thanks -Vincent
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
-----Original Message----- From: Ludovic Dubost [mailto:[email protected]] Sent: lundi 23 mai 2005 10:58 To: [email protected] Subject: Re: [xwiki-dev] All tests failed in the build?
Currently in XWiki you have 5 types of tests:
1/ unit tests that need to database 2/ unit tests that need a database 3/ unit tests that need 2 databases (virtual wiki tests) 4/ cactus test that need a database 5/ cactus tests that need 2 databases (virtual wiki tests)
Just to be sure we are using the same meme, I call "integration tests", types 2 (provided they don't need anything else from the environment - like a container, ldap, etc), 3, 4 and 5.
Cactus tests are very close to what you call integration tests, as they handle a full wiki requests without any stubs or mock objects Unit tests are sometimes not unit enough, in the sense that they would deserve some mock objects
Integration tests is for me whenever there's a need for an external system set up (db, container, ldap). In practice what matters when differentiating unit tests from integration tests are: - the execution speed - the setup they require from the user So it's good to separate tests along these 2 criteria.
Now the Hibernate store tests still need a database although, it is not integration tests.
I call that integration test too.
I agree that we could use Hypersonic as a tests database which would simplify setup.. We just need to verify that hypersonic supports "setCatalog" to switch databases, which is necessary for the virtual wiki tests.
What you currently need to test:
1/ a mysql instance 2/ 2 databases called xwikitest and xwikitest2, accessible from localhost by the user xwikitest/xwikitest 3/ a tomcat instance for the cactus tests
It requires a little bit of setup but it's actually what you also need to run an xwiki instance locally..
Yeah, which is exactly why I've not already installed a xwiki instance on my machine! :-) [snip] I think the build should not assume anything from the user and should run as is. This is what happens with the Cargo build for example. You only need Maven installed. You checkout you type "maven" and it does everything including functional tests with nothing required from you, not even a build.properties file. The only thing it needs is an internet connection. -Vincent ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais ! Yahoo! Mail : http://fr.mail.yahoo.com
Strange, I just ran test.clients and I don't get such catastrophic results, I need to see the junit report to understand what's going on... On 5/23/05, Vincent Massol <[email protected]> wrote:
Luis, *ALL* the unit tests fail on my machine. I doubt they're all yours. Here's the full Ant output attached.
-- Luis Arias http://www.xwiki.com http://www.innover-entreprendre.net +33 6 14 20 87 93 mobile
participants (4)
-
jeremi joslin -
Ludovic Dubost -
Luis Arias -
Vincent Massol