node.js - Jenkins not generating test report files -


i using pipline build , run unit tests.

here pipeline:

pipeline {     agent     stages {         stage('build') {             steps {                 sh '''                   ./system/fuge/ci/docker-up.sh                   ./system/fuge/ci/docker-down.sh                 '''             }         }          stage('test') {             steps {                 sh '''                  ./system/fuge/ci/docker-up-test.sh                '''             }         } }         post {         {             junit 'build/reports/**/*.xml'           }         }  } 

and thiss error:

[pipeline] // stage [pipeline] stage [pipeline] { (declarative: post actions) [pipeline] junit recording test results [pipeline] } [pipeline] // stage [pipeline] } [pipeline] // node [pipeline] end of pipeline error: no test report files found. configuration error? finished: failure 

anyone know problem?

i use node.js, lab.js testing

if running tests in docker container, can them out host either bind-mounting directory out host (with docker-compose volumes. aware may result in strange permissions files on host) or running docker cp after tests have completed inside container, this:

# make sure directory exists on host mkdir -p build/reports  # make sure directory want copy doesn't exist on host rm -rf build/reports/something  # copy directory container host docker cp container_name:build/reports/something build/reports/something 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -