From f6631869d44a5f56375c7944209ae09c174417c6 Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Fri, 13 Sep 2024 17:48:24 +0300 Subject: [PATCH] Add example test for issue #32 --- .../resources/feature/call_same_feature.feature | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/test/resources/feature/call_same_feature.feature diff --git a/src/test/resources/feature/call_same_feature.feature b/src/test/resources/feature/call_same_feature.feature new file mode 100644 index 0000000..dc4524f --- /dev/null +++ b/src/test/resources/feature/call_same_feature.feature @@ -0,0 +1,13 @@ +Feature: the very basic test to run by Karate + + @ignore @execute-test + Scenario: Power of two + * def expected = expectedValue + * def powValue = testValue + * def actual = powValue * powValue + * assert actual == expected + + Scenario: Verify math + * def expectedValue = 4 + * def testValue = 2 + * call read('@execute-test') { expectedValue: #(expectedValue), testValue: #(testValue) }