dominator-testing

Crates.iodominator-testing
lib.rsdominator-testing
version0.1.0
sourcesrc
created_at2024-07-29 19:23:19.973006
updated_at2024-07-29 19:23:19.973006
descriptionHelpers for testing dominator UIs with wasm-bindgen-test
homepagehttps://github.com/JedimEmO/dominator-testing
repositoryhttps://github.com/JedimEmO/dominator-testing
max_upload_size
id1319141
size14,854
Mathias Myrland (JedimEmO)

documentation

README

dominator-testing

Utility crate for writing tests for DOMINATOR UIs.

DOMINATOR is a framework for making high performance web applications using signals. Head over to https://github.com/Pauan/rust-dominator to learn more!

For more information on testing in the browser, check out the chapter on testing here: https://jedimemo.github.io/dominator-book/techniques_and_patterns/testing.html

Developing and testing

To run the tests locally, you need a few dependencies on your system.

First of all, you need rust. Install it following the instructions for your system at https://rustup.rs/

You also need the wasm32-unknown-unknown target:

rustup target add wasm32-unknown-unknown

You will also need a web- or chromedriver to be present. The simplest way is to install chromium, it bundles with its own chromedriver:

apt install chromium

And finally you will need the wasm-bindgen-cli tool to be able to run the in-browser tests:

cargo install wasm-bindgen-cli

Now you can run tests with the following commands:

CHROMEDRIVER=chromium.chromedriver cargo test --target wasm32-unknown-unknown
Commit count: 0

cargo fmt