futursolo / stylist-rs

A CSS-in-Rust styling solution for WebAssembly Applications
https://crates.io/crates/stylist
MIT License
370 stars 22 forks source link

wasm target tests #27

Closed futursolo closed 3 years ago

futursolo commented 3 years ago

The current architecture is built with limiting wasm32 specific code being minimal so unit tests can run under any target.

However, there're still cases where the repository is broken under wasm32 target but test passes.

This issue aims to add some end-to-end tests that runs in the browser.

The current plan is:

  1. Unit tests and Integration style tests (in dir tests/) are preferred whenever possible as they run under any target, are much faster and wouldn't intermittently fail.
  2. Continue to limit wasm specific code minimal.
  3. Examples also serves as end-to-end test cases (tested with wasm-pack test).