dwyl / learn-tape

:white_check_mark: Learn how to use Tape for JavaScript/Node.js Test Driven Development (TDD) - Ten-Minute Testing Tutorial
187 stars 31 forks source link

Using Tap for Browser Tests #6

Closed nelsonic closed 5 years ago

nelsonic commented 8 years ago

Need help adding a section for using Tap for Browser Tests ... https://gist.github.com/substack/7480813

As a developer, I need to run tests both on the server and client. Instead of needing multiple testing libraries, I would prefer to use one everywhere; tape. So that I don't waste any time context switching.

nelsonic commented 8 years ago

tried to follow Substack's gist and got to this: learn-tape-browserify

jackcarlisle commented 8 years ago
screen shot 2016-11-01 at 16 44 21
nelsonic commented 8 years ago

when I attempted to run browserify test/*.js | testling I got the error: No headless browser found. Which apparently several other people see: https://github.com/substack/testling/issues/108#issuecomment-250864273

So I did:

npm install phantomjs -g
mv ~/.config/browser-launcher/config.json ~/.config/browser-launcher/config.json_bak

Now when I run browserify test/*.js | testling it totes works. learn-tape-testling-passes

jackcarlisle commented 8 years ago
screen shot 2016-11-01 at 16 57 48
nelsonic commented 8 years ago

#ScreenShotPingPong 😜

jackcarlisle commented 8 years ago

🏓💥

nelsonic commented 5 years ago

Extensive example: https://github.com/dwyl/todo-list-javascript-tutorial 🚀 Closing.