mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-08 13:36:32 +00:00
Fix SonarCloud coverage XML file (#8177)
* Fix SonarCloud coverage XML file * Add minor change on Python code * Update coverage config * Update coverage config * Remove test output * Remove sonar property * Update Makefile
This commit is contained in:
parent
e14a3e213b
commit
fbc7b245c1
4
Makefile
4
Makefile
@ -98,7 +98,7 @@ run_python_tests: ## Run all Python tests with coverage
|
||||
coverage: ## Run all Python tests and generate the coverage XML report
|
||||
$(MAKE) run_python_tests
|
||||
coverage xml --rcfile ingestion/.coveragerc -o ingestion/coverage.xml || true
|
||||
sed -e 's/$(shell python -c "import site; import os; from pathlib import Path; print(os.path.relpath(site.getsitepackages()[0], str(Path.cwd())).replace('/','\/'))")/src/g' ingestion/coverage.xml >> ingestion/ci-coverage.xml || true
|
||||
sed -e "s/$(shell python -c "import site; import os; from pathlib import Path; print(os.path.relpath(site.getsitepackages()[0], str(Path.cwd())).replace('/','\/'))")/src/g" ingestion/coverage.xml >> ingestion/ci-coverage.xml
|
||||
|
||||
.PHONY: sonar_ingestion
|
||||
sonar_ingestion: ## Run the Sonar analysis based on the tests results and push it to SonarCloud
|
||||
@ -121,7 +121,7 @@ run_apis_tests: ## Run the openmetadata airflow apis tests
|
||||
coverage_apis: ## Run the python tests on openmetadata-airflow-apis
|
||||
$(MAKE) run_apis_tests
|
||||
coverage xml --rcfile openmetadata-airflow-apis/.coveragerc -o openmetadata-airflow-apis/coverage.xml
|
||||
sed -e 's/$(shell python -c "import site; import os; from pathlib import Path; print(os.path.relpath(site.getsitepackages()[0], str(Path.cwd())).replace('/','\/'))")\///g' openmetadata-airflow-apis/coverage.xml >> openmetadata-airflow-apis/ci-coverage.xml
|
||||
sed -e "s/$(shell python -c "import site; import os; from pathlib import Path; print(os.path.relpath(site.getsitepackages()[0], str(Path.cwd())).replace('/','\/'))")\///g" openmetadata-airflow-apis/coverage.xml >> openmetadata-airflow-apis/ci-coverage.xml
|
||||
|
||||
## Ingestion publish
|
||||
.PHONY: publish
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user