juhovh / mocha-jenkins-reporter

Mocha reporter for Jenkins style JUnit reports
MIT License
123 stars 69 forks source link

Not able to use `JENKINS_REPORTER_TEST_DIR` #81

Open ShrabaneeM opened 6 years ago

ShrabaneeM commented 6 years ago

I am getting this error while running the script with JENKINS_REPORTER_TEST_DIR:

Warning: Could not find any test files matching pattern: test

My script looks as below:

"test-jenkins": "JENKINS_REPORTER_TEST_DIR=/tests JUNIT_REPORT_PATH=/report.xml mocha --colors --reporter mocha-jenkins-reporter"

I have my test js files inside tests folder instead of test folder.

What am I doing wrong?