Skip to content

Commit

Permalink
Fixed composer command line to run unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyKleyman committed Sep 14, 2023
1 parent cbb06a6 commit adb43fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .ci/static-check-unit-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ composer run-script static_check
# Run unit tests
composerCommandToRunUnitTests=(composer run-script --)
phpUnitConfigFile=$(php ./tests/ElasticApmTests/Util/runSelectPhpUnitConfigFile.php --tests-type=unit)
composerCommandToRunUnitTests=("${composerCommandToRunUnitTests[@]}" run_unit_tests_custom_config -c "${phpUnitConfigFile})
composerCommandToRunUnitTests=("${composerCommandToRunUnitTests[@]}" run_unit_tests_custom_config -c "${phpUnitConfigFile}")
if [ "${ELASTIC_APM_PHP_TESTS_AGENT_ENABLED_CONFIG_DEFAULT:?}" == "false" ]; then
composerCommandToRunUnitTests=("${composerCommandToRunUnitTests[@]}" --filter "AgentEnabledConfigUnitTest")
composerCommandToRunUnitTests=("${composerCommandToRunUnitTests[@]}" --filter AgentEnabledConfigUnitTest)
fi
echo "composerCommandToRunUnitTests: ${composerCommandToRunUnitTests[@]}"
"${composerCommandToRunUnitTests[@]}"
ls -l ./build/unit-tests-phpunit-junit.xml

Expand Down
2 changes: 1 addition & 1 deletion .ci/validate_agent_installation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function runComponentTests () {
composerCommand=("${composerCommand[@]}" --filter "${ELASTIC_APM_PHP_TESTS_FILTER}")
fi
else
composerCommand=("${composerCommand[@]}" --filter "AgentEnabledConfigComponentTest")
composerCommand=("${composerCommand[@]}" --filter AgentEnabledConfigComponentTest)
fi

local initialTimeoutInMinutes=30
Expand Down

0 comments on commit adb43fc

Please sign in to comment.