Comments (4)
There's one other change I made, which is to not throw an error when result.status === 'test error'
I did this by removing this if block:
src/Job.js:111
if (result.status === 'test error') {
// A detailed error message should be composed here after the Sauce Labs API is
// modified to report errors better, see #102.
throw new Error('Test Error');
}
I think the state of what this returns has improved since that bug was filed.
Without this commented out I get this:
$ grunt test:broken
Adding environment variables
Running "test:broken" (test) task
Running "connect:server" (connect) task
Started connect web server on http://0.0.0.0:9000
Running "saucelabs-mocha:broken" (saucelabs-mocha) task
=> Starting Tunnel to Sauce Labs
>> Connected to Saucelabs
1 / 1 tests started
Tested http://127.0.0.1:9000/test/mocha_test.html
Platform: undefined
Passed: false
Url undefined
>> All tests completed with status false
=> Stopping Tunnel to Sauce Labs
Warning: Task "saucelabs-mocha:broken" failed. Use --force to continue.
Aborted due to warnings.
With the block commented out I get this:
$ grunt test:broken
Adding environment variables
Running "test:broken" (test) task
Running "connect:server" (connect) task
Started connect web server on http://0.0.0.0:9000
Running "saucelabs-mocha:broken" (saucelabs-mocha) task
=> Starting Tunnel to Sauce Labs
>> Connected to Saucelabs
1 / 1 tests started
Tested http://127.0.0.1:9000/test/mocha_test.html
Platform: OSX 10.6,safari,5.1
Passed: false
Url undefined
>> All tests completed with status false
=> Stopping Tunnel to Sauce Labs
Warning: Task "saucelabs-mocha:broken" failed. Use --force to continue.
Aborted due to warnings.
from grunt-saucelabs.
I've been running into similar issues with Select2 that I just tracked down to Firefox builds not actually being started.
So we're having a similar issue (process is hanging because of a (possibly) bad configuration) but the test isn't being triggered at all so the result isn't going to come back correctly.
Edit: The issue was that I wasn't locking the platform
down to anything for Firefox builds, locking it to "linux" fixed the issue.
from grunt-saucelabs.
thanks a lot kevin this fixed my issue with firefox as well.
But the project should throw a better error description if possible.
from grunt-saucelabs.
Sure, anyone want to submit a Pull Request?
from grunt-saucelabs.
Related Issues (20)
- Report more info on Job timeout HOT 12
- avoid overwriting QUnit.log methods
- Test timeout HOT 8
- Post to status endpoint is failing HOT 4
- Update to sauce-tunnel 2.3.0 HOT 2
- incoming-pr branch is outdated, so that it is impossible to foollow guidelines for contributing HOT 2
- Post to status endpoint is failing HOT 17
- Travis Sauce Connect Addon Integration HOT 3
- Credential leak in verbose mode HOT 2
- Update docs to avoid deprecated config options HOT 3
- Stack trace after Stopping Tunnel to Sauce Labs
- Grunt 1.0.x support HOT 4
- Fix failing grunt-saucelabs CI tests HOT 4
- After navigating to URL, why don't the browsers let go?
- Update node-request-retry to latest (still not available release)
- [ERROR] this.key is not a function HOT 5
- allow configurable test names per url
- testTimeout
- Security issue HOT 3
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-saucelabs.