Comments (5)
hi @mekdev , I'm not quite sure why you wouldn't ever want to know if the call to saucelabs succeeded or not?
from node-saucelabs.
@mekdev if I don't hear back from you I'll close this issue in a couple of days
from node-saucelabs.
@mekdev @danjenkins Looks like the api supports callbacks and mocha allows callbacks with done. Here is a basic example
describe('Mocha tests', function () {
var SauceLabs = require('saucelabs');
var sauce;
beforeEach(function () {
var config = {
username: process.env.SAUCE_USERNAME,
password: process.env.SAUCE_ACCESS_KEY
};
sauce = new SauceLabs(config);
});
afterEach(function () {
sauce = null;
});
it('should pass done callback for mocha', function (done) {
sauce.getJobs(done);
});
});
from node-saucelabs.
Hi guys,
Sorry for the delay, my intention wasn't to iqnore errors when omitting callbacks.
I was merely looking for a sync-like behavior (java/ruby) that would just block execution and throw error.
Our test pattern heavily uses co and the mocha promise manager from https://github.com/SeleniumHQ/selenium/wiki/WebDriverJs and we omit mocha done entirely.
The reason I requested this in the beginning is that I wanted to maintain our non-callback usage structure in our tests. Since then we have found our way around this by implementing our owner reporter and the tests looks alot cleaner now.
Please feel free to resolve as not fixed.
from node-saucelabs.
Great, thank you @mekdev !
from node-saucelabs.
Related Issues (20)
- Failure on M1 Mac: unexpected signal during runtime execution HOT 5
- Response code 404 when downloading sc-4.6.5-linux32.tar.gz HOT 9
- Real devices rdc endpoints supported? HOT 3
- Deprecated Tunnels REST API version is used HOT 1
- Update build URL returned by listBuilds command HOT 4
- Sauce Connect 4.7.1 not working with newest release HOT 1
- Upgrade to 6.2.1 causes "WebDriver Error: Sauce could not start your job" HOT 12
- bin-wrapper is problematic HOT 4
- suggested various refactors HOT 4
- Proxy argument not getting passed to SC HOT 2
- query-string might need to be a dependency instead of a devDependency HOT 3
- npm audit surfaces 'got' dependency vulnerability HOT 2
- Better ESM compatibility HOT 2
- Vulnerability issue through `download` dependency HOT 7
- require() of ES Module HOT 8
- CommonJS support HOT 4
- Could not report results to Saucelabs: Error: Failed calling updateJob: Response code 404 (Not Found)
- Type mismatch for api
- Add support for Sauce Connect 5 HOT 1
- Readiness check of Sauce Connect Proxy 5 does not work 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 node-saucelabs.