From 469d1e53cb0dbf000030a43295b178bbb0f1e69e Mon Sep 17 00:00:00 2001 From: "Matt J." Date: Thu, 26 Dec 2024 13:40:18 +0100 Subject: [PATCH] chore: Add a test target to the Makefile (#993) This PR adds 3 target to the Makefile. - `make test-frontend` will run vitest tests. - `make test-backend` will run pytest tests. - `make test` will run all tests. --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 62ea790fa..fbf8f7fa5 100644 --- a/Makefile +++ b/Makefile @@ -22,3 +22,15 @@ serve-skore-ui: --host 0.0.0.0 \ --port 22140 \ --timeout-graceful-shutdown 0 + +lint: + pre-commit run --all-files + +test-frontend: + cd skore-ui && npm install + cd skore-ui && npm run test:unit + +test-backend: + cd skore && pytest tests + +test: lint test-frontend test-backend