Skip to content

Dispatch additional test events#8093

Merged
MartinBalin merged 1 commit intoapache:masterfrom
petrovic-d:dispatch-additional-test-events
Jan 3, 2025
Merged

Dispatch additional test events#8093
MartinBalin merged 1 commit intoapache:masterfrom
petrovic-d:dispatch-additional-test-events

Conversation

@petrovic-d
Copy link
Collaborator

  • 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 dbalek and sdedic 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
Collaborator 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 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments