Skip to content

Commit

Permalink
feat: add basic gherkin test suite for tracking
Browse files Browse the repository at this point in the history
Signed-off-by: Bernd Warmuth <[email protected]>
  • Loading branch information
warber committed Dec 9, 2024
1 parent ed0f9ef commit 5af836f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions specification/assets/gherkin/tracking.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Feature: Tracking

# This test suite contains scenarios to test the tracking API.

Background:
Given a provider is registered

Scenario Outline: Invalid event names
When an event was tracked with tracking event name <event_name>
Then nothing should have been tracked
And the tracking operation shall error
Examples: Basic
| event_name |
| "" |
| "NULL" |

Scenario Outline: Provider's track functionality is called
When an event was tracked with tracking event name <event_name>
Then the tracking provider should have been called with event name <event_name>
Examples: Basic
| event_name |
| "the-event" |

0 comments on commit 5af836f

Please sign in to comment.