TeamCity with StatLight is working but not showing reports.

I'm using TeamCity and have set up a configuration using the command line runner as described at http://pontusmunck.com/2010/05/13/running-silverlight-unit-tests-in-teamcity-using-statlight/.  Everything works however, I can't see any results within my build window.  If a test fails, I only get a "Step Failed" error.  I can see the test detail in the full build log for passes or failures.  I assumed that I would get a similar output to the NUnit build runner for instance.  Any help is appreciated.

Thanks,

Bryan

3 comments
Comment actions Permalink

Hi Bryan

Do you start statlight.exe with -teamcity option?
Please post a screenshot with build runner settings and a build log.

Thanks
Michael

0
Comment actions Permalink

Attached is a screen shot of my build.  The full command parameters are:

-x="Membership\Client\MA.Client.Membership.Tests\Bin\Release\MA.Client.Membership.Tests.xap" -v=April2010 –-teamcity -r=lib\test.xml

Build Log:

[16:17:56]: Step 2/2 (8s)
[16:17:56]: [Step 2/2] Using runner: simpleRunner
[16:17:56]: [Step 2/2] Starting: "E:\BuildAgent\WorkSpace\Membership Client\lib\CI Tools\StatLight\StatLight.exe" -x="Membership\Client\MA.Client.Membership.Tests\Bin\Release\MA.Client.Membership.Tests.xap" -v=April2010 –-teamcity -r=lib\test.xml
[16:17:56]: [Step 2/2] in directory: E:\BuildAgent\WorkSpace\Membership Client
[16:17:56]: [Step 2/2] StatLight - Version 1.3.3981
[16:17:56]: [Step 2/2] Copyright (C) 2009 Jason Jarrett
[16:17:56]: [Step 2/2] All Rights Reserved.
[16:17:57]: [Step 2/2] Starting Test Run: 4/5/2011 9:17:57 AM
[16:18:04]: [Step 2/2] ********************* ReflectionTypeLoadException *********************
[16:18:04]: [Step 2/2] ***** Begin Loader Exception Messages *****
[16:18:04]: [Step 2/2] - Could not load file or assembly 'System.Windows.Interactivity, Version=4.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
[16:18:04]: [Step 2/2] - Could not load file or assembly 'System.Windows.Interactivity, Version=4.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
[16:18:04]: [Step 2/2] - Could not load file or assembly 'System.Windows.Interactivity, Version=4.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
[16:18:04]: [Step 2/2] ***** End Loader Exception Messages *****
[16:18:04]: [Step 2/2] ********************* ReflectionTypeLoadException *********************
[16:18:04]: [Step 2/2] ***** Begin Loader Exception Messages *****
[16:18:04]: [Step 2/2] - Could not load file or assembly 'System.Windows.Interactivity, Version=4.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
[16:18:04]: [Step 2/2] - Could not load file or assembly 'System.Windows.Interactivity, Version=4.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
[16:18:04]: [Step 2/2] - Could not load file or assembly 'System.Windows.Interactivity, Version=4.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
[16:18:04]: [Step 2/2] ***** End Loader Exception Messages *****
[16:18:04]: [Step 2/2] ...
[16:18:04]: [Step 2/2] --- Completed Test Run at: 4/5/2011 9:18:04 AM. Total Run Time: 00:00:06.9045620
[16:18:04]: [Step 2/2] Test run results: Total 3, Successful 3, Failed 0,
[16:18:04]: [Step 2/2] *********************************
[16:18:04]: [Step 2/2] Wrote XML report to:
[16:18:04]: [Step 2/2] E:\BuildAgent\WorkSpace\Membership Client\lib\test.xml
[16:18:04]: [Step 2/2] *********************************
[16:18:04]: [Step 2/2] Process exited with code 0
[16:18:04]: Publishing artifacts
[16:18:04]: [Publishing artifacts] Paths to publish: [lib\test.xml, teamcity-info.xml]
[16:18:04]: [Publishing artifacts] Sending files
[16:18:04]: Build finished


This is the second step in my build.  I do the build as the first step then execute unit tests as the second step.  The build succeeds and if I look into the created teamcity-info.xml file I can see that they were run successfully.  If one fails, the build does fail as expected.  I'm just not getting a nice result screen.

Thanks for any help,

Bryan



Attachment(s):
Build Configuration.JPG
0
Comment actions Permalink

Any thoughts?  Am I doing something wrong?

Please let me know.

Thanks,

Bryan

0

Please sign in to leave a comment.