[JIRA] Commented: (CC-1008) BuildDetailControllerTest failing on Windows

"Antoine Levy Lambert (JIRA)" <[email protected]>
Newsgroups gmane.comp.java.cruise-control.devel
Message-ID <1643816010.1292787469969.JavaMail.jira@chidmzhosting02.thoughtworks.com>
    [ http://jira.public.thoughtworks.org/browse/CC-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_18977 ] 

Antoine Levy Lambert commented on CC-1008:
------------------------------------------

Counting of the .svn subdirectory was making the tests fail. When you run the tests on Windows, do you do this from within a Subversion snapshot ? Or from within a copy of the subversion snapsot without the .svn directories ?

> BuildDetailControllerTest failing on Windows
> --------------------------------------------
>
>                 Key: CC-1008
>                 URL: http://jira.public.thoughtworks.org/browse/CC-1008
>             Project: CruiseControl
>          Issue Type: Bug
>    Affects Versions: 2.8.5
>         Environment: Windows, JDK 1.6
>            Reporter: Antoine Levy Lambert
>         Attachments: patch_CC_1008.txt
>
>
> When building CruiseControl from source on Windows I got this error 
>    [junit] Testsuite: net.sourceforge.cruisecontrol.dashboard.web.BuildDetailControllerTest
>     [junit] Tests run: 7, Failures: 1, Errors: 0, Time elapsed: 3.25 sec
>     [junit] Tests run: 7, Failures: 1, Errors: 0, Time elapsed: 3.25 sec
>     [junit] 
>     [junit] Testcase: testShouldBeAbleToFindArtifactsForSuccessfulBuildOfConfiguredProject(net.sourceforge.cruisecontrol.dashboard.web.BuildDetailControllerTest):	FAILED
>     [junit] [C:\dev\sourceforge\cruisecontrol\reporting\dashboard\test\data\arbitrary_artifacts\artifacts\project1\20051209122103\.svn, C:\dev\sourceforge\cruisecontrol\reporting\dashboard\test\data\arbitrary_artifacts\artifacts\project1\20051209122103\artifact1.txt, C:\dev\sourceforge\cruisecontrol\reporting\dashboard\test\data\arbitrary_artifacts\artifacts\project1\20051209122103\coverage.xml, C:\dev\sourceforge\cruisecontrol\reporting\dashboard\test\data\arbitrary_artifacts\artifacts\project1\20051209122103\subdir] expected:<3> but was:<4>
>     [junit] junit.framework.AssertionFailedError: [C:\dev\sourceforge\cruisecontrol\reporting\dashboard\test\data\arbitrary_artifacts\artifacts\project1\20051209122103\.svn, C:\dev\sourceforge\cruisecontrol\reporting\dashboard\test\data\arbitrary_artifacts\artifacts\project1\20051209122103\artifact1.txt, C:\dev\sourceforge\cruisecontrol\reporting\dashboard\test\data\arbitrary_artifacts\artifacts\project1\20051209122103\coverage.xml, C:\dev\sourceforge\cruisecontrol\reporting\dashboard\test\data\arbitrary_artifacts\artifacts\project1\20051209122103\subdir] expected:<3> but was:<4>
> Either the test should be fixed to ignore the .svn directory or net.sourceforge.cruisecontrol.dashboard.BuildDetail.getArtifactFiles should be changed to ignore artifacts whose name start with a period.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.public.thoughtworks.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.