{"_id":"karma-openui5","_rev":"40-0dfe72dd132980ea72e19d5e23496e98","name":"karma-openui5","dist-tags":{"latest":"0.2.3"},"versions":{"0.1.2":{"name":"karma-openui5","version":"0.1.2","keywords":["openui5","karma"],"author":{"url":"http://www.sap.com","name":"SAP SE"},"_id":"karma-openui5@0.1.2","maintainers":[{"name":"cevou","email":"mail@christophkraemer.de"}],"contributors":[{"name":"Christoph Kraemer","email":"chr.kraemer@sap.com"}],"homepage":"https://github.com/SAP/karma-openui5","bugs":{"url":"https://github.com/SAP/karma-openui5/issues/"},"dist":{"shasum":"e92730caa41ab2d874b30004ff7c4e845131952b","tarball":"https://registry.npmjs.org/karma-openui5/-/karma-openui5-0.1.2.tgz","integrity":"sha512-Oxy/d1I4ffROCU3IwVwPxSTcDZFkIls5d6SXyah+Rt9q7/mY2jSOs5bP7bJTR2jWj2oTuAV/v1a3Cl52dqokhw==","signatures":[{"sig":"MEUCIQC7Lx8H1nPGCcFn1sITpk0mFoE2ih9iWgoDOmxTZGrWtQIgeA0hF3lPu+SrMMyhyp7zOkeeHnj4MbWTMk/m4zYEdYY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/index","_from":".","_shasum":"e92730caa41ab2d874b30004ff7c4e845131952b","gitHead":"ededde0fa146f7e2f232695cb2d3923db654015c","scripts":{},"_npmUser":{"name":"cevou","email":"mail@christophkraemer.de"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0.html","type":"Apache 2.0"}],"deprecated":"karma-openui5 has been renamed to karma-ui5: https://github.com/SAP/karma-ui5#about","repository":{"url":"https://github.com/SAP/karma-openui5.git","type":"git"},"_npmVersion":"1.4.23","description":"A Karma plugin. Adapter for OpenUI5/SAPUI5 Framework","directories":{},"devDependencies":{"grunt":"^0.4.5","grunt-npm":"0.0.2"},"peerDependencies":{"karma":">=0.12.8"}},"0.2.0":{"name":"karma-openui5","version":"0.2.0","keywords":["openui5","karma"],"author":{"url":"http://www.sap.com","name":"SAP SE"},"_id":"karma-openui5@0.2.0","maintainers":[{"name":"cevou","email":"mail@christophkraemer.de"}],"contributors":[{"name":"Christoph Kraemer","email":"chr.kraemer@sap.com"}],"homepage":"https://github.com/SAP/karma-openui5","bugs":{"url":"https://github.com/SAP/karma-openui5/issues/"},"dist":{"shasum":"7bc213e25e7e28e428c43cc76f0a6f25a95018a8","tarball":"https://registry.npmjs.org/karma-openui5/-/karma-openui5-0.2.0.tgz","integrity":"sha512-nyZqB3Ulk0wkoA0wgvymXaUhYtWfvn6e4r/7yaYyzWrn7j/tCUbREm+Tq3B0XBIl5HFcITe51f5TTBaW1tGS6w==","signatures":[{"sig":"MEUCIEMAf98UpWDowZj6V3IXtnly68I3NcGq9PZRtnAl6cqLAiEAklPKpAft5Hq6CuDyyWhuV4/m0WCCcbYXlJ1cXd/clJ4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/index","_from":".","_shasum":"7bc213e25e7e28e428c43cc76f0a6f25a95018a8","gitHead":"b25812c538e5fdcefe22bd7afc01eef3dcf93e3d","scripts":{},"_npmUser":{"name":"cevou","email":"mail@christophkraemer.de"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0.html","type":"Apache 2.0"}],"deprecated":"karma-openui5 has been renamed to karma-ui5: https://github.com/SAP/karma-ui5#about","repository":{"url":"https://github.com/SAP/karma-openui5.git","type":"git"},"_npmVersion":"1.4.23","description":"A Karma plugin. Adapter for OpenUI5/SAPUI5 Framework","directories":{},"devDependencies":{"grunt":"^0.4.5","grunt-npm":"0.0.2"},"peerDependencies":{"karma":">=0.12.8"}},"0.2.1":{"name":"karma-openui5","version":"0.2.1","keywords":["openui5","karma"],"author":{"url":"http://www.sap.com","name":"SAP SE"},"_id":"karma-openui5@0.2.1","maintainers":[{"name":"cevou","email":"mail@christophkraemer.de"}],"contributors":[{"name":"Christoph Kraemer","email":"chr.kraemer@sap.com"}],"homepage":"https://github.com/SAP/karma-openui5","bugs":{"url":"https://github.com/SAP/karma-openui5/issues/"},"dist":{"shasum":"054612c571e92026af1daba6966192046ad318a4","tarball":"https://registry.npmjs.org/karma-openui5/-/karma-openui5-0.2.1.tgz","integrity":"sha512-VIELUF8GKeo82ycLd+y2STRAmVlGfkEJYqHSxLYMHH7i+kipw/T99pnNfvMsAnO+ctwc0uWXh293Dr3RLEv8vA==","signatures":[{"sig":"MEUCIAm6dQjCO8Equ5YIWnX6JvXBhdy/6vh0x/Zxp4Bw+w+WAiEA/KYPX+cd+8yOZITqohWPbSMEkSfI+WO11r5s4f5sPn8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/index","_from":".","_shasum":"054612c571e92026af1daba6966192046ad318a4","gitHead":"b7fd2b6ce03c6e33f02df7babdb1f802b0895cc2","scripts":{},"_npmUser":{"name":"cevou","email":"mail@christophkraemer.de"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0.html","type":"Apache 2.0"}],"deprecated":"karma-openui5 has been renamed to karma-ui5: https://github.com/SAP/karma-ui5#about","repository":{"url":"https://github.com/SAP/karma-openui5.git","type":"git"},"_npmVersion":"1.4.23","description":"A Karma plugin. Adapter for OpenUI5/SAPUI5 Framework","directories":{},"devDependencies":{"grunt":"^0.4.5","grunt-npm":"0.0.2"},"peerDependencies":{"karma":">=0.12.8"}},"0.2.2":{"name":"karma-openui5","version":"0.2.2","keywords":["openui5","karma"],"author":{"url":"http://www.sap.com","name":"SAP SE"},"_id":"karma-openui5@0.2.2","maintainers":[{"name":"cevou","email":"mail@christophkraemer.de"},{"name":"matz3","email":"m@tthiasosswald.com"}],"contributors":[{"name":"Christoph Kraemer","email":"chr.kraemer@sap.com"}],"homepage":"https://github.com/SAP/karma-openui5","bugs":{"url":"https://github.com/SAP/karma-openui5/issues/"},"dist":{"shasum":"2ba0cc4d6d3baa4e83bc2436f8f12c194f951f87","tarball":"https://registry.npmjs.org/karma-openui5/-/karma-openui5-0.2.2.tgz","integrity":"sha512-nF4j48xyhShjYg2V6k+U2uAT63fIEfisVpqWpp0dln8Y5fQuMMzeIzf39axs2HsXiqvbseJpXfiTh3C8SANJuA==","signatures":[{"sig":"MEUCIBFQa3ximNkTN+e4MycLJ4fSA+8XQHPol9xE1zViRpQDAiEA8RMOtvdIbF6F5z31UhKsKbHnePRZC/yibcTSHTzHhzY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/index","_from":".","_shasum":"2ba0cc4d6d3baa4e83bc2436f8f12c194f951f87","gitHead":"228222f41ff228cc7f446c4359b5bfacb79f9502","scripts":{},"_npmUser":{"name":"matz3","email":"m@tthiasosswald.com"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0.html","type":"Apache 2.0"}],"deprecated":"karma-openui5 has been renamed to karma-ui5: https://github.com/SAP/karma-ui5#about","repository":{"url":"git+https://github.com/SAP/karma-openui5.git","type":"git"},"_npmVersion":"3.10.8","description":"A Karma plugin. Adapter for OpenUI5/SAPUI5 Framework","directories":{},"_nodeVersion":"6.9.1","devDependencies":{"grunt":"^0.4.5","grunt-npm":"0.0.2"},"peerDependencies":{"karma":">=0.12.8"},"_npmOperationalInternal":{"tmp":"tmp/karma-openui5-0.2.2.tgz_1490799210017_0.6731431728694588","host":"packages-18-east.internal.npmjs.com"}},"0.2.3":{"name":"karma-openui5","version":"0.2.3","keywords":["ui5","openui5","sapui5","karma-adapter"],"author":{"url":"https://www.sap.com","name":"SAP SE"},"license":"Apache-2.0","_id":"karma-openui5@0.2.3","maintainers":[{"name":"matz3","email":"m@tthiasosswald.com"}],"contributors":[{"name":"Christoph Kraemer","email":"chr.kraemer@sap.com"},{"name":"Matthias Oßwald","email":"mat.osswald@sap.com"}],"homepage":"https://github.com/SAP/karma-openui5","bugs":{"url":"https://github.com/SAP/karma-openui5/issues/"},"dist":{"shasum":"a0fad367d1b2cb731f0d4a7641d91efa2187b6e0","tarball":"https://registry.npmjs.org/karma-openui5/-/karma-openui5-0.2.3.tgz","integrity":"sha512-4RGP8w8SSHOh3vArQAmS/vqC6qiZnkC/ei4RD2OHhTmX4ndRct1pZqUAkdMNobCxRsWQzk3N6ieaKUFs41s+Dg==","signatures":[{"sig":"MEUCIHWEyAVLV6auc55gPWwyq6XxTUxA213H2DJRM/LLwXIXAiEAsE/g76NQBJ00/7fCrytfdl2pRPBPVWxL5799SrGrZ5k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/index","gitHead":"8f6bccb49bfc03a517e703f206db4a6dfbc201b4","_npmUser":{"name":"matz3","email":"m@tthiasosswald.com"},"deprecated":"karma-openui5 has been renamed to karma-ui5: https://github.com/SAP/karma-ui5#about","repository":{"url":"git+https://github.com/SAP/karma-openui5.git","type":"git"},"_npmVersion":"5.6.0","description":"A Karma plugin. Adapter for OpenUI5/SAPUI5 Framework","directories":{},"_nodeVersion":"8.7.0","devDependencies":{"grunt":"^1.0.1","karma":"^2.0.0","grunt-npm":"0.0.2"},"peerDependencies":{"karma":">=0.12.8"},"_npmOperationalInternal":{"tmp":"tmp/karma-openui5-0.2.3.tgz_1514467386012_0.6294793640263379","host":"s3://npm-registry-packages"}}},"time":{"created":"2014-12-08T08:53:10.956Z","modified":"2026-05-15T15:57:05.947Z","0.1.0":"2014-12-08T08:53:10.956Z","0.1.1":"2014-12-08T09:03:53.512Z","0.1.2":"2014-12-08T09:13:05.666Z","0.2.0":"2014-12-09T08:45:22.214Z","0.2.1":"2014-12-11T12:45:15.282Z","0.2.2":"2017-03-29T14:53:30.721Z","0.2.3":"2017-12-28T13:23:06.927Z"},"bugs":{"url":"https://github.com/SAP/karma-openui5/issues/"},"author":{"url":"https://www.sap.com","name":"SAP SE"},"license":"Apache-2.0","homepage":"https://github.com/SAP/karma-openui5","keywords":["ui5","openui5","sapui5","karma-adapter"],"repository":{"url":"git+https://github.com/SAP/karma-openui5.git","type":"git"},"description":"A Karma plugin. Adapter for OpenUI5/SAPUI5 Framework","contributors":[{"name":"Christoph Kraemer","email":"chr.kraemer@sap.com"},{"name":"Matthias Oßwald","email":"mat.osswald@sap.com"}],"maintainers":[{"email":"ospo@sap.com","name":"sap-ospo-admin"},{"email":"ui5-bot+npm-ui5-bot@sap.com","name":"ui5-bot"}],"readme":"![OpenUI5](http://openui5.org/images/OpenUI5_new_big_side.png)\n\n[![NPM Version](http://img.shields.io/npm/v/karma-openui5.svg?style=flat)](https://www.npmjs.org/package/karma-openui5)\n\n# karma-openui5\nAdapter for OpenUI5/SAPUI5 UI framework. This adapter loads OpenUI5/SAPUI5 from the specified location and makes it available for the tests to run in karma afterwards.\n\n## Installation\nThe easiest way is to add `karma-openui5` as a devDependency in your `package.json`.\n```json\n{\n  \"devDependencies\": {\n    \"karma-openui5\": \"~0.2\"\n  }\n}\n```\n\nInformation on how to install `karma` can be found [here.](https://karma-runner.github.io/1.0/intro/installation.html)\n\n## Configuration\nThe following code shows the available configuration options.\n\nFor the client OpenUI5 configuration you can create an object using any of the options described in the\n[documentation](https://openui5.hana.ondemand.com/docs/guide/91f2d03b6f4d1014b6dd926db0e91070.html).\n\nTo automatically load test modules (via `sap.ui.require`), the `tests` config can be set to an array of module names. When using this config, the relevant files must not be included via the `files` config of Karma.<br>\nThis is very similar to [how RequireJS works with Karma](https://karma-runner.github.io/2.0/plus/requirejs.html), but without the need for a custom `test-main.js` file.\n\nFor the mockserver config you can pass an object like you would do it for the ``sap.ui.core.util.MockServer.config``\nfunction. The rootUri and the metadataURL are required properties if you use the mock server. You can also pass\nmockdata settings like you would do it for the ``simulate`` function of the MockServer. The MockServer needs to be\nenabled explicitly by settings the ``useMockServer`` option.\n\n```js\n// karma.conf.js\nmodule.exports = function(config) {\n  config.set({\n    frameworks: ['openui5'],\n\n    openui5: {\n      path: 'http://path/to/sap-ui-core.js',\n      useMockServer: false\n    },\n\n    client: {\n      openui5: {\n        config: {\n          theme: 'sap_belize'\n        },\n        tests: [\n          'name/of/test/module/to/be/loaded',\n          'other/name/of/test/module/to/be/loaded'\n        ],\n        mockserver: {\n          config: {\n            autoRespond: true\n          },\n          rootUri: '/my/service/',\n          metadataURL: '/base/test/mock.xml',\n          mockdataSettings: {\n\n          }\n        }\n      }\n    }\n  });\n};\n```\n\n## Application constrains\n### QUnit dependency\nDo no require QUnit resources from within the tests. Karma loads its own versions of them in order hook in its reporting at the right places.\n\nTherefore rather load those resources in the non-karma specific test runner HTML pages. Like this:\n````html\n    <script src=\"../../resources/sap/ui/thirdparty/qunit.js\"></script>\n    <script src=\"../../resources/sap/ui/qunit/qunit-css.js\"></script>\n````\n\n### OPA5: Component containers instead of iFrames\n*Only relevant when using [Istanbul](https://istanbul.js.org/) to create test coverage*\n\n[Istanbul](https://istanbul.js.org/) has problems collecting code coverage results from within iFrames. To gather code coverage from OPA5 tests you need to execute them inside of component containers instead of iFrames. This will also speed up the execution time of your OPA5 tests.\n\n**Notice:** With component containers you will loose the isolation of your single tests. Also, your applications `index.html` won't be executed anymore (as only the applications `Component.js` will be needed).\n\nIn your tests, replace `iStartMyAppInAFrame()` with`iStartMyUIComponent()` and `iTeardownMyAppFrame()` with `iTeardownMyUIComponent()`.\n\nFor more information see the API reference of [sap.ui.test.Opa5](https://sapui5.hana.ondemand.com/#docs/api/symbols/sap.ui.test.Opa5.html#iStartMyUIComponent)\n\n## License\n(c) Copyright 2017 SAP SE or an SAP affiliate company\n\nLicensed under the Apache License, Version 2.0 - see LICENSE.\n","readmeFilename":"README.md","users":{"matz3":true}}