quint icon indicating copy to clipboard operation
quint copied to clipboard

Improve our tests that use fixtures

Open bugarela opened this issue 10 months ago • 1 comments

Ideas:

  1. Format test fixture json file as suggested by @p-offtermatt in https://github.com/informalsystems/quint/pull/1421#pullrequestreview-1985582480, this would make the diffs much easier to read (currently impossible to read)
  2. Use a proper snapshot lib to handle these.

bugarela avatar Apr 08 '24 12:04 bugarela

We could take advantage of jd, which shows formatted json difference:

git show main:quint/testFixture/_1016nonConstOverride.json | jd testFixture/_1016nonConstOverride.json
@ ["table","8","id"]
- 6
+ 2

But we should first check if there are any snapshot tools - I want to avoid having to maintain the tool in house, even if its simple.

bugarela avatar Sep 09 '24 11:09 bugarela