diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b7a0b55f..81adb196 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -86,7 +86,13 @@ Note that `OPTUNA_DASHBOARD_DEBUG=1` makes the server will automatically restart ### Running tests, lint checks and formatters -#### Running Python unit tests +#### Running unit tests for `tslib/` + +``` +$ make tslib-test +``` + +#### Running unit tests for `python_tests/` ``` $ pytest python_tests/ @@ -147,7 +153,7 @@ Please install [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/) and $ make serve-browser-app ``` -Open http://127.0.0.1:9000/ +Open http://localhost:5173/ ## VS Code Extension diff --git a/Makefile b/Makefile index 9cfcc4b5..f44ce36a 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,11 @@ tslib: cd tslib/storage && npm i && npm run build cd tslib/react && npm i && npm run build +.PHONY: tslib-test +tslib-test: tslib + cd tslib/react/test && python generate_assets.py && npm run test + cd tslib/storage/test && python generate_assets.py && npm run test + .PHONY: serve-browser-app serve-browser-app: tslib $(RUSTLIB_OUT) cd standalone_app && npm run watch