From fe44b49c400eb81d66377348eea60a3104fb2665 Mon Sep 17 00:00:00 2001 From: Philipp Rosenkranz Date: Mon, 15 Apr 2019 13:49:25 +0200 Subject: [PATCH] tracker: added tracker feature description for status & test implementation --- tests/features/tracker.feature | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/features/tracker.feature diff --git a/tests/features/tracker.feature b/tests/features/tracker.feature new file mode 100644 index 0000000..32df0ad --- /dev/null +++ b/tests/features/tracker.feature @@ -0,0 +1,26 @@ +Feature: tracker + In order to use mite in a sane manner + As a mite user + I need to be able to start, stop and show the status of my time tracker + + Scenario: time tracker status + Given A local mock server is setup for the http method "GET" and path "/tracker.json" which returns: + """ + { + "tracker": { + "tracking_time_entry": { + "id": 36135321, + "minutes": 247, + "since": "2015-10-15T17:05:04+02:00" + } + } + } + """ + And Mite is setup to connect to this mock server + Then "-c .mite.toml tracker status" should return the following: + """ + id time state since + -- ---- ----- ----- + 36135321 4h7m tracking 2015-10-15 15:05:04 +0000 UTC + + """