0
當使用控制檯記者運行實習生客戶端時,如果要測試的腳本未位於應用程序文件夾下,則報告輸出不會顯示任何套件分組。實習控制檯報告不分組不同套房
實習生配置:
// Non-functional test suite(s) to run in each browser
suites: [ 'tests/unit/hello' ],
單元測試:
define(function (require) {
var registerSuite = require('intern!object');
var assert = require('intern/chai!assert');
var hello = require('../../../Source/MyProject/dist/hello'); // "app/hello" would show suite grouping in the console output
registerSuite({
name: 'hello',
greet: function() {
assert.strictEqual(hello.greet('Hussein'), 'Hello, Hussein!',
'hello.greet should return a greeting for the person named in the first argument');
}
});
});
控制檯輸出記者:
預期報告輸出: