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

How can write Table Specs meanwhile using labels? #1190

Open
hh24k opened this issue Apr 25, 2023 · 2 comments
Open

How can write Table Specs meanwhile using labels? #1190

hh24k opened this issue Apr 25, 2023 · 2 comments

Comments

@hh24k
Copy link

hh24k commented Apr 25, 2023

I'm referencing the doc here https://onsi.github.io/ginkgo/#table-specs trying to simplify the test case code but still expect to use the labels to filter tests. How could I do this?

@blgm
Copy link
Collaborator

blgm commented Apr 25, 2023

Although I don't see it in the documentation, it looks like you can use decorators in table tests:

decorations, parameters := internal.PartitionDecorations(args...)

I would expect something like this to work:

Entry("title", Label("label"), "arg1", "arg2")

Let's leave this ticket open and use it to update the documentation

@hh24k
Copy link
Author

hh24k commented Apr 25, 2023

Hi @blgm, was looking at the code you referenced just a few minutes ago, yeah, I think you're right ... I would give it a try ... thanks!

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

No branches or pull requests

2 participants