Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

How to run unit tests (Rust)?

A topic by maxcurzi created Aug 16, 2022 Views: 74
Viewing posts 1 to 1
Submitted

Did anyone successfully write and run unit tests in Rust?

I've tried to follow the instructions for wasm-bindgen

https://rustwasm.github.io/docs/wasm-bindgen/print.html#write-some-tests

but was not successful (The generated wasm-bindgen-test.js fails with a  " Error: Cannot find module 'env'" error)