From 925af7d314df966688b521f1955914b9e5347846 Mon Sep 17 00:00:00 2001 From: Marcin-Ramotowski Date: Sun, 4 May 2025 06:55:10 +0000 Subject: [PATCH] Corrected commands to test python app --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f286028..177abb1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,8 +17,9 @@ pipeline { dir('api') { sh ''' python3 -m venv env - env/bin/pip install -r requirements.txt pytest - env/bin/pytest . --junit-xml=pytest_junit.xml + source env/bin/activate + pip install -r requirements.txt pytest + python3 -m pytest --junit-xml=pytest_junit.xml ''' } }