Skip to content

Commit

Permalink
fix test reporting (#1411)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Aug 17, 2023
1 parent cf1bc91 commit ec7722f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,16 @@ runRspec(){
if [ -n "${case}" ]; then
bn="$(basename ${case} _spec.rb)/"
fi
# If working on an isolated environment then copy the file to
# the original location
TEST_REPORT_DIR=spec/junit-reports/${JUNIT_PREFIX}${bn}
if [ -n "$APP_PATH" ] ; then
TEST_REPORT_DIR=$APP_PATH/$TEST_REPORT_DIR
mkdir -p $TEST_REPORT_DIR
fi
bundle exec rspec \
-f progress \
-r yarjuf -f JUnit -o spec/junit-reports/${JUNIT_PREFIX}${bn}ruby-agent-junit.xml \
-r yarjuf -f JUnit -o ${TEST_REPORT_DIR}ruby-agent-junit.xml \
${case}
}
specific_spec=$1
Expand Down

0 comments on commit ec7722f

Please sign in to comment.