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
Not running all tests #880
Comments
If your specs are making Ajax requests, you should probably be stubbing them out with something like jasmine ajax or else using the |
I have this problem as well. My test suite is run in a Scala host using Nashorn. I lowered maximumSpecCallbackDepth to 5 to make it work. It would be nice to have this value as a configurable option. (Side note/question: I had to make my Jasmine boot file async-aware by executing a host-provided done-callback in a custom reporter. Is that the officially recommended way?) |
@provegard The current preferred way to cause your jasmine suite to not execute at |
@slackersoft Not sure what you mean - as I wrote I'm running tests from a Scala/Nashorn host, so there is no such thing as I have a custom boot file that essentially calls My current approach to knowing when the suite is complete is to have a Scala-provided reporter that resolves a Promise inside |
One more thing to add: http://jasmine.github.io/2.3/boot.html says "The jsApiReporter also receives spec results, and is used by any environment that needs to extract the results from JavaScript." So using jsApiReporter was my first approach, but since it hadn't collected all test results by the time |
I have a problem with Spec with more than 15 tests. Jasmine reports correctly execution of every test printing out dots and F-s, but at the end it gives wrong information that everything went ok without errors. It doesn't print any other information on failed tests. When I comment out some of the tests to reduce number of them, jasmine prints detailed information on every failed test and also at the end it gives correct summary with number of failed tests. Here is the output when suite contains more than 15 tests.
Well, I have found a solution. In the
HTH |
@vitalije It looks like you're using the jasmine-npm to run your specs. That package also includes a grunt task that should correctly run your specs, but you would need to put your configuration into a |
Thanks @slackersoft |
It sounds like this issue was primarily from not waiting for the suite to finish executing ( Thanks for using Jasmine! |
I'm on 2.2.0 and typically when I have more than 10 tests, it will only run the first 10 and not the others. Most of my tests are doing api calls which take a little while. If I remove the api calls it works fine with more tests. I can't figure out why though I believe it has something to do with the timeout function. I know if I remove the if statement where it's checking for maximumSpecCallbackDepth in clearStack(), it's fine.
I'm running this in a Nashorn environment with a custom reporter and using
jasmine.clock().install();
.Has anyone else experience this or have any idea what it may be?
The text was updated successfully, but these errors were encountered: