Changes between Version 1 and Version 2 of Ms Test Xslt
- Timestamp:
- Sep 4, 2009, 2:49:29 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ms Test Xslt
v1 v2 21 21 Your build step should look something like 22 22 {{{ 23 <sh:exec executable="msbuild" args="project.sln /t:rebuild"/> 23 #!xml 24 <sh:exec executable="msbuild" args="project.sln /t:rebuild"/> 24 25 }}} 25 26 … … 30 31 31 32 {{{ 32 <sh:exec executable="mstest" args="/testmetadata:Project.vsmdi "/> 33 #!xml 34 <sh:exec executable="mstest" args="/testmetadata:Project.vsmdi "/> 33 35 }}} 34 36 35 This executes all the tests in your project (TODO: test it without the /testlist:listnameargument)37 This executes all the tests in your project (TODO: test it without the `/testlist:listname` argument) 36 38 Also it's highly probable that you don't want all tests runned (I do a lot of manual UI tests, wich require user interaction, not a good practice but...), so you should add a test list in visual studio ide (double click on the vsmdi, test lists, right click, new test list, add your tests there) and use this command instead 37 39 38 40 {{{ 39 <sh:exec executable="mstest" args="/testmetadata:Project.vsmdi /testlist:<list_name>"/> 41 #!xml 42 <sh:exec executable="mstest" args="/testmetadata:Project.vsmdi /testlist:<list_name>"/> 40 43 }}} 41 44 … … 50 53 You apply this xslt to the trx output of mstest. Be sure to check the vs namespace in line: 51 54 {{{ 55 #!xml 52 56 xmlns:vs="http://microsoft.com/schemas/VisualStudio/TeamTest/2006" 53 57 }}} … … 55 59 56 60 {{{ 61 #!xml 57 62 <?xml version='1.0'?> 58 63 <xsl:stylesheet version="1.0"