Comparing version 0.2.0 to 0.3.0
@@ -22,2 +22,6 @@ | ||
el = xml.ele('TestSettings') | ||
.att('name', testRun.testSettings.name) | ||
.att('id', testRun.testSettings.id); | ||
el = xml.ele('ResultSummary') | ||
@@ -24,0 +28,0 @@ .att('outcome', testRun.counters.failed > 0 ? 'Failed' : 'Completed') |
{ | ||
"name": "node-trx", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "File generator utility for TRX file format for use with Visual Studio and MSBuild", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
22
trx.js
@@ -19,2 +19,11 @@ var uuid = require('node-uuid') | ||
} | ||
if(params.testSettings) { | ||
this.testSettings = new TestSettings(params.testSettings); | ||
} else { | ||
this.testSettings = new TestSettings({ | ||
id: 'ce1a4cfb-64fa-4d63-8815-e9984737a62c', | ||
name: 'Default Test Settings' | ||
}); | ||
} | ||
@@ -152,3 +161,16 @@ this.testDefinitions = []; | ||
/** | ||
* A TestSetting as defined by the XSD type `TestSettingsType` | ||
* | ||
* @param {object} params | ||
* @config {string} name - name of the test settings | ||
* @config {string} id - guid identifier | ||
*/ | ||
function TestSettings(params) { | ||
this.id = params.id; | ||
this.name = params.name; | ||
} | ||
/** | ||
@@ -155,0 +177,0 @@ * A TestList as defined by the XSD type `TestListType` |
Sorry, the diff of this file is not supported yet
23602
474