Skip to content

Merge fix/SDK-7458-mocha-jasmine-test-tags-v8 - #222

Merged
bsautomation merged 3 commits into
sdk_v8_pre_prodfrom
fix/SDK-7458-mocha-jasmine-test-tags-v8
Sep 23, 2026
Merged

bsautomation merged 3 commits into
sdk_v8_pre_prodfrom
fix/SDK-7458-mocha-jasmine-test-tags-v8

Conversation

@bsautomation

Copy link
Copy Markdown

Merge into sdk_v8_pre_prod :by automationbs

kamal-kaur04 and others added 3 commits September 22, 2026 20:35
Port of the main-line fix to the v8 branch; the reported build pinned
--wdio_versions v8.

WDIO Mocha and Jasmine never populated a test-level tags field, so every
Observability test arrived with tags == []. @tag tokens in the suite and
test titles are the source, matching the node SDK's Jest/Playwright
convention. The leading @ is kept so these match Cucumber pickle tags.

Both event paths fixed: wdioMochaTestFramework#getTestData now sets
KEY_TEST_TAGS (declared in the service's constants, never written, long
consumed by the binary), and insights-handler#getRunData now sets tags
on TestData.

Inert for untagged suites -- a title with no @ token yields [].

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Port of the main-line review fixes (#214).

- Tag pattern now requires the @ to start a token. /@[\w-]+/g matched any
  embedded @, so 'user@example.com' produced a bogus @example tag.
- reporter.ts#getRunData now sets tags. insights-handler#getRunData is
  reached only for mocha, so jasmine events and mocha skipped tests went
  through the reporter, which set scopes but no tags -- the Jasmine claim
  was false without this.
- Doc comment no longer claims node-agent parity; that SDK strips the @.
- Tests: embedded-@ cases, plus one per hierarchy shape with scopes
  omitted, pinned to the order the helper actually returns.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@bsautomation
bsautomation requested a review from a team as a code owner September 23, 2026 13:41
@bsautomation
bsautomation requested review from pri-gadhiya and vivianludrick and removed request for a team September 23, 2026 13:41
@bsautomation
bsautomation merged commit 6dd78e3 into sdk_v8_pre_prod Sep 23, 2026
14 of 20 checks passed
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

Successfully merging this pull request may close these issues.

2 participants