You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Personally I think donejs, as meta-project, should be a kitchen-sink -- meaning, that we generate all you need to get up and running. I think this includes running tests from the command line. Currently, we also require them to have FF install, and we don't tell the User that its a pre-requisite.
I was one of those Users without FF installed.
I recommend the following change:
Add "puppeteer": "^0.12.0" to the devDependencies of package.json.
Change the test task to:
Add a config directory (this will be for all the applications configuration) at the top level and include a test.js file (thanks @nlundquist).
constpuppeteer=require('puppeteer');// set chromium to node_modules local chromium supplied by puppeteerprocess.env.LAUNCHPAD_CHROMIUM=`${puppeteer.executablePath()}`;module.exports={browsers: [{browser: 'chromium',args: ['--headless','--disable-gpu','--remote-debugging-port=9222']}],};
This also requires a version change of testee from ^0.3.0 to ^0.7.0 so that it can except JS files as configuration (and not just JSON files).
Environment:
Software
Version
donejs -V
1.0.1
npm ls generator-donejs
1.0.7
The text was updated successfully, but these errors were encountered:
It works great in CI but there are still some system dependencies on Linux.
On Linux systems there are typical libs that the downloaded Chrome binary depends on (even when running headless) but fewer than if you ran non-headless mode or built Chrome from source.
We had to ensure the presence of the following libraries in a minimal Ubuntu 14.x LTS environment:
Description:
Currently the
test
task in package.json, looks like so:testee test.html --browsers firefox --reporter Spec
Personally I think
donejs
, as meta-project, should be a kitchen-sink -- meaning, that we generate all you need to get up and running. I think this includes running tests from the command line. Currently, we also require them to have FF install, and we don't tell the User that its a pre-requisite.I was one of those Users without FF installed.
I recommend the following change:
Add
"puppeteer": "^0.12.0"
to thedevDependencies
ofpackage.json
.Change the
test
task to:testee test.html --config config/test.js --reporter Spec
Add a
config
directory (this will be for all the applications configuration) at the top level and include atest.js
file (thanks @nlundquist).This also requires a version change of
testee
from^0.3.0
to^0.7.0
so that it can except JS files as configuration (and not just JSON files).Environment:
The text was updated successfully, but these errors were encountered: