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

compatibility with latest cucumber js version #13

Open
anilsky opened this issue May 28, 2021 · 4 comments
Open

compatibility with latest cucumber js version #13

anilsky opened this issue May 28, 2021 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@anilsky
Copy link

anilsky commented May 28, 2021

I am facing few issues when upgrades to latest cucumber version (version 6)

please can you recommend what changes will i need to do make it working with latest cucumber version (especially index.js file)

I really appreciate your help

Thanks,
Anil

@john-doherty john-doherty added enhancement New feature or request help wanted Extra attention is needed labels Jun 20, 2021
@thu2004
Copy link
Contributor

thu2004 commented Jul 2, 2021

I am prototyping with the latest of @cucumber/cucumber

Got some issue with cucumber CLI.

Have you try to port it and any tips ?

@anilsky
Copy link
Author

anilsky commented Jul 2, 2021

migrated to cucumber 6.0.5
you need to add/replace the code in index.js with the following

let runArgs = process.argv;
let cliArgs = {argv : runArgs, cwd: process.cwd(), stdout: process.stdout};
let cli = new (require('cucumber').Cli)(cliArgs);

// CLI.run returns a promise
return new Promise(function (resolve, reject) {
try {
return cli.run()
.then(success => resolve((success === true) ? 0 : 1));
} catch (e) {
return reject(e);
}
})

@thu2004
Copy link
Contributor

thu2004 commented Jul 2, 2021

Why not migrate to cucumver 7.x.x and above ?

@anilsky
Copy link
Author

anilsky commented Jul 3, 2021

if you want you can, we have some 3 party integrations which doesn't yet work with 7.x.x so we stick with 6.x.x

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants