Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Enable multiprocessing support for coverage

davidmezzetti3a2bfeb203d5
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 00000000..ded22da8
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,7 @@
+[run]
+source = src/python
+concurrency = multiprocessing
+disable_warnings = no-data-collected
+
+[combine]
+disable_warnings = no-data-collected
diff --git a/Makefile b/Makefile
index 494e889a..b6f95765 100644
--- a/Makefile
+++ b/Makefile
@@ -20,4 +20,5 @@ test:
# Run tests while calculating code coverage
coverage:
- coverage run --source=${SRC_DIR} -m unittest discover -v -s ${TEST_DIR}
+ coverage run -m unittest discover -v -s ${TEST_DIR}
+ coverage combine
\ No newline at end of file