unitest
unitest copied to clipboard
:earth_americas: Seamless node and browser unit testing with code coverage
Replacing Electron with headless Chrome laid down a lot of the groundwork to a fully Chrome DevTools Protocol (CDP) based solution. ## Guiding principles - Implement everything in an environment-agnostic...
It's worth looking into [jest-worker](https://github.com/facebook/jest/tree/master/packages/jest-worker), which is nice abstraction around this. However, it may be nice to have something that takes into account CDP. For example, workers in the case...
The goals of TAP and tape are great, but an alternative would be nice for a number of reasons: 1. TAP is difficult to work with - Bad experience for...
Ideally, snapshot testing works in an environment-agnostic fashion over CDP. It remains to be seen if this will actually be feasible, though.
- unitest - unitest-node - unitest-electron - unitest-cli
Compatibility is pretty good across multiple platforms (including Node, Chrome, and Safari): http://compatibility.remotedebug.org/ Unitest should be restructured to use this protocol. Then the unitest core can be completely agnostic of...
If the test script doesn't produce TAP output, the `--browser` tests will hang indefinitely. This does not affect the `--node` tests. To demonstrate, create a blank file `not-tap-output.js` or put...