You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

ludwig-ui

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ludwig-ui

Web GUI for Ludwig, the collaborative testing tool

1.5.4
latest
Source
npmnpm
Version published
Maintainers
3
Created
Source

User interface for Ludwig, the collaborative testing tool

L'interface graphique de l'outil de test collaboratif Ludwig.

Build Status Dependency Status Dev Dependency status Code Climate Test Coverage

Usage

Build

Publishing this package through NPM will automatically build assets.

If you need to manually rebuild assets, run npm run prepublish (or grunt build if you have grunt-cli installed).

Serve

The ludwig-ui package exposes a single function that takes a Configuration object (defined below) and returns an Express app.

Once built, the content is best served with the following pattern to ensure frontend and backend routes match:

app.use(config.baseUrl, require('ludwig-ui')(config));

Where app is an Express app.

Configuration

Create a configuration file

A Ludwig configuration object has to contain the items below.

A good idea might be to store it in a JSON file and require that file.

The possible configuration values are:

  • scenarioTemplatePath: path to the template that will be displayed for each test, as defined below. If relative, will be resolved against the file that sets up the server.
  • baseUrl: route on which the tests UI will be served.
  • baseApiPath: route on which the ludwig-api is served. Defaults to baseUrl.
  • defaultDescription: a text to fill the description field for tests.

Test template

Create an Angular template to display each test's results:

angular.module('ludwig').directive('scenario', function(config) {
    return {
        scope: { test: '=' },
        template: 'Test: {{ test.scenario | json }}'
    }
});

The config dependency can be used to obtain the server configuration object on the frontend.

Each test will be passed a test object containing the object that is stored in the database, as described in ludwig-api.

FAQs

Package last updated on 01 Dec 2017

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