1

QUnit テストを含む OpenUI5 アプリがあります。grunt-contrib-qunitを使用してテストを自動化しようとしましたが、 grunt-contrib-qunit がphantomjsで qunittests.html ファイルを開始すると、次のエラーが発生します。

>>  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...

QUnit テストを含む同じファイルが chrome で正常に動作します。

私たちの環境が問題を引き起こしていることを整理するために、私は次のことを行いました:

Grunt -phpgrunt-contrib-qunit以外に何もない Gruntfile.js を作成しました。次に、OpenUI5 Walkthrough Step 35からコードをダウンロードしました。Walkthrough アプリを起動し、grunt-contrib-qunit を次のようにセットアップしました。

qunit: {
  all: {
    options: {
      urls: [
        'http://localhost:1337/test/integration/opaTests.qunit.html'
      ]
    }
  }
},

同じ問題。「ネガティブキャッシュ」。


カルマ-qunit、CasperJSなどを使用して、qunitの他のgrunt実装でテストしました。

4

1 に答える 1