Git Product home page Git Product logo

Comments (5)

Robinfr avatar Robinfr commented on June 3, 2024

Ideally it should just log the error and not emit an error event when the tests fail. Right now this can't be used in CI since it will stop the process.

Edit: @silvenon for now you can do the following:

gulp.task('webdriver', function (done) {
    return gulp.src('wdio.conf.js')
        .pipe(webdriver())
        .on('error', function(){
            done();
        });
});

That will make the process continue.

from gulp-webdriver.

silvenon avatar silvenon commented on June 3, 2024

@Robinfr thanks, but in this case won't the process hang if it does not emit an error?

from gulp-webdriver.

christian-bromann avatar christian-bromann commented on June 3, 2024

is

stream.emit('error', new gutil.PluginError('gulp-webdriver', 'wdio exited with code ' + code, {
    showStack: false
}));

not the proper way to finish the gulp task with an error?

from gulp-webdriver.

Robinfr avatar Robinfr commented on June 3, 2024

@matia no it won't block if there is no error.

@christian I'm not sure. All I know is that if a error is emitted in a gulp task, the execution is stopped. So I would say that it's probably not the correct way for this case.

In this case, the tests failing does not mean that the gulp task failed that's why.

The gulp task is a success as long as all the tests have been run.

from gulp-webdriver.

christian-bromann avatar christian-bromann commented on June 3, 2024

This got obsolete with v2.0.0

from gulp-webdriver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.