nvim-oxi icon indicating copy to clipboard operation
nvim-oxi copied to clipboard

feat(snapshot): testing examples

Open zjp-CN opened this issue 1 year ago • 3 comments

  1. add testing bash scripts for examples
  2. 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

zjp-CN avatar Aug 25 '22 14:08 zjp-CN

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 update test_fn_name only

zjp-CN avatar Aug 25 '22 14:08 zjp-CN

Will you consider merging this PR?

zjp-CN avatar Aug 30 '22 14:08 zjp-CN

Sorry I have yet to review it, will try to look at it this weekend.

noib3 avatar Aug 30 '22 20:08 noib3

I'm gonna close this and put up a new PR to test examples.

zjp-CN avatar Sep 30 '22 05:09 zjp-CN