Skip to content
Snippets Groups Projects
Commit 67aeb0d6 authored by Georges Racinet's avatar Georges Racinet
Browse files

Dev FAQ: advice to focuse on comparison in tests with Gitaly

parent 68bfa143
No related branches found
No related tags found
1 merge request!45Gitaly comparison tests: option to skip and documentation
......@@ -102,6 +102,12 @@
common code in a helper function made available for both. The question is if
it is worth the effort.
Finally, comparison tests should focus on the fact that Gitaly and HGitaly
results agree, not on what they contain. In the above example,
a comparison for `FindAllBranchNames` could simply assert equality of the
returned sets of branch names. This is a bit less cumbersome, and easier
to maintain.
### How to run the tests with coverage of the Gitaly comparison tests
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment