aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorgabrielgio <gabriel.giovanini@pm.me>2022-03-25 22:28:51 +0100
committergabrielgio <gabriel.giovanini@pm.me>2022-03-25 22:28:51 +0100
commitb92dd0a4c59287b661759d3cdcd6f62e1afcd815 (patch)
tree934350cd4d080907337238817f75f55e964f77f2 /Makefile
parent34af714c51173075d3a0ac7148ce60334d248aba (diff)
downloadgenpass-b92dd0a4c59287b661759d3cdcd6f62e1afcd815.tar.gz
genpass-b92dd0a4c59287b661759d3cdcd6f62e1afcd815.tar.bz2
genpass-b92dd0a4c59287b661759d3cdcd6f62e1afcd815.zip
feat: Add test to generate function
Add testing for `generate` rust function. That function is pretty much the whole bussiness logic of the application and as far as I can see the only one worth testing.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5ae5e87..795de5c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,15 @@
-all: cargo
+all: wasm
cd www && \
npm install && \
npm run build
-serve: cargo
+serve: wasm
cd www && \
npm install && \
npm run start
-cargo:
+wasm:
wasm-pack build --no-typescript --release
+
+test:
+ wasm-pack test --headless --firefox