Commit 356d18d
test(audience): add ci marker test that stamps run metadata on CDP (SDK-317)
- New [UnityTest] AudienceCiTestMarker_EmitsRunMetadata. Skips
outside CI (AUDIENCE_TEST_RUN_ID and AUDIENCE_TEST_CELL_ID both
unset). Inside CI, calls LoadAndInit then emits one
ImmutableAudience.Track("audience_ci_test_marker", { source: "ci",
ciRunId, ciCellId }).
- Lets dashboards filter test traffic in / out:
- select event_name = "audience_ci_test_marker" lists every CI run
that hit CDP, with run / cell metadata directly on the row.
- properties.buildGuid on the marker matches the buildGuid the SDK
auto-emits on every game_launch event from the same cell binary,
so a follow-up filter pulls the rest of the cell's events.
- Standalone test rather than a hook in LoadAndInit so the marker
stays explicit and opt-in. Other tests do not silently emit a
side-event; the SampleApp and SDK carry no CI / QA-specific
knowledge.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5c2a9c5 commit 356d18d
1 file changed
Lines changed: 24 additions & 0 deletions
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
131 | 155 | | |
132 | 156 | | |
133 | 157 | | |
| |||
0 commit comments