skipcheck

TM1 Testcontainers · Docs · Writing tests

RequiresPaw

import { RequiresPaw } from "@skipcheck/tm1-testcontainers";

Runs a test class or method against a real Planning Analytics Workspace and TM1 server, and skips it when either isn't available.

It includes RequiresTm1, so tests also skip without Docker or a Tm1Source, and can still take a Tm1ServerContainer parameter. They also skip without a PawSource, or when IBM's PAW license hasn't been accepted with PAW_ACCEPT_LICENSE=true. Declare a PawContainer parameter to get the shared PAW, which logs users on to the shared TM1 server:

requiresPaw("opens PAW", ({ paw }) => {
  // http://localhost:54321/, which logs on to the shared TM1 server
  expect(paw.getUrl()).toMatch(/^http:\/\//);
  // ...
});

Members

NO_SOURCE_MESSAGE staticWhy tests skip when no PAW source is configured, and what to set.
NO_LICENSE_MESSAGE staticWhy tests skip when IBM's PAW license hasn't been accepted, and what to set.
skipReason static

NO_SOURCE_MESSAGE

static
NO_SOURCE_MESSAGE

Why tests skip when no PAW source is configured, and what to set.

NO_LICENSE_MESSAGE

static
NO_LICENSE_MESSAGE

Why tests skip when IBM's PAW license hasn't been accepted, and what to set.

skipReason

static
static skipReason(): Promise<string | undefined>