Skip to content

Instantly share code, notes, and snippets.

@stuartf7
Created February 6, 2012 22:54
Show Gist options
  • Save stuartf7/1755675 to your computer and use it in GitHub Desktop.
Save stuartf7/1755675 to your computer and use it in GitHub Desktop.
qUnit output for Teamcity
QUnit.moduleStart = function (name, testEnvironment) {
console.log("##teamcity[testSuiteStarted name='" + name + "']");
};
QUnit.moduleDone = function (name, failures, total) {
console.log("##teamcity[testSuiteFinished name='" + name + "']");
};
QUnit.testStart = function (name, testEnvironment) {
console.log("##teamcity[testStarted name='" + name + "']");
};
QUnit.testDone = function (name, failures, total) {
if (failures > 0) {
console.log("##teamcity[testFailed name='" + name + "'"
+ " message='Assertions failed: " + failures + "'"
+ " details='Assertions failed: " + failures + "']");
}
console.log("##teamcity[testFinished name='" + name + "']");
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment