Financial-Times / n-test

A CLI tool and module for lightweight testing of web applications in browsers, designed for FT.com
4 stars 2 forks source link

Support Fetch for APIs #82

Open adgad opened 6 years ago

adgad commented 6 years ago

For APIs, it would be good to not have to install puppeteer and Chromium to run smoke tests.

Proposal

Make Puppeteer and Webdriver.io installable "drivers" (need a better word). The default would be fetch (+ maybe JSDom).

An app that wants to test puppeteer would then have both n-test and n-test-puppeteer installed.

n-test-puppeteer could be either required in the test file itself? Or maybe a .n-test.js in the root, with global options (including additional custom checks etc).

Something like that.