python3 -m pip install pre-commit
pre-commit install
- End to end tests are located at tests/end2end/
cargo install wasm-pack
You need a browser installed. Run:
cd tests/end2end
wasm-pack test --{browser} --headless
where {browser}
is one of firefox
, chrome
, or safari
. For example:
cd tests/end2end
wasm-pack test --firefox --headless
To run a test suite pass it in the --test
flag.
For example, to run the csr_complete
test suite run:
cd tests/end2end
wasm-pack test --firefox --headless --test csr_complete
To run all tests with custom webdriver.json files execute tests/end2end/run.sh.
Unit tests are located at tests/src/ and on each crate.
cargo test -p leptos-fluent -p leptos-fluent-macros -p leptos-fluent-tests
cargo doc --open --no-deps
cargo install mdbook
cd book
mdbook serve --open