From 85f44ea8d1f2155e6439589cf8dc81f7bef42ec8 Mon Sep 17 00:00:00 2001 From: patdyn Date: Thu, 4 Jul 2024 14:43:46 +0200 Subject: [PATCH] Add test task --- build.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/build.py b/build.py index a478684..0611cb6 100644 --- a/build.py +++ b/build.py @@ -40,18 +40,18 @@ def initialize(project): @task -def test_clj(project): +def test_clj(): run("lein test", shell=True, check=True) @task -def test_cljs(project): +def test_cljs(): run("shadow-cljs compile test", shell=True, check=True) run("node target/node-tests.js", shell=True, check=True) @task -def test_schema(project): +def test_schema(): run("lein uberjar", shell=True, check=True) run( "java -jar target/uberjar/c4k-keycloak-standalone.jar " @@ -62,6 +62,11 @@ def test_schema(project): check=True, ) +@task +def test(): + test_clj() + test_cljs() + test_schema() @task def report_frontend(project):