python icon indicating copy to clipboard operation
python copied to clipboard

tests: Write end-to-end tests

Open pawamoy opened this issue 1 year ago • 1 comments

With our growing number of rendering options, it is hard to make sure that changes to templates do not cause regressions. We should add end-to-end tests for all combinations of rendering options (matrix), with simple input, asserting the output stays unchanged on next runs. We could maybe use pytest inline snapshot from @15r10nk for that :wink:

pawamoy avatar Apr 20 '24 12:04 pawamoy

You can take a look here https://github.com/15r10nk/lazy-imports-lite/blob/main/tests%2Ftest_exec.py where I do end to end tests. Just to get some inspiration.

There are a lot of ways to use inline-snapshot. I'm curious how you will use it.

15r10nk avatar Apr 20 '24 14:04 15r10nk