We have an OpenUI5 app with QUnit tests. We tried to automate the tests with grunt-contrib-qunit, but when grunt-contrib-qunit starts our qunittests.html file in phantomjs, it gives the following error:
>> Error: found in negative cache: 'sap/ui/core/Core.js' from TODO???/sap/ui/core/Core: Error: found in negative cache: 'sap/ui/core/Component.js' from TODO???/sap/ui/core/Component: Error: found in nega...
The same file with the QUnit tests works fine in chrome.
In order to sort out that our environment causes the issue, i did the following:
I created a Gruntfile.js with nothing else then grunt-php and grunt-contrib-qunit. Then i downloaded the code from OpenUI5 Walkthrough Step 35. I started the Walkthrough app and setup grunt-contrib-qunit like this:
qunit: {
all: {
options: {
urls: [
'http://localhost:1337/test/integration/opaTests.qunit.html'
]
}
}
},
Same issue. "Negative cache".
We tested it with other grunt-implementations of qunit, with karma-qunit, CasperJS and others.