mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[coverage] do not collect stats for mocha (#87859)
This commit is contained in:
parent
1927556729
commit
b10be9ec6f
5 changed files with 0 additions and 28 deletions
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
EXTRACT_START_DIR=tmp/extracted_coverage
|
||||
EXTRACT_END_DIR=target/kibana-coverage
|
||||
COMBINED_EXRACT_DIR=/${EXTRACT_START_DIR}/${EXTRACT_END_DIR}
|
||||
|
||||
|
||||
echo "### Copy mocha reports"
|
||||
mkdir -p $EXTRACT_END_DIR/mocha-combined
|
||||
cp -r $COMBINED_EXRACT_DIR/mocha/. $EXTRACT_END_DIR/mocha-combined/
|
|
@ -40,11 +40,5 @@ for x in jest functional; do
|
|||
node scripts/ingest_coverage.js --verbose --path ${COVERAGE_SUMMARY_FILE} --vcsInfoPath ./VCS_INFO.txt --teamAssignmentsPath $TEAM_ASSIGN_PATH
|
||||
done
|
||||
|
||||
# Need to override COVERAGE_INGESTION_KIBANA_ROOT since mocha json file has original intake worker path
|
||||
COVERAGE_SUMMARY_FILE=target/kibana-coverage/mocha-combined/coverage-summary.json
|
||||
export COVERAGE_INGESTION_KIBANA_ROOT=/dev/shm/workspace/kibana
|
||||
|
||||
node scripts/ingest_coverage.js --verbose --path ${COVERAGE_SUMMARY_FILE} --vcsInfoPath ./VCS_INFO.txt --teamAssignmentsPath $TEAM_ASSIGN_PATH
|
||||
|
||||
echo "### Ingesting Code Coverage - Complete"
|
||||
echo ""
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
source src/dev/ci_setup/setup_env.sh
|
||||
|
||||
yarn nyc --reporter=html --reporter=json-summary --report-dir=./target/kibana-coverage/mocha node scripts/mocha
|
|
@ -44,8 +44,4 @@ else
|
|||
rename_coverage_file "oss-integration"
|
||||
echo ""
|
||||
echo ""
|
||||
echo " -> Running mocha tests with coverage"
|
||||
./test/scripts/checks/mocha_coverage.sh
|
||||
echo ""
|
||||
echo ""
|
||||
fi
|
||||
|
|
|
@ -60,7 +60,6 @@ def uploadCoverageHtmls(prefix) {
|
|||
[
|
||||
'target/kibana-coverage/functional-combined',
|
||||
'target/kibana-coverage/jest-combined',
|
||||
'target/kibana-coverage/mocha-combined',
|
||||
].each { uploadWithVault(prefix, it) }
|
||||
}
|
||||
|
||||
|
@ -78,7 +77,6 @@ def prokLinks(title) {
|
|||
kibanaPipeline.bash('''
|
||||
cat << EOF > src/dev/code_coverage/www/index_partial_2.html
|
||||
<a class="nav-link" href="https://kibana-coverage.elastic.dev/${TIME_STAMP}/jest-combined/index.html">Latest Jest</a>
|
||||
<a class="nav-link" href="https://kibana-coverage.elastic.dev/${TIME_STAMP}/mocha-combined/index.html">Latest Mocha</a>
|
||||
<a class="nav-link" href="https://kibana-coverage.elastic.dev/${TIME_STAMP}/functional-combined/index.html">Latest FTR</a>
|
||||
</nav>
|
||||
</div>
|
||||
|
@ -151,7 +149,6 @@ def generateReports(title) {
|
|||
. src/dev/code_coverage/shell_scripts/extract_archives.sh
|
||||
. src/dev/code_coverage/shell_scripts/fix_html_reports_parallel.sh
|
||||
. src/dev/code_coverage/shell_scripts/merge_jest_and_functional.sh
|
||||
. src/dev/code_coverage/shell_scripts/copy_mocha_reports.sh
|
||||
# zip combined reports
|
||||
tar -czf kibana-coverage.tar.gz target/kibana-coverage/**/*
|
||||
""", title)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue