Grunt を使用して、SAPUI5 アプリケーションの Qunit テストを実行しています。ここに私のGruntfile.jsがあります
module.exports = function(grunt) {
grunt.loadNpmTasks("grunt-contrib-qunit");
grunt.initConfig({
qunit: {
all: ["OpaMatchers.html"]
}
});
};
すべての (現在 2 つの) 仕様に合格すると、期待される出力が得られます
.OK
>> 2 assertions passed (11606ms)
ただし、そのうちの 1 つだけが失敗した場合は、次のようになります。
>> PhantomJS timed out, possibly due to a missing QUnit start()
Warning: 1/1 assertions failed (0ms) Use --force to continue.