@seolhun/web-performance-tester
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

Web-Performance-Tester

This is an example of using the global setup/teardown apis alone with the async test-environment apis to make jest work smoothly with puppeteer.

Goal

  • One configuration, All routes are audited.
  • Simple and Powerful testing flow with the configuration
    • Setting > Auditing > Testing > Reporting

Test Result

Architectures

1. Configuration Builder

Configuration Builder is watching and checking config files validation.

2. Auditer

Auditer is lighthouse builder that setting test configuration.

3. Tester

Tester is lighthoust test runner that executing test files with jest.

4. Reporter

Reporter make and send analytics report as CSV, JSON or other ways.

Config Options

Important configuration json files

// wtp.config.json
{
  "baseUrl": "https://github.com/Seolhun",  // Required
  "subRoutes": [],                          // default : []
  "timeout": 100000,                        // default : 100000
  "options": {
    "chromeFlags": ["--headless", "--show-paint-rects"],  // default : ["--show-paint-rects"]  - ["--headless", "--disable-gpu"]
    "mulatedFormFactor": "mobile",          // default : "mobile"       - desktop, mobile
    "output": "html",                       // default : "html"         - json, html, csv
    "outputPath": "reports",                // default : "reports"
    "port": 8080                            // default : 8080
  },
  "builder": {},                            // default : {}
  "auditer": {},                            // default : {}
  "tester": {},                             // default : {}
  "reporter": {}                            // default : {}
}

How to

Install

yarn install

Run

yarn lh

Test - be completed at 1.5.0

yarn test

Package Sidebar

Install

npm i @seolhun/web-performance-tester

Weekly Downloads

0

Version

1.0.7

License

MIT

Unpacked Size

66.1 kB

Total Files

86

Last publish

Collaborators

  • seolhun