-
Notifications
You must be signed in to change notification settings - Fork 23
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
Replace placeholders in table from examples? #46
Comments
Hello, do I understand the reported defect correctly that the table parameter does not support the placeholders from examples? |
Hi, I did not mean this as a defect, simply as sth not supported currently. Yes, it is about lack of support for placeholders (the value of which is coming from Examples:) inside tables, which if I am not mistaken is supported in other bdd tools. I have this cumbersome workaround in place, but maybe there is a better way ... Br, |
Hello, there is of course a better way! The problem is in this method: You can see that the code That feels like a minor change, but it would be good to have it covered by tests. Are you interested in contributing and making a PR for it? If not, I can do it, but I cannot promise how quickly I will get to it. Regards, |
Hi, Hmm, thanks for the hint, that sounds doable even for me ;) ... let me try to find time (but I cannot promise when either) .. Br, |
Hmm getting some errors when trying to build ... I am on Ubuntu 20.10 with .NET 5 ... I see some strange things in netfx.props which I have never seen so far ... Maybe you have another hint about this as well? Both Rider, VS Code and simple dotnet build behave the same way ...
|
Ignore the above, it seems that If I comment out
I can build TickSpec and TickSpec.Tests individually, which should be enough .. |
@mchaloupka I have created PR #47 |
Do you have mono installed? The |
I have no Mono installed (and not at all dying installing it - why would I need it in 2021?). Not sure what this "emit" functionality is, but yes, migration to .NET 5 is what I suggested on gitter .. |
There is a new release with the merged changes: https://github.com/fsprojects/TickSpec/releases/tag/2.0.1 |
Any way to replace automatically placeholders inside a table from the examples?
E.g.
Ideally I would also not need to put Placeholder1 in the step definition for the scenario outline to instantiate 2 scenarios ...
I am currently doing it like this as a workaround:
Any better/more elegant and automated ways?
The text was updated successfully, but these errors were encountered: