From 5af836f53290b9405be15b6d593740fe1c1f4454 Mon Sep 17 00:00:00 2001 From: Bernd Warmuth Date: Mon, 9 Dec 2024 12:18:51 +0100 Subject: [PATCH] feat: add basic gherkin test suite for tracking Signed-off-by: Bernd Warmuth --- specification/assets/gherkin/tracking.feature | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 specification/assets/gherkin/tracking.feature diff --git a/specification/assets/gherkin/tracking.feature b/specification/assets/gherkin/tracking.feature new file mode 100644 index 00000000..759bac2e --- /dev/null +++ b/specification/assets/gherkin/tracking.feature @@ -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 + 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 + Then the tracking provider should have been called with event name + Examples: Basic + | event_name | + | "the-event" |