Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Is it possible to pass in all testcafe command line options? #5

Closed
danielabar opened this issue Dec 4, 2017 · 5 comments · Fixed by #6
Closed

Is it possible to pass in all testcafe command line options? #5

danielabar opened this issue Dec 4, 2017 · 5 comments · Fixed by #6

Comments

@danielabar
Copy link

There seem to be a lot more testcafe command line options then the list of options listed in this plugin's readme.

For example, setting screenshot path, concurrency, debug mode etc.

Is it possible to pass in any/all of testcafe command line options using this plugin?

@AndreyBelym
Copy link
Contributor

Hi @danielabar, I'm updating TestCafe version in this package right now. After that, all new features will be available in gulp-testcafe.

@AndreyBelym
Copy link
Contributor

But you can set a path to a screenshots folder right now, check https://github.com/DevExpress/gulp-testcafe#screenshotspath.

AlexanderMoskovkin added a commit that referenced this issue Dec 6, 2017
Add missing options (closes #5)
@danielabar
Copy link
Author

Just tried it out using some of the new options app, appInitDelay and concurrency and it's working well. Thanks!

@HenrrySalinasJala
Copy link

@AndreyBelym I see it is not possible to specify pathPattern for the screenshots:

    function onStreamEnd (cb) {
        var stream   = this;
        var testcafe = null;

        createTestCafe(opts.hostname, opts.ports[0], opts.ports[1])
            .then(function (tc) {
                testcafe = tc;

                var runner = testcafe.createRunner();
runner
                    .src(files)
                    .browsers(opts.browsers)
                    .filter(opts.filter)
                    .screenshots(opts.screenshotsPath, opts.takeScreenshotsOnFail) // only the first two parameters are sent
                    .reporter(opts.reporter);

how can I send pathPattern parameter through gulp-testcafe

@SergeyShurygin
Copy link

We created an issue #17 to support all screenshot options. Let move further discussion into it. Your PRs are welcome too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants