Skip to content

Commit cb850eb

Browse files
author
Bernd Warmuth
committed
feat: add basic gherkin test suite for tracking
Signed-off-by: Bernd Warmuth <[email protected]>
1 parent ed0f9ef commit cb850eb

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Feature: Tracking
2+
3+
# This test suite contains scenarios to test the tracking API.
4+
5+
Background:
6+
Given a provider is registered
7+
8+
Scenario Outline: Invalid event names
9+
When an event was tracked with tracking event name <event_name>
10+
Then nothing should have been tracked
11+
And the tracking operation shall error
12+
Examples: Basic
13+
| event_name |
14+
| "" |
15+
| "NULL" |
16+
17+
Scenario Outline: Provider's track functionality is called
18+
When an event was tracked with tracking event name <event_name>
19+
Then the tracking provider should have been called with event name <event_name>
20+
Examples: Basic
21+
| event_name |
22+
| "the-events" |

0 commit comments

Comments
 (0)