status-mobile/doc
Icaro Motta 563f1c588d
Improve test failure readability (#18049)
Problem: failed equality checks as in "(is (= expected actual))" will give a
single, long line of output that for anything but the simplest data structures
is unreadable by humans, and the output doesn't give a useful diff.

Solution: use library https://github.com/nubank/matcher-combinators and its test
directive "match?" which will pinpoint where two data structures differ. Then,
instead of "(is (= ...", use "(is (match? expected actual)". It works
beautifully.

The library offers other nice matchers, but the majority of the time match? is
sufficient.

Can we use another test runner like Kaocha? kaocha-cljs2
(https://github.com/lambdaisland/kaocha-cljs2) would be able to print better
test errors out of the box, among other features, but I have no clue if it would
work well or at all in our stack (in theory yes, but it's a larger piece of
work).
2023-12-05 17:20:54 -03:00
..
decisions docs: Fixed typos (#17749) 2023-10-30 08:06:52 +01:00
images add doc: How to catch crash on ios use xcode (#17278) 2023-09-15 12:04:11 +08:00
sign_in remove realm 2019-09-09 18:40:15 +02:00
README.md Add contribution status-go doc 2023-11-09 15:34:20 +00:00
codebase-structure-and-guidelines.md Separate doc with debug tips (#15849) 2023-05-10 10:38:59 +01:00
component-tests-overview.md feat: lint direct require quo component outside src/quo (#17828) 2023-11-07 10:21:58 +08:00
debugging.md Visual debugging of components (#17729) 2023-10-27 13:14:01 +03:00
dependencies.md Documentation updated (#14933) 2023-01-31 12:06:29 +00:00
export-icons.md Add a button to address watch screen; (#17781) 2023-11-07 16:40:24 +00:00
fdroid.md Documentation updated (#14933) 2023-01-31 12:06:29 +00:00
how-to-catch-crash-on-ios.md add doc: How to catch crash on ios use xcode (#17278) 2023-09-15 12:04:11 +08:00
how-to-launch-e2e.md docs: Fixed typos (#17749) 2023-10-30 08:06:52 +01:00
ide-setup.md Document how to auto-format Clojure files in VSCode with zprint (#17719) 2023-10-25 23:19:56 -03:00
merging-pr-process.md Docs update: required e2e 2023-09-01 15:26:26 +02:00
new-guidelines.md Improve test failure readability (#18049) 2023-12-05 17:20:54 -03:00
patching.md docs: Fixed typos (#17749) 2023-10-30 08:06:52 +01:00
pipeline_process.md Docs update: required e2e 2023-09-01 15:26:26 +02:00
pixel-perfection.md update docs & makefile for iPhone 13 (#17784) 2023-11-06 23:55:06 +05:30
post-mortem.md docs: Fixed typos (#17749) 2023-10-30 08:06:52 +01:00
pr-review-policy.md Added PR Review Policy (#16280) 2023-06-15 23:02:50 +01:00
release-checklist.md Documentation updated (#14933) 2023-01-31 12:06:29 +00:00
release-guide.md Documentation updated (#14933) 2023-01-31 12:06:29 +00:00
starting-guide.md update docs & makefile for iPhone 13 (#17784) 2023-11-06 23:55:06 +05:30
status-go-changes.md Add contribution status-go doc 2023-11-09 15:34:20 +00:00
testing.md ci: add component test (#15071) 2023-02-21 13:42:33 +08:00
troubleshooting.md Documentation updated (#14933) 2023-01-31 12:06:29 +00:00