Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

karma-openui5

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-openui5

A Karma plugin. Adapter for OpenUI5/SAPUI5 Framework

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

OpenUI5

NPM Version

karma-openui5

Adapter for OpenUI5/SAPUI5 UI framework. This Adapter load OpenUI5/SAPUI5 from the specified location and makes it available for the tests the run in karma afterwards.

Installation

The easiest way is to keep karma-openui5 as a devDependency in your package.json.

{
  "devDependencies": {
    "karma-openui5": "~0.2"
  }
}

How install karma you can read here.

Configuration

Following code shows the available configuration options.

For the client OpenUI5 configuration you can create an object using any of the options described in the documentation.

For the mockserver config you can pass an object like you would do it for the sap.ui.core.util.MockServer.config function. The rootUri and the metadataURL are required properties if you use the mock server. You can also pass mockdata settings like you would do it for the simulate function of the MockServer. The MockServer needs to be enabled explicitly by settings the useMockServer option.

// karma.conf.js
module.exports = function(config) {
  config.set({
    frameworks: ['openui5'],

    openui5: {
      path: 'http://path/to/sap-ui-core.js',
      useMockServer: false
    },

    client: {
      openui5: {
        config: {
          theme: 'sap_bluecrystal'
        },
        mockserver: {
          config: {
            autoRespond: true
          },
          rootUri: '/my/service/',
          metadataURL: '/base/test/mock.xml',
          mockdataSettings: {
          
          }
        }
      }
    }
  });
};

License

(c) Copyright 2014 SAP SE or an SAP affiliate company

Licensed under the Apache License, Version 2.0 - see LICENSE.

Keywords

FAQs

Package last updated on 09 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc