kibana/test/scripts/jenkins_unit.sh
Dmitry Lemeshko d6aff77485
remove NODE_ENV=test (#58037)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-20 13:12:04 +01:00

16 lines
382 B
Bash
Executable file

#!/usr/bin/env bash
source test/scripts/jenkins_test_setup.sh
if [[ -z "$CODE_COVERAGE" ]] ; then
"$(FORCE_COLOR=0 yarn bin)/grunt" jenkins:unit --dev;
else
echo " -> Running jest tests with coverage"
node scripts/jest --ci --verbose --coverage
echo ""
echo ""
echo " -> Running mocha tests with coverage"
yarn run grunt "test:mochaCoverage";
echo ""
echo ""
fi