0
Jasmineは、14番目の仕様を追加した後、仕様書が見つからなかったことを報告しています(動作仕様のコピーであれば問題ありません)。私が自己作成のレポーターを使用した場合、それはすべての仕様を通過したことが示されますが、最終結果として仕様が見つからないことが報告されます。Jasmine仕様に13以上の仕様がありません
は、私がここにも
Started
[#quickSort]
Results Top Level Tests
------- ---------------
.Passed should sort small array
.Passed should hallo small array
.Passed should sort array with identical values
.Passed should do nothing with empty array
.Passed shouldn't sort a string
.Passed should do nothing with array with single field
Group "#quickSort" was finished
[#signature]
Results Top Level Tests
------- ---------------
[#signature Write signatureformat Remove]
Results Top Level Tests
------- ---------------
.Passed Compact 1/2; Remove additional x/y members
.Passed Compact 2/2; Also remove additional x/y members in sequential paths
Group "Write signatureformat Remove" was finished
[#signature Write signatureformat Reposition]
Results Top Level Tests
------- ---------------
.Passed Reposition 1/2; Reposition top-left to 0,0 for more compact output
.Passed Reposition 2/2; Reposition top-left to 0,0 for more compact output
Group "Write signatureformat Reposition" was finished
[#signature Write signatureformat Downscale]
Results Top Level Tests
------- ---------------
.Passed Downscale 1/2; Downscale when needed with minimal resolution loss, so it will never get to large (-2000..2000)
.Passed Downscale 2/2; Downscale when needed with minimal resolution loss, so it will never get to large (-2000..2000)
Group "Write signatureformat Downscale" was finished
.Passed Write signatureformat - Complex export
.Passed Write signatureformat - Rotate 180 degrees
Group "#signature" was finished
Started
No specs found
Finished in 0.002 seconds
を意味するものを表示するためにコンソールログを追加spec_runnerそれを修正
//var exit = require('exit');
var Jasmine = require('jasmine'),
reporters = require('jasmine-reporters');
var junitReporter = new reporters.NUnitXmlReporter({
savePath: __dirname,
consolidateAll: true
});
var myReporter = {
jasmineStarted: function (suiteInfo) {
},
suiteStarted: function (result) {
console.log('[' + result.fullName + ']');
console.log('');
console.log('Results Top Level Tests');
console.log('------- ---------------');
},
specStarted: function (result) {
},
specDone: function (result) {
var line = result.status.substr(0, 1).toUpperCase() + result.status.substr(1);
if (line === "Failed") line = "+" + line;
while (line.length < 22) line += " ";
console.log(line + result.description);
},
suiteDone: function (result) {
console.log('');
console.log('Group "' + result.description + '" was ' + result.status);
for (var i = 0; i < result.failedExpectations.length; i++) {
console.log('AfterAll ' + result.failedExpectations[i].message);
console.log(result.failedExpectations[i].stack);
}
console.log('');
console.log('');
// werkt gewoon niet???? [rv]
//if (result.status !== "passed") exit(1)
},
jasmineDone: function() {
}
};
var jasmine = new Jasmine();
jasmine.loadConfigFile("spec/support/jasmine.json");
jasmine.addReporter(myReporter);
jasmine.execute();
を使用して、それを修正することは、あなたがそうでなければ、あなたを助けるすることはできません、あなたのテストを実行し、いくつかのconfig /コードファイルを提供する方法に関する詳細な情報を提供します。また、このような他の問題を探してみてくださいhttp://stackoverflow.com/questions/36208555/jasmine-unable-to-find-spec-filesやその他。 – sepulchered