Added pip install step for pytest in Test stage to resolve missing module error
This commit is contained in:
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -20,6 +20,9 @@ pipeline {
|
||||
bat 'echo Checking sources directory:'
|
||||
bat 'dir sources'
|
||||
|
||||
// Install pytest
|
||||
bat 'pip install pytest'
|
||||
|
||||
// Run pytest and generate JUnit-style test report
|
||||
bat 'python -m pytest --junit-xml=test-reports/results.xml sources/test_calc.py'
|
||||
|
||||
|
Reference in New Issue
Block a user