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

Prepend gherkin keywords to test names #108

Closed
sagikazarmark opened this issue May 25, 2020 · 1 comment · Fixed by #113
Closed

Prepend gherkin keywords to test names #108

sagikazarmark opened this issue May 25, 2020 · 1 comment · Fixed by #113
Labels

Comments

@sagikazarmark
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
When reading test cases out loud, it's often hard because one cannot directly map test names to gherkin steps.

Describe the solution you'd like
Consider the following test output:

--- PASS: TestList (0.00s)
    --- PASS: TestList/Todo_list (0.00s)
        --- PASS: TestList/Todo_list/Add_a_new_item_to_the_list (0.00s)
            --- PASS: TestList/Todo_list/Add_a_new_item_to_the_list/I_add_entry_"Call_mom" (0.00s)
            --- PASS: TestList/Todo_list/Add_a_new_item_to_the_list/I_should_have_a_todo_to_"Call_mom" (0.00s)

With gherkin keywords:

--- PASS: TestList (0.00s)
    --- PASS: TestList/Todo_list (0.00s)
        --- PASS: TestList/Todo_list/Scenario_Add_a_new_item_to_the_list (0.00s)
            --- PASS: TestList/Todo_list/Scenario_Add_a_new_item_to_the_list/When_I_add_entry_"Call_mom" (0.00s)
            --- PASS: TestList/Todo_list/Scenario_Add_a_new_item_to_the_list/Then_I_should_have_a_todo_to_"Call_mom" (0.00s)

Additional context
TBH, I'm not sure if this is even possible.

@sagikazarmark sagikazarmark added enhancement New feature or request proposal labels May 25, 2020
@bkielbasa
Copy link
Collaborator

I think it's possible but I'm not sure if it's hard or not but generally I like the idea 👌

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

Successfully merging a pull request may close this issue.

2 participants