@galaxar/tester
v1.0.6
Published
Node application unit test framework
Readme
@galaxar/tester
Features
- Support coverage test of @galaxar/server applicaiton
- [x] Support allure report
- [x] Support async dump for debugging application hanging issue caused by pending async event
- Support @galaxar/app worker
- Support JSON Validation Syntax
- [x] Support configurable test case on/off switches
- Support profiling and benchmark
- Support test step and progress record
- Support job pipeline for long-run test
Interface
gobal object gxt
startWorker_(app => {/* test to run */}, options): // start a workerwithHttpClient_(serverName?, [authenticator], app => {/* test to run */}, [options]): // start a worker and create a http clientbenchmark_(mapOfMethods, verifier, payload): // run benchmark againest several different implementions of the same purposesstep_(name, fn): // test stepparam(name, value): // record param used in a test into test reportattach(name, value): // attach object produced during a test into test report
