(no title)
royka118 | 8 years ago
``` browsers: ['FirefoxHeadless'], customLaunchers: { FirefoxHeadless: { base: 'Firefox', flags: [ '-headless', ], }, }, ```
Note you need to be running the beta version of firefox, I needed to download it from here https://www.mozilla.org/en-US/firefox/channel/desktop/
Vinnl|8 years ago
Also note that that's only the case on Windows and OS X (it's already released for Linux), and only as long as Firefox 56 hasn't been released yet :)
royka118|8 years ago
gardnr|8 years ago
Where does one find a customer launcher?
rk06|8 years ago
paulddraper|8 years ago
What does everyone else use for browser tests?
shados|8 years ago
You do "pure" unit tests, which test most of the logic, computations and intention in nodejs, then rely on (usually just a few) E2E tests in selenium or whatever to make sure stuff actually work in the browser.
For example, in a standard React/Redux app with low amounts of legacy code, you can test almost all of the app's constructs in node and be very confident that everything works.
There's still a few places where Karma + Browser shine. Namely when something requires a unit test-style environment but is integration heavy. Think libraries abstracting browser details such as a rich text editor or a library like jQuery.
oatmealsnap|8 years ago
MuffinFlavored|8 years ago
pcx|8 years ago
tyingq|8 years ago
royka118|8 years ago
hackcasual|8 years ago
MuffinFlavored|8 years ago
royka118|8 years ago
That's what we currently do, karma and browser testing are useful but sometimes you can get away with not using them.
One thing we are trying is using JSDom to run browser based tests in node