mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-09-13 07:21:16 +00:00
Add more optimization tests (#171)
* Integrated single_test_optimization into pytest to run a basic optimization test with tolerance set to 1e-6, ensuring quick detection of deviations. * Added a long-run test (400 generations, like single_test_optimization), which can be triggered using --full-run in pytest. * Mocked PDF creation in optimization tests and added a new PDF generation test with image comparison validation. Note: Current tolerance is set to 1e-6; feedback on whether this tolerance is tight enough is welcome. --------- Co-authored-by: Normann <github@koldrack.com> Co-authored-by: Michael Osthege <michael.osthege@outlook.com>
This commit is contained in:
committed by
GitHub
parent
de9fe2ddc9
commit
3652298134
7
Makefile
7
Makefile
@@ -1,5 +1,5 @@
|
||||
# Define the targets
|
||||
.PHONY: help venv pip install dist test docker-run docs clean
|
||||
.PHONY: help venv pip install dist test test-full docker-run docs clean
|
||||
|
||||
# Default target
|
||||
all: help
|
||||
@@ -70,6 +70,11 @@ test:
|
||||
@echo "Running tests..."
|
||||
.venv/bin/pytest -vs --cov src --cov-report term-missing
|
||||
|
||||
# Target to run all tests.
|
||||
test-full:
|
||||
@echo "Running all tests..."
|
||||
.venv/bin/pytest --full-run
|
||||
|
||||
# Run entire setup on docker
|
||||
docker-run:
|
||||
@docker compose up --remove-orphans
|
||||
|
Reference in New Issue
Block a user