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

Find unused step definitions in SpecFlow 3+ #1682

Closed
1 task done
rik-smeets opened this issue Jul 26, 2019 · 8 comments
Closed
1 task done

Find unused step definitions in SpecFlow 3+ #1682

rik-smeets opened this issue Jul 26, 2019 · 8 comments

Comments

@rik-smeets
Copy link

SpecFlow Version:

  • 3.0

Issue Description

Before SpecFlow 3, you could generate a report to find unused step definitions (see Reporting and the original resolved issue #307). However, this isn't possible anymore due to specflow.exe being deprecated. It'd be nice if an alternative could be created for this, so we can cleanup old forgotten step definitions. Thanks!

@cosminstirbu
Copy link
Contributor

Hi,

I'm also interested in this.
Before migrating to SpecFlow 3 and .NET Core we were using specflow.exe stepdefinitionreport as part of our Pull Request builds to make sure we were not leaving any unused step definitions / or have undefined steps out there (failing the build if that would be the case).

From all the reports related features that specflow.exe had, the most important from my point of view was stepdefinitionreport since it automated any mess that we would accidentally leave behind.

Please considering adding this feature back for SpecFlow 3 and .NET Core

Thanks,
Cosmin

@Stephen-Mc
Copy link
Contributor

If anyone wants to take on this request, here's the link to the repo containing the old code:
https://github.com/techtalk/SpecFlow.Reports

(It's also linked from the Reporting page in the documentation)

@gburghardt
Copy link
Contributor

I see the step definition report source code was copied over to SpecFlow.Reports. Has anyone done any testing for this? Is it semi-functional? Just curious to know what the current state of this is.

@PavelStryhelskiIDT
Copy link

Same issue, folks.
we are looking into moving to SpecFlow3, but the main blocker is stepdefinitionsreport.
Any updates for this feature to be back again?

@SabotageAndi
Copy link
Contributor

To make it easier for you all to vote on feature requests and influence our prioritization of them in our backlog, we created in our new support tool a special forum to have a better overview of all of them. We moved this feature request there and you can find it here. Sadly we could not take over the existing votes. So if you are still interested in this feature request, please vote again on the new list.

@alexmalimon
Copy link

alexmalimon commented Sep 29, 2020

Hi,
Look at .Net Core Global Tool I've created. It generates almost the same step definition usage report like previous one. Links to Nuget and Github.

@ozslab
Copy link
Contributor

ozslab commented Dec 8, 2020

Update: We are happy to announce that SpecFlow+ LivingDoc now supports displaying unused step definitions.

You need to install or update to the latest SpecFlow.Plus.LivingDoc.CLI NuGet package (as of writing: 3.5.186).

Further read:

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants