karma-trx-reporter
Advanced tools
Comparing version 0.2.4 to 0.2.5
11
index.js
@@ -16,2 +16,3 @@ var path = require('path'); | ||
var results; | ||
var times; | ||
@@ -37,6 +38,6 @@ var getTimestamp = function () { | ||
var userName = process.env['USERNAME']; | ||
var runStartTimestamp = getTimestamp(); | ||
testRun = builder.create("TestRun", {version: '1.0', encoding: 'UTF-8'}) | ||
.att('id', newGuid()) | ||
.att('name', userName + '@' + hostName + ' ' + getTimestamp()) | ||
.att('name', userName + '@' + hostName + ' ' + runStartTimestamp) | ||
.att('runUser', userName) | ||
@@ -49,2 +50,7 @@ .att('xmlns', 'http://microsoft.com/schemas/VisualStudio/TeamTest/2010'); | ||
times = testRun.ele('Times') | ||
times.att('creation', runStartTimestamp) | ||
times.att('queuing', runStartTimestamp) | ||
times.att('start', runStartTimestamp); | ||
resultSummary = testRun.ele('ResultSummary'); | ||
@@ -92,2 +98,3 @@ counters = resultSummary.ele('Counters'); | ||
this.onRunComplete = function () { | ||
times.att('finish', getTimestamp()); | ||
var xmlToOutput = testRun; | ||
@@ -94,0 +101,0 @@ |
{ | ||
"name": "karma-trx-reporter", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "A Karma plugin. Report results in MSTest trx format.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\"" | ||
"test": "./node_modules/.bin/mocha --timeout 259200000 ./test/*.js" | ||
}, | ||
@@ -31,5 +31,6 @@ "repository": { | ||
"grunt": "~0.4.1", | ||
"grunt-auto-release": "~0.0.2", | ||
"grunt-bump": "~0.0.7", | ||
"grunt-npm": "~0.0.2", | ||
"grunt-bump": "~0.0.7", | ||
"grunt-auto-release": "~0.0.2" | ||
"mocha": "^1.20.1" | ||
}, | ||
@@ -47,4 +48,4 @@ "contributors": [ | ||
}, | ||
"_id": "karma-trx-reporter@0.2.4", | ||
"_from": "karma-trx-reporter@~0.2.4" | ||
"_id": "karma-trx-reporter@0.2.5", | ||
"_from": "karma-trx-reporter@~0.2.5" | ||
} |
@@ -0,0 +0,0 @@ # karma-trx-reporter |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
10457
7
138
2
5
1