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();
提供你如何運行測試,並提供一些配置/代碼文件的詳細信息固定它,否則將無法幫助你。也嘗試尋找像這樣的其他問題http://stackoverflow.com/questions/36208555/jasmine-unable-to-find-spec-files和其他問題。 – sepulchered