CleverStack / angular-seed

The AngularJS based Modular Frontend for CleverStack, MEAN and so much more
http://youtube.com/watch?v=-4ArURHExhQ
MIT License
118 stars 36 forks source link

TEST launch webdriver #65

Closed thinkadoo closed 9 years ago

thinkadoo commented 10 years ago

Nomads-MacBook-Pro-2:cleverwalkingskeleton nomad$ clever test Scanning folders for Gruntfiles... Running "mochaTest:unit" (mochaTest) task

classes.Controller .listAction() ✓ should call .send() with all Model instances .getAction() ✓ should call .send() with Model instance by id .postAction() ✓ should create new Model instance ✓ should call .send() with new Model instance .putAction() ✓ should update Model instance by id ✓ should call .send() with updated Model instance .deleteAction() null ✓ should delete Model instance by id

service.BaseService .setup(dbAdapter) ✓ should set .db to dbAdapter .startTransaction() ✓ should call .db.startTransaction() .query(sql) Running SQL: test ✓ should call .db.query() with valid arguments .findById(id) ✓ should find Model instance by id .create(data) ✓ should create new Model instance with data .findAll(options) ✓ should return all Model instances .find(options) ✓ should return Model instances filtered by query options .update(id, data) ✓ should update Model instance by id with data .destroy(id) ✓ should mark Model instance as deleted by id

utils .stacktrace() ✓ should return array ✓ should return stack stace beginning at current function ✓ should contain function names and filepaths

19 passing (687ms)

Running "mochaTest:e2e" (mochaTest) task No files to check...OK

Done, without errors. Running "karma:unit" (karma) task INFO [karma]: Karma v0.10.10 server started at http://localhost:9090/ INFO [launcher]: Starting browser Chrome INFO [launcher]: Starting browser PhantomJS INFO [PhantomJS 1.9.7 (Mac OS X)]: Connected on socket 5p0hqBxWl3UJICLsLg1X INFO [Chrome 35.0.1916 (Mac OS X 10.9.3)]: Connected on socket _PlJ_0yof8mGVwJiLg1Y WARN [web-server]: 404: /base/app/modules/moduleone.js WARN [web-server]: 404: /base/app/modules/moduletwo.js Chrome 35.0.1916 (Mac OS X 10.9.3) ERROR: 'There is no timestamp for /base/app/modules/moduleone.js!' Chrome 35.0.1916 (Mac OS X 10.9.3) ERROR: 'There is no timestamp for /base/app/modules/moduletwo.js!' Chrome 35.0.1916 (Mac OS X 10.9.3) ERROR: 'There is no timestamp for /base/app/modules/modulethree.js!' PhantomJS 1.9.7 (Mac OS X) ERROR: 'There is no timestamp for /base/app/modules/moduleone.js!' PhantomJS 1.9.7 (Mac OS X) ERROR: 'There is no timestamp for /base/app/modules/moduletwo.js!' PhantomJS 1.9.7 (Mac OS X) ERROR: 'There is no timestamp for /base/app/modules/modulethree.js!' PhantomJS 1.9.7 (Mac OS X) ERROR Error: Script error for: moduleone http://requirejs.org/docs/errors.html#scripterror at /Users/nomad/Projects/cleverwalkingskeleton/frontend/node_modules/requirejs/require.js:141 PhantomJS 1.9.7 (Mac OS X) ERROR Error: Script error for: moduletwo http://requirejs.org/docs/errors.html#scripterror at /Users/nomad/Projects/cleverwalkingskeleton/frontend/node_modules/requirejs/require.js:141 PhantomJS 1.9.7 (Mac OS X): Executed 0 of 0 ERROR (0 secs / 0 secs) PhantomJS 1.9.7 (Mac OS X): Executed 0 of 0 ERROR (0.119 secs / 0 secs) Chrome 35.0.1916 (Mac OS X 10.9.3): Executed 0 of 0 SUCCESS (0 secs / 0 secs) WARN [web-server]: 404: /base/app/modules/moduleone.js Chrome 35.0.1916 (Mac OS X 10.9.3) ERROR Uncaught Error: Script error for: moduleone http://requirejs.org/docs/errors.html#scripterror at /Users/nomad/Projects/cleverwalkingskeleton/frontend/node_modules/requirejs/require.js:141 Chrome 35.0.1916 (Mac OS X 10.9.3) ERROR Uncaught Error: Script error for: moduletwo http://requirejs.org/docs/errors.html#scripterror at /Users/nomad/Projects/cleverwalkingskeleton/frontend/node_modules/requirejs/require.js:141 Chrome 35.0.1916 (Mac OS X 10.9.3) ERROR Uncaught Error: Script error for: modulethree http://requirejs.org/docs/errors.html#scripterror at /Users/nomad/Projects/cleverwalkingskeleton/frontend/node_modules/requirejs/require.js:141 PhantomJS 1.9.7 (Mac OS X): Executed 0 of 0 ERROR (0.119 secs / 0 secs) Chrome 35.0.1916 (Mac OS X 10.9.3): Executed 0 of 0 ERROR (0.144 secs / 0 secs) Warning: Task "karma:unit" failed. Used --force, continuing.

Done, but with warnings.

Execution Time (2014-05-28 04:54:34 UTC) loading tasks 699ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 23% karma:unit 2.4s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 77% Total 3.1s Tests ran successfully. Nomads-MacBook-Pro-2:cleverwalkingskeleton nomad$ clever test Scanning folders for Gruntfiles... Running "mochaTest:unit" (mochaTest) task

classes.Controller .listAction() ✓ should call .send() with all Model instances .getAction() ✓ should call .send() with Model instance by id .postAction() ✓ should create new Model instance ✓ should call .send() with new Model instance .putAction() ✓ should update Model instance by id ✓ should call .send() with updated Model instance .deleteAction() null ✓ should delete Model instance by id

service.BaseService .setup(dbAdapter) ✓ should set .db to dbAdapter .startTransaction() ✓ should call .db.startTransaction() .query(sql) Running SQL: test ✓ should call .db.query() with valid arguments .findById(id) ✓ should find Model instance by id .create(data) ✓ should create new Model instance with data .findAll(options) ✓ should return all Model instances .find(options) ✓ should return Model instances filtered by query options .update(id, data) ✓ should update Model instance by id with data .destroy(id) ✓ should mark Model instance as deleted by id

utils .stacktrace() ✓ should return array ✓ should return stack stace beginning at current function ✓ should contain function names and filepaths

19 passing (688ms)

Running "mochaTest:e2e" (mochaTest) task No files to check...OK

Done, without errors. Running "karma:unit" (karma) task INFO [karma]: Karma v0.10.10 server started at http://localhost:9090/ INFO [launcher]: Starting browser Chrome INFO [launcher]: Starting browser PhantomJS INFO [PhantomJS 1.9.7 (Mac OS X)]: Connected on socket HSVl7W_kbtxB3e-ULmgW INFO [Chrome 35.0.1916 (Mac OS X 10.9.3)]: Connected on socket 4QlxFM-tl9s2WgUmLmgX PhantomJS 1.9.7 (Mac OS X) ERROR: 'There is no timestamp for /base/app/modules/moduleone.js!' PhantomJS 1.9.7 (Mac OS X) ERROR: 'There is no timestamp for /base/app/modules/moduletwo.js!' PhantomJS 1.9.7 (Mac OS X) ERROR: 'There is no timestamp for /base/app/modules/modulethree.js!' PhantomJS 1.9.7 (Mac OS X): Executed 0 of 0 SUCCESS (0 secs / 0 secs) Chrome 35.0.1916 (Mac OS X 10.9.3): Executed 0 of 0 SUCCESS (0 secs / 0 secs) WARN [web-server]: 404: /base/app/modules/moduleone.js PhantomJS 1.9.7 (Mac OS X) ERROR Error: Script error for: moduleone http://requirejs.org/docs/errors.html#scripterror at /Users/nomad/Projects/cleverwalkingskeleton/frontend/node_modules/requirejs/require.js:141 PhantomJS 1.9.7 (Mac OS X) ERROR Error: Script error for: moduletwo http://requirejs.org/docs/errors.html#scripterror at /Users/nomad/Projects/cleverwalkingskeleton/frontend/node_modules/requirejs/require.js:141 PhantomJS 1.9.7 (Mac OS X) ERROR Error: Script error for: modulethree http://requirejs.org/docs/errors.html#scripterror at /Users/nomad/Projects/cleverwalkingskeleton/frontend/node_modules/requirejs/require.js:141 Chrome 35.0.1916 (Mac OS X 10.9.3) ERROR: 'There is no timestamp for /base/app/modules/moduleone.js!' Chrome 35.0.1916 (Mac OS X 10.9.3) ERROR: 'There is no timestamp for /base/app/modules/moduletwo.js!' Chrome 35.0.1916 (Mac OS X 10.9.3) ERROR: 'There is no timestamp for /base/app/modules/modulethree.js!' PhantomJS 1.9.7 (Mac OS X): Executed 0 of 0 ERROR (0.098 secs / 0 secs) Chrome 35.0.1916 (Mac OS X 10.9.3): Executed 0 of 0 SUCCESS (0 secs / 0 secs) WARN [web-server]: 404: /base/app/modules/moduleone.js Chrome 35.0.1916 (Mac OS X 10.9.3) ERROR Uncaught Error: Script error for: moduleone http://requirejs.org/docs/errors.html#scripterror at /Users/nomad/Projects/cleverwalkingskeleton/frontend/node_modules/requirejs/require.js:141 Chrome 35.0.1916 (Mac OS X 10.9.3) ERROR Uncaught Error: Script error for: moduletwo http://requirejs.org/docs/errors.html#scripterror at /Users/nomad/Projects/cleverwalkingskeleton/frontend/node_modules/requirejs/require.js:141 Chrome 35.0.1916 (Mac OS X 10.9.3) ERROR Uncaught Error: Script error for: modulethree http://requirejs.org/docs/errors.html#scripterror at /Users/nomad/Projects/cleverwalkingskeleton/frontend/node_modules/requirejs/require.js:141 PhantomJS 1.9.7 (Mac OS X): Executed 0 of 0 ERROR (0.098 secs / 0 secs) Chrome 35.0.1916 (Mac OS X 10.9.3): Executed 0 of 0 ERROR (0.157 secs / 0 secs) Warning: Task "karma:unit" failed. Used --force, continuing.

Done, but with warnings.

Execution Time (2014-05-28 04:54:57 UTC) loading tasks 711ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 23% karma:unit 2.4s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 77% Total 3.1s Tests ran successfully. Nomads-MacBook-Pro-2:cleverwalkingskeleton nomad$ clever test e2e Scanning folders for Gruntfiles... Running "mochaTest:e2e" (mochaTest) task No files to check...OK

Done, without errors. Running "connect:livereload" (connect) task Started connect web server on 127.0.0.1:9000.

Running "protractor:singlerun" (protractor) task Using the selenium server at http://localhost:4444/wd/hub [launcher] Running 1 instances of WebDriver[launcher] chrome passed

Test failed but keep the grunt process alive.

Done, without errors.

Execution Time (2014-05-28 04:55:13 UTC) loading tasks 696ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 27% protractor:singlerun 1.9s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 72% Total 2.6s Tests ran successfully. Nomads-MacBook-Pro-2:cleverwalkingskeleton nomad$

pilsy commented 9 years ago

This needs to be re-looked at now that we are using grunt webdriver:update, grunt webdriver:status and grunt webdriver:start