Skip to content

Latest commit

 

History

History
70 lines (48 loc) · 1.02 KB

CONTRIBUTING.md

File metadata and controls

70 lines (48 loc) · 1.02 KB

Contributing

Setup

python3 -m pip install pre-commit
pre-commit install

Tests

End to end tests

  • 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

Unit tests are located at tests/src/ and on each crate.

cargo test -p leptos-fluent -p leptos-fluent-macros -p leptos-fluent-tests

Documentation

Reference

cargo doc --open --no-deps

Book

cargo install mdbook
cd book
mdbook serve --open