cancel
Showing results for 
Search instead for 
Did you mean: 

Unit Tests fails

bgl
Champ on-the-rise
Champ on-the-rise
Hi,

I am using a svn version of Alfresco. I wanted to run the unit tests with target "test" available in the build.xml but tests failed quickly at XMLConfigServiceTest class (line 262).

For svn version 1040, it fails. For latest svn revision I have (2695), it still fails…

Do I need to perform special configuration for running unit tests ? (should not in my mind) is this test outdated ? (may be it should then be removed)

Can anyone from QA give me some hint ? If this post is not in the good forum, where should I post in the forum ?

Thank you in advance !
1 REPLY 1

bgl
Champ on-the-rise
Champ on-the-rise
Answering to myself 🙂
There is an error in the code of the unit test of org.alfresco.config.xml.XMLConfigServiceTest (line 251) where path to jar file is incorrect. Documentation specifies that path must match this pattern : jar:file://path-to-the-file.
Unfortunately, one slash is missing (current path is jar:file/path-to-file) which makes the test fail.

Fixing this in the unit test makes it work. It would be great if someone could commit this change since running unit test is always failing which is obviously not a good thing.

I was wondering why this is not fixed ? how your tool for continuous integration reports this ? what is the point of QA team on this ?

thank you !