-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling package results in... Nothing #4
Comments
I need to update the docs but your gulpfile should look more like this. var gulp = require('gulp');
var qunit = require('gulp-qunit');
gulp.task('test', function () {
return gulp.src('./path/to/my/test_runner.html')
.pipe(qunit());
});
gulp.task('default', ['test']); Not that that is what your problem is. Can you post a screenshot of the output? Also which version are you using? |
Thanks for that. Yeah, I haven't gotten around to updating my gulpfile to the new syntax yet (I should probably do that...). Also, the other bits are in my gulpfile, I just didn't list them for brevity. My bad. When you say which version - do you mean which version of gulp, or which version of gulp-qunit? Either way, I'm running gulp CLI 3.5.0, and whatever the latest version of gulp-qunit is (I installed yesterday - 2/12/14). Also, I would post a screenshot, but literally nothing happens. I have a few mocha tests that run, and jshint runs, and then... nothing. I have grunt running watch in the background as I dev, so I would expect any latent tasks to run eventually, but I get nothing. |
I wish I could help you, but I'm afraid I can't reproduce it. Thanks for letting me know about the issue. |
Could you try the most recent version? |
No problem. I'll download it, give it a run Monday morning, and let you know how it goes. |
I'm wondering what happens when you try to just run any tests using phantomjs and QUnit. I'm wondering if you could install phantomjs globally and then run a test using this [https://github.com/jonkemp/node-qunit] and see if you get any results. |
I'll give that a shot, and let you know. |
Here are my results. I was able to use the PhantomJs Runner successfully from my root c:\ : When I ran node-qunit from the same location, I got: However, phantomjs is installed globally: So, then, to be safe, I ran the index.js file in my local app folder (I figured, maybe something screwy was going on globally---whatever that might be). So, when I did that, the program ran, but gave me no output (just like gulp-qunit)---so, I fired up WebStorm, and ran indjex.js in the debugger. I got this: But, sadly, node-qunit does nothing. No output. Nada. |
Ok thanks again. |
You also have an older version of gulp-qunit. The latest version is 0.2.0. Although that particular line hasn't changed so it may not fix it. What version of node are you using? |
I'll try updating gulp-qunit. I'm running 0.10.18. I'll try updating and see what happens. I appreciate the help---a lot. I'm getting the impression, though, that this is probably not a bug with your code---rather with something in my Nodesphere, given that it's the call to childProcess.execFile that's dying - and when I call the exe directly it works. I'll let you know how it goes either way, and thanks again! |
Getting latest (0.3.1) may fix this. |
I'm getting similar behavior. I'm running node 0.10.26 x64 on Windows; gulp 3.5.5, gulp-qunit 0.3.2. You can see my whole config at https://github.com/somecallmechief/oj. When I run my test.html in the browser, it loads and executes the whole test suite--no problem. I also installed the https://github.com/jonkemp/node-qunit-phantomjs package, and that executes the test suite--no problem. I see:
But when I run my gulp test task, I get this:
My gulp task is pretty thin:
|
@somecallmechief error reporting is not great right now. If the task throws an error at all, you see the above message. My guess is that's what's happening in your case. |
@jonkemp ok, makes sense |
@jonkemp I spoke too soon. I carved out the SyntaxHighlighting include which was the source of the exception. My output looks essentially the same:
and
|
@somecallmechief I get a result when I run it. I forked and cloned the project locally, then ran npm and bower install. When I run gulp test, I get a ton of errors which it prints to the console and then prints this. Took 25ms to run 45 tests. 0 passed, 45 failed.
[gulp] gulp-qunit: ? QUnit assertions failed in test.html
[gulp] Finished 'test' in 1.66 s When I run the test file in the browser, I see errors in the console.
The errors that QUnit is reporting are all similar to this.
So, it does work correctly for me. I'm not sure what the problem could be on your end. |
@jonkemp, wacky. I must have something cached locally that is scewing my results. I'll nuke my repo, reclone and go back to square one. Thanks for checking it out. |
@jonkemp, well I suspect it was a local caching issue. I should have elaborated on the build steps for you, you would need to have done
In order to get past the errors you indicate. But with a fresh clone and a clean install, I do get 223 out of 223 tests succeeded in my console. So thanks! I should have tried that before appending to this. Thanks again for your help. |
Environment: Win 7
Steps to reproduce:
var qunit = require('gulp-qunit');
gulp.task('test', function () {
gulp.src('./path/to/my/test_runner.html')
.pipe(qunit());
});
gulp.task('default', function () {
gulp.run('test');
}
Expected Result: The task will run, the qunit tests will run, and output results.
Actual Result: The task runs, and reports that it is finished, but there is no output from qunit.
The text was updated successfully, but these errors were encountered: