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

Dispatch additional test events #8093

Merged

Conversation

petrovic-d
Copy link
Contributor

  • Dispatch event when test adapter is created
  • Dispatch events for parameterized tests
  • Prevent creation of duplicates for Run Tests in Parallel test profile

@MartinBalin MartinBalin requested review from sdedic and dbalek January 2, 2025 08:24
getParametrizedTestEvent(state: SuiteState, testItem: TestItem): any {
let name = testItem.parent?.id;
const idx = name?.indexOf(':') || 0;
return {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what will be the behaviour of the rest of the code on testEvents with undefined name and id ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That shouldn't happen. But I added explicit check for that case

@sdedic sdedic added the VSCode Extension [ci] enable VSCode Extension tests label Jan 2, 2025
@sdedic sdedic added this to the NB25 milestone Jan 2, 2025
@apache apache locked and limited conversation to collaborators Jan 2, 2025
@apache apache unlocked this conversation Jan 2, 2025
@petrovic-d petrovic-d force-pushed the dispatch-additional-test-events branch from 0b6d6ac to 62ae233 Compare January 3, 2025 07:53
@petrovic-d petrovic-d force-pushed the dispatch-additional-test-events branch from 62ae233 to 3e3e7b5 Compare January 3, 2025 08:08
@MartinBalin MartinBalin merged commit 22f24f0 into apache:master Jan 3, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
VSCode Extension [ci] enable VSCode Extension tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants