Comments (9)
Yes. The fact that it's still running is a bug... it should be exiting via https://github.com/jmreidy/grunt-mocha-webdriver/blob/master/tasks/grunt-mocha-wd.js#L82. I'm guessing an error is exiting before reaching that code.
from grunt-mocha-webdriver.
Yes, a fatal error is exiting before it reaches that code. Here an output of my grunt test:
$ grunt test:client
Running "env:test" (env) task
Running "clean:test" (clean) task
Cleaning server/var/test/level...OK
Running "start_listen" task
Running "mochaWebdriver:client" (mochaWebdriver) task
Running webdriver tests against PhantomJS.
PhantomJS started.
Create/Activate/Login (story)
✓ valid sign up redirects to activation email page (1962ms)
✓ activation will fail when input is correct but code is wrong (909ms)
✓ unable to login when not activated yet (913ms)
✓ cheat activation and do the login (2602ms)
Delete account
◦ cannot delete with invalid input: Fatal error: expected [Error: Unable to find element with css selector 'fieldset.modal p.warning input[name="confirmEmail"]'] to equal undefined
You see I get a fatal error at the bottom. Where is this coming from? Why fatal? How can I dig deeper here and find the culprit?
from grunt-mocha-webdriver.
It's odd that the error isn't being caught anywhere... looks like it's failing because your code is treating an error as an element. Can you post the test code?
from grunt-mocha-webdriver.
Exactly, it's weird. The test code is the file account.settings.js at https://gist.github.com/binarykitchen/7921116 ...
Any suggestions are very welcome!
from grunt-mocha-webdriver.
I'm not seeing the same test steps in the Gist as are included in the
broken test output...
On Saturday, December 14, 2013, Michael Heuberger wrote:
Exactly, it's weird. The test code is the file account.settings.js at
https://gist.github.com/binarykitchen/7921116 ...Any suggestions are very welcome!
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-30595783
.
from grunt-mocha-webdriver.
@jmreidy I think I am doing something completely wrong. That's why I need your feedback on that gist. And I also would love to see real good e2e examples in the wild based on grunt-mocha-webdriver.
Any chance you can help me with that soon?
from grunt-mocha-webdriver.
@jmreidy Ping? Or too busy buying xmas presents eh? :)
from grunt-mocha-webdriver.
Did some research without success. Something smells here. Somehow fatal errors crash everything. Difficult to say. Really would love to see good e2e examples here ...
from grunt-mocha-webdriver.
Just checking: do you quit the browser when any error occur?
Like this inside Mocha?
after(function() {
return browser.quit();
});
from grunt-mocha-webdriver.
Related Issues (20)
- upload
- ECONNREFUSED on file upload HOT 11
- Grunt task hangs on ECONNREFUSED HOT 1
- Release patch version to npm HOT 2
- [feature] See a progress bar HOT 2
- kill() does not fire close event HOT 3
- Move Release History from README.md to History.md HOT 5
- Automatically restart Sauce Connect
- Switch out wd.js for leadfoot HOT 4
- Spawn mocha as a child process HOT 3
- How can I configure the retryDelay parameter? HOT 3
- .setWindowSize no effect on latest PhantomJS HOT 1
- selenium launcher dependency causes failures when behind a firewall that blocks git protocol HOT 1
- Use SauceLabs without Sauce Connect tunnel? HOT 4
- Mocha failures do not cause grunt build to fail
- Use mocha 2
- Custom host server Question
- Implement concept of Adapters HOT 1
- Docs - code example required
- [Question] selenium-webdriver instance instead of wd.js HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-mocha-webdriver.