testem

exec 'node app' hangs inside gulp task

偶尔善良 提交于 2019-12-24 04:41:30
问题 This gulp task hangs on exec('node config/app') line. first exec works fine but the second just hangs. gulp.task('test', function(cb) { var exec = require('child_process').exec; exec('echo 3', function(err, stdout) { console.log(stdout); }); exec('node config/app', function(err, stdout, stderr) { console.log(stdout); var testemOptions = { file: 'testem.json' }; var t = new testem(); return t.startCI(testemOptions, function() { cb(); }); }); }); I can see the output 3 but no output is shown

exec 'node app' hangs inside gulp task

女生的网名这么多〃 提交于 2019-12-24 04:41:08
问题 This gulp task hangs on exec('node config/app') line. first exec works fine but the second just hangs. gulp.task('test', function(cb) { var exec = require('child_process').exec; exec('echo 3', function(err, stdout) { console.log(stdout); }); exec('node config/app', function(err, stdout, stderr) { console.log(stdout); var testemOptions = { file: 'testem.json' }; var t = new testem(); return t.startCI(testemOptions, function() { cb(); }); }); }); I can see the output 3 but no output is shown

Ember.js - CircleCI - BrowserStack

烂漫一生 提交于 2019-12-22 09:39:07
问题 I try to connect together our cicleCI with browserstack and run our integration_test and unit tests not only with PhantomJS but on real Firefox and Internet Explorer as well, using Browserstack service. I try to configure browserstack-cli. I can run the test from circleci via tunnel on Browserstack, but never report back to circleci server. Could you please share your experience if you already played with this stack? Thank you very much! 回答1: The solution is to use BrowserStackLocal and

Trying to spy (Jasmine) on Array.prototype methods causes stack overflow

两盒软妹~` 提交于 2019-12-22 05:41:51
问题 This is pretty odd. Using the testem runner with jasmine2 and the following spec executes (though it correctly flags that there are no expectations): describe('Spying on array.prototype methods', function(){ it('should work this way', function(){ spyOn( Array.prototype, 'push' ).and.callThrough(); // expect(1).toBe(1); }); }); However, add an expect (any expect !) and it causes the stack to overflow with the following message in the testem console: RangeError: Maximum call stack size exceeded

Testem gulp task hangs after finished

一笑奈何 提交于 2019-12-08 13:46:39
问题 This gulp task doesn't exit after finished, I have to manually press Ctrl-C to exit. gulp.task('test', function(done) { var testem = require('testem'); var testemOptions = { file: 'testem.json' }; var t = new testem(); t.startCI(testemOptions, done); }); How can i make this task exit properly? Note: Actually it exits itself, but it takes like 15 seconds after finished. Output: [15:49:59] Using gulpfile ~/gulpfile.js [15:49:59] Starting 'test'... ok 1 PhantomJS 1.9 - Integration Tests: Home

Trying to spy (Jasmine) on Array.prototype methods causes stack overflow

狂风中的少年 提交于 2019-12-05 08:06:42
This is pretty odd. Using the testem runner with jasmine2 and the following spec executes (though it correctly flags that there are no expectations): describe('Spying on array.prototype methods', function(){ it('should work this way', function(){ spyOn( Array.prototype, 'push' ).and.callThrough(); // expect(1).toBe(1); }); }); However, add an expect (any expect !) and it causes the stack to overflow with the following message in the testem console: RangeError: Maximum call stack size exceeded. at http://localhost:7357/testem/jasmine2.js, line 980 The html report page gets up to the spec and

Connecting to a PHP website with Node.js and keep session

大憨熊 提交于 2019-12-04 08:45:06
问题 I'm making a testbench with Test'em and Mocha (that run on node.js) in order to test a PHP website. What I want is to request some URL (e.g http://www.my-website/test.php) and get the http status code as well as the content returned. I'm doing it with the node.js Request module. The problem is: I need to be authenticated to access this page, otherwise I'm redirected to the login page. So, does it exist a way to log in my application through Node.js and keep the session open to be able to

Connecting to a PHP website with Node.js and keep session

随声附和 提交于 2019-12-03 00:49:08
I'm making a testbench with Test'em and Mocha (that run on node.js) in order to test a PHP website. What I want is to request some URL (e.g http://www.my-website/test.php ) and get the http status code as well as the content returned. I'm doing it with the node.js Request module. The problem is: I need to be authenticated to access this page, otherwise I'm redirected to the login page. So, does it exist a way to log in my application through Node.js and keep the session open to be able to chain tests on any pages I want? I was thinking on get the PHPSESSID on login request if it is possible.

not ok PhantomJS exited unexpectedly

拜拜、爱过 提交于 2019-12-01 01:17:14
问题 $ testem ci not ok 1 PhantomJS - Browser "phantomjs /home/ubuntu/.nvm/v0.10.12/lib/node_modules/testem/assets/phantom.js http://localhost:7357/6092" exited unexpectedly. 1..1 # tests 1 # pass 0 # fail 1 $ phantomjs --version 2014-07-28T00:24:22 [WARNING] Unable to load library icui18n "Cannot load library icui18n: (libicui18n.so.48: cannot open shared object file: No such file or directory)" 2014-07-28T00:24:22 [WARNING] phantomjs: cannot connect to X server What's wrong? testem command works

Ember CLI Code Coverage Reports

こ雲淡風輕ζ 提交于 2019-11-27 01:51:29
问题 I am using Ember CLI and I am trying to integrate code coverage reports with the built in Qunit tests that are run with testem. I tried to use Istanbul, but I couldn't get it to find the files to instrument because it seems to be looking in the tmp directory. I tried doing this in my testem.json: { "framework": "qunit", "serve_files": [ "instrumented/components/*.js" ], "before_tests": "istanbul instrument --output instrumented/components app/components", "after_tests": "istanbul report",