1.0.11 • Published 5 years ago

@test-ui/qunit v1.0.11

Weekly downloads
7
License
BSD-2-Clause
Repository
github
Last release
5 years ago

@test-ui/qunit

Build Status Version

Test-UI support for QUnit.

Setup

npm install @test-ui/qunit

Use

Client-Side

import { IFrameConnectionClient } from '@test-ui/core';
import { QUnitTestClient } from '@test-ui/qunit';

// Set the client up
const client = new QUnitTestClient({
  // Make sure to disable the client when it running in a test environment
  enabled: config.environment === 'development',
  connection: new IFrameConnectionClient({
    baseUrl: '/tests',
    frame: myIframe // a HTMLIFrameElement
  })
});

// Run some tests
client.runModules({ name: /purple/ });

Server-Side

import { IFrameConnectionServer } from '@test-ui/core';
import { QunitTestServer } from '@test-ui/qunit';
import QUnit from 'qunit';

// Set the server up
let srv = new QunitTestServer(QUnit, {
  connection: new IFrameConnectionServer()
});

// Start it
srv.start();

Legal

(c) 2018 LinkedIn

1.0.11

5 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago