google-code-export / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Can't see test results after continuous integration build on tfs 2010 #742

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Install TFS 2010 and VS 2010 on Windows 7
2. Write a simple project
3. Create a continuous integration build
4. Write a simple test, using MBUnit
5. Queue a new build
6. After this build has finished, open the build explorer and double click on 
the last build
6. Expand "n test run(s) completed"
7. Click "View Test Results"

What is the expected output? What do you see instead?

The expected output are the test results.

I see an error message, called:
"Downloading the selected test run failed. Invalid cast from 'System.String' to 
'Microsoft.VisualStudio.TestTools.Common.ITestElement'.

What version of the product are you using? On what operating system?

Version: 3.2.603.0.
Operating system: Windows 7

Please provide any additional information below.

The output window from VS 2010 displays: 

"C:\...\tmp36F4.tmp: (Line: 2, Position: 2). XSD violation: The 
'http://microsoft.com/schemas/VisualStudio/TeamTest/2010:TestResultDetail' 
element is not declared."

The buildlog displays:
"Run MSTest for Test Assemblies
The MSTestActivity was invoked without a value for Platform or Flavor. The 
values Any CPU and Debug were used.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe 
/nologo /usestderr /searchpathroot:"C:\Builds\1\SampleProject\Continuous 
Integration Build\Binaries" 
/resultsfileroot:"C:\Builds\1\SampleProject\Continuous Integration 
Build\TestResults" /testcontainer:"C:\Builds\1\SampleProject\Continuous 
Integration Build\Binaries\TestProject2.dll" 
/publish:"http://localhost:8080/tfs/DefaultCollection" 
/publishbuild:"vstfs:///Build/Build/65" /teamproject:"SampleProject" 
/platform:"Any CPU" /flavor:"Debug" 
Loading C:\Builds\1\SampleProject\Continuous Integration 
Build\Binaries\TestProject2.dll...
Starting execution...

Results               Top Level Tests
-------               ---------------
Passed                CanCreatePerson
1/1 test(s) Passed

Summary
-------
Test Run Warning.
Passed  1
---------
Total   1
Results file:  C:\Builds\1\SampleProject\Continuous Integration 
Build\TestResults\SYSTEM_VM_PUSCHELSOFT 2010-10-04 09_42_00_Any CPU_Debug.trx
Test Settings: Default Test Settings

Run has the following issue(s):
Warning: Test Run deployment issue: The assembly or module 'QuickGraph' 
directly or indirectly referenced by the test container 
'C:\Builds\1\SampleProject\Continuous Integration 
Build\Binaries\TestProject2.dll' was not found.
Warning: Test Run deployment issue: The assembly or module 'TestFu' directly or 
indirectly referenced by the test container 
'C:\Builds\1\SampleProject\Continuous Integration 
Build\Binaries\TestProject2.dll' was not found.
Warning: Test Run deployment issue: The assembly or module 
'QuickGraph.Algorithms' directly or indirectly referenced by the test container 
'C:\Builds\1\SampleProject\Continuous Integration 
Build\Binaries\TestProject2.dll' was not found.
Waiting to publish...
C:\Builds\1\SampleProject\Continuous Integration 
Build\TestResults\SYSTEM_VM_PUSCHELSOFT 2010-10-04 09_42_00_Any CPU_Debug.trx: 
(Line: 27, Position: 6). XSD violation: The element 'TestDefinitions' in 
namespace 'http://microsoft.com/schemas/VisualStudio/TeamTest/2010' has invalid 
child element 'GallioTestElement' in namespace 
'http://microsoft.com/schemas/VisualStudio/TeamTest/2010'. List of possible 
elements expected: 'UnitTest, UnitTestElement, ManualTest, WebTest, 
CodedWebTest, OrderedTest, LoadTest, GenericTest' in namespace 
'http://microsoft.com/schemas/VisualStudio/TeamTest/2010' as well as any 
element in namespace '##other'.
(Line: 45, Position: 6). XSD violation: The element 'Results' in namespace 
'http://microsoft.com/schemas/VisualStudio/TeamTest/2010' has invalid child 
element 'GallioTestResult' in namespace 
'http://microsoft.com/schemas/VisualStudio/TeamTest/2010'. List of possible 
elements expected: 'UnitTestResult, GenericTestResult, TestResult, 
ManualTestResult, TestResultAggregation, WebTestResult, LoadTestResult' in 
namespace 'http://microsoft.com/schemas/VisualStudio/TeamTest/2010' as well as 
any element in namespace '##other'.

Publishing results of test run SYSTEM@VM_PUSCHELSOFT 2010-10-04 09:42:00_Any 
CPU_Debug to http://localhost:8080/tfs/DefaultCollection...
.Publish completed successfully."

Original issue reported on code.google.com by mirko.wi...@logica.com on 4 Oct 2010 at 9:51

GoogleCodeExporter commented 9 years ago
We're having the same issue.  I found this post that might shed some light on 
the problem:
http://social.msdn.microsoft.com/Forums/en-US/vststest/thread/fcb86f96-5562-44d3
-bb2b-cd57fd501aa0

Original comment by mmche...@fameinc.com on 9 Nov 2011 at 5:40

GoogleCodeExporter commented 9 years ago
I'm running this code https://gist.github.com/1971234 after the test results 
are created to make sure VS understands them.

Original comment by pa...@pabich.eu on 4 Mar 2012 at 8:35