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 static | Why tests skip when no PAW source is configured, and what to set. |
NO_LICENSE_MESSAGE static | Why tests skip when IBM's PAW license hasn't been accepted, and what to set. |
skipReason static |
NO_SOURCE_MESSAGE
staticNO_SOURCE_MESSAGEWhy tests skip when no PAW source is configured, and what to set.
NO_LICENSE_MESSAGE
staticNO_LICENSE_MESSAGEWhy tests skip when IBM's PAW license hasn't been accepted, and what to set.
skipReason
staticstatic skipReason(): Promise<string | undefined>