Search code examples
gruntjsphantomjssapui5qunitgrunt-contrib-qunit

Grunt Qunit-Tests - Only if assertions fail: PhantomJS timed out, possibly due to a missing QUnit start() call


I am using Grunt to run Qunit tests for a SAPUI5 application. Here is my Gruntfile.js

module.exports = function(grunt) {
  grunt.loadNpmTasks("grunt-contrib-qunit");

  grunt.initConfig({
    qunit: {
      all: ["OpaMatchers.html"]
    }
  });
};

When all my (currently two) specs pass, I get the expected Output

.OK
>> 2 assertions passed (11606ms)

However, If only one of them fails I get:

>> PhantomJS timed out, possibly due to a missing QUnit start()
Warning: 1/1 assertions failed (0ms) Use --force to continue.

Solution

  • I did copy the OPA5 specs from another source. Since I wronte a set of completely new ones, the error above can not be replicated.