This repository has been archived by the owner on Jun 12, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 46
Step display text customisation #411
Comments
This was referenced Dec 10, 2017
Closed
@eyalsk I just pushed 2.3.1 beta 1, which contains this feature. Could you please give it a try? https://www.nuget.org/packages/Xbehave/2.3.1-beta0001-build733 You should be able to achieve what you want by doing something like this: [assembly: BackgroundSuffixes]
public sealed class BackgroundSuffixesAttribute : Attribute, IFilter<IStepDefinition>
{
public IEnumerable<IStepDefinition> Filter(IEnumerable<IStepDefinition> steps) =>
steps.Select(step => step.DisplayText((string stepText, bool isBackgroundStep) =>
stepText + (isBackgroundStep ? " (Background)" : null)));
} |
@adamralph Excellent, thank you for these changes. 😉 |
@adamralph I've tested it just now and so far it looks good. |
Released in 2.3.1 - https://twitter.com/adamralph/status/998611366817746944 Thanks @eyalsk. Look out for your name in the release notes! https://github.com/xbehave/xbehave.net/releases/tag/2.3.1 🏆 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Outcome of #409.
The text was updated successfully, but these errors were encountered: