File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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 " )
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments