2.0.3 • Published 9 months ago

testchamber v2.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

testchamber

a set of utilities for testing

getting started

  • install, probably as a dev dependency: npm install testchamber --save-dev
  • where needed, import as such
    • just data:
      • const { data } = require("testchamber")
      • or
      • import { data } from "testchamber"
    • ui and data
      • const {data, ui} = require("testchamber")
      • or
      • import { data, ui } from "testchamber"
    • as different names:
      • const {data: datatools, ui: uitools} = require("testchamber")
      • or
      • import { data as datatools, ui as uitools } from "testchamber"
    • all as "testchamber":
      • const testchamber = require("testchamber")
      • or
      • import * as testchamber from "testchamber"
  • update as needed:
    • npm update testchamber
    • npm install testchamber --save-dev
    • ...and you may also need to blow away node_modules and npm install again

usage

best way to see actual usage is to checkout the test specs.

ui

this class contains useful static methods to use for UI browser testing with playwright. it mostly offers helper methods that deal with Page and ElementHandles when using page.$$() and friends.

data

this class contains useful static methods for dealing with data, such as random number and string generation.

exe

this class contains execution helpers such as sleep and retry loops

maintainence cheat sheet

running tests (manual)

  • run setup: npm run setup
  • run the tests: npm test
  • run the tests without coverage: npm run test-nocoverage

new version in github

  • ensure branch (master) has appropriate version in package.json
  • click 'Releases'
  • click 'Draft new release'
  • tag with the version number
  • release
  • verify npm publish action worked

npm publish (manual)

  • version bump in package.json
  • commit bump to master
  • login if needed: npm login
  • publish: npm publish
1.1.8

10 months ago

1.1.7

10 months ago

1.1.6

10 months ago

1.1.5

10 months ago

2.0.3

9 months ago

2.0.2

9 months ago

2.0.1

10 months ago

2.0.0

10 months ago

1.1.4

11 months ago

1.1.3

11 months ago

1.1.2

11 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.4

11 months ago

1.0.5

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago