We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48fb918 commit 3c95a8bCopy full SHA for 3c95a8b
2 files changed
behave/hello.feature
@@ -0,0 +1,6 @@
1
+Feature: starting Fix (behave initial setup)
2
+
3
+ Scenario: run the simple Hello World app that Fix is today
4
+ Given nothing
5
+ When we run Fix
6
+ Then it prints "Hello, fix!" and terminates
behave/steps/hello.py
@@ -0,0 +1,21 @@
+from behave import given, when, then
+import pexpect
+fix_executable = '../cmake-build-debug/bin/fix'
7
+@given(u'nothing')
8
+def nothing(context):
9
+ pass
10
11
12
+@when(u'we run Fix')
13
+def start_fix(context):
14
+ context.fix = pexpect.spawn(fix_executable)
15
16
17
+@then(u'it prints "{expected_output}" and terminates')
18
+def check_output(context, expected_output):
19
+ fix = context.fix
20
+ fix.expect_exact(expected_output)
21
+ assert (fix.wait() == 0)
0 commit comments