Skip to content

Commit 0a6f596

Browse files
authored
Merge pull request #21 from jeffflater/develop
Develop
2 parents dc788ce + 2825882 commit 0a6f596

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

.vscode/tasks.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
},
1313
"detail": "Builds the Docker image for Behave tests"
1414
},
15+
{
16+
"label": "Docker: Run Welcome from TestJeff",
17+
"type": "shell",
18+
"command": "docker run --rm --env-file .env -v ${workspaceFolder}/reports:/app/reports behave-test test/features/welcome.feature --junit --junit-directory /app/reports",
19+
"dependsOn": ["Docker: Build Behave Image"],
20+
"problemMatcher": [],
21+
"group": "test",
22+
"detail": "Runs only the welcome.feature test to verify setup from TestJeff"
23+
},
1524
{
1625
"label": "Docker: Run All Behave Tests",
1726
"type": "shell",
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from behave import given, when, then
2+
3+
@given("the course has started")
4+
def step_impl_given(context):
5+
print("\n[INFO] Course is now in session...")
6+
7+
@when("the student runs the first test")
8+
def step_impl_when(context):
9+
print("[ACTION] Student is running the welcome test...")
10+
11+
@then("TestJeff welcomes the student")
12+
def step_impl_then(context):
13+
print("\n🎉 Welcome to the course! – From TestJeff 🎉")
14+
15+
@then("confirms the setup is working")
16+
def step_impl_then_setup(context):
17+
print("✅ Your setup is now working correctly.\n")

test/features/welcome.feature

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Feature: Welcome Message
2+
3+
Scenario: Student runs the welcome test
4+
Given the course has started
5+
When the student runs the first test
6+
Then TestJeff welcomes the student
7+
And confirms the setup is working

0 commit comments

Comments
 (0)