Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question / feature request #12

Closed
tmaslen opened this issue Jan 2, 2021 · 4 comments · Fixed by #15
Closed

Question / feature request #12

tmaslen opened this issue Jan 2, 2021 · 4 comments · Fixed by #15

Comments

@tmaslen
Copy link

tmaslen commented Jan 2, 2021

Hiya,

This project is awesome! Thanks for building it.

Is it possible to get gherkin-testcafe to output a list of pending step definitions if they don't exist already?

Thanks,
Tom.

@Arthy000
Copy link
Owner

Arthy000 commented Jan 5, 2021

Hello,

Thanks :D I have to admit that at the moment I haven't done much since I inherited the project, aside from answering questions, but I appreciate :p

At the moment, not really. You'll get an error for each scenario missing at least one step, but you can only see that by running all the tests, and even then you'll only see the first step missing for each scenario.

Personally, I use VSC with an addon named Cucumber (Gherkin) Full Support which, once properly configured, will highlight the steps without implementation in your feature file.

I'd be willing to implement that feature if you want.

@tmaslen
Copy link
Author

tmaslen commented Jan 5, 2021

I'll give this a look.

Outputting the missing steps in the terminal would definitely make the tool even more useful (and similar to other cucumber toolsets I've used in the past), but it's not deal breaker for me.

I did look at the source code to see if I could quickly implement it but it doesn't seem to be too simple.

Happy to take a crack at this myself if you could give me direction, otherwise I'll happily test it if you get round to adding it.

Thanks again for making this tool.

Tom.

@tmaslen tmaslen closed this as completed Jan 5, 2021
@Arthy000
Copy link
Owner

Arthy000 commented Jan 6, 2021

I'll give your request a try, I'll reopen if I decide to do it :)

@Arthy000 Arthy000 reopened this Jan 8, 2021
Arthy000 pushed a commit that referenced this issue Jan 8, 2021
using the arg --dry-run (CLI) or the function dryRun() (API) allows the user to display steps that
are missing an implementation

fix #12
@Arthy000
Copy link
Owner

Arthy000 commented Jan 8, 2021

Hello again, I just finished implementing the feature :D
I'll review my code in a few days to make sure it's not too bad, in the mean time you can test the branch linked to this issue :)

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

Successfully merging a pull request may close this issue.

2 participants