-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Test Case name not fully displaying when space is available #368
Comments
This is how names are reported by Vitest, so they are generated by someone like this. |
Hello @charlieforward9. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with |
@sheremet-va thank you for the response. UPDATE: A reproduction was added to the original Issue description. |
Im sorry, it seems I misunderstood what you originally said. This seems to be an issue with the vitest-cucumber plugin, or something else I am depending on. Thank you for clarifying. |
I managed to reproduce it with this code: it.each([{ key: 'should not show all of this text in the VSCode Testing navigator display because of a Vitest limitation' }])("$key", () => {
expect(undefined).toBe(undefined);
}); Vitest doesn't expect the full names to be used as properties there as they are treated a bit differently that if it was export default defineConfig({
test: {
chaiConfig: {
truncateThreshold: Infinity,
}
},
}) But I would change how the tests are generated on cucumber side. |
@sheremet-va Thank you for the details. I will see about contributing these findings to give back to the community after getting so much support! |
amiceli/vitest-cucumber#72 is addressing this issue. |
I've improved tests title in vitest-cucumber, long title are more legible now. |
I need any kind of reproduction that uses vitest-cucumber. From what I remember, the extension sorts by location by default. Ideally, for frameworks built on top of Vitest, I would recommend using |
Hello @charlieforward9. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with |
I'm creating an example repository. |
@sheremet-va You can check vitest-cucumber-example project. Say me if you need more examples inside this project. |
It doesn't have information about the location (you would've seen the green arrow in this case), so it's sorted by default. I don't think this is the extension's fault. I will fix the sorting by modifying the |
Fixed by f282283 |
@sheremet-va Yes, it works on example projet ;). |
Describe the bug
When I drag the Navigation Bar out to show more text within the test cases, I see the ellipses. This should show the entire test name.
Reproduction
Output
A view similar to the one above with two test items showing something like this
Version
v0.8.6
Validations
Tasks
The text was updated successfully, but these errors were encountered: