nvim-oxi
nvim-oxi copied to clipboard
feat(snapshot): testing examples
- add testing bash scripts for examples
- add
src/test.rs
which takes snapshots for:
- calc & mechanic: succeeded
- mlua & api: failed #54
And
- fix the mechanic example
- add mlua
vendored
feature in the absence of Lua
You can use these cmds in examples
dir:
-
cargo test
-
cargo insta test --review
to update all the snapshots (except tagged with#[ignored]
ones). -
cargo insta test --review -- test_fn_name
to updatetest_fn_name
only
Will you consider merging this PR?
Sorry I have yet to review it, will try to look at it this weekend.
I'm gonna close this and put up a new PR to test examples.