Testing phased reviews #39
Replies: 2 comments 2 replies
-
I'll have to figure out how those definitions got lost in the docs! The short answer is I think you'll want to use The difference in ( Did you see the "show inactive groups" toggle? Easy to miss, but that will show the groups where the And I totally hear you on the testing. One thing to note is that you don't have to test on a custom PR — you can test on any real PR. Just delete the test comments afterwards if you don't want them cluttering up the PR. It isn't publicly documented yet, but you are welcome to try out the local/CLI testing workflow that is under development. It's a Python package so you can do
Let me know what questions you have. Hope that helps at least a little bit! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response Dave. I did not notice the Thanks for the explanation on the groups field, there were quite a few that sounded similar without clarification in the docs. I will also look into the command line testing to see how it can supplement our proposed workflow. In a perfect world it would be great to have some type of unit testable functionality. As I was poking around the tool I really wanted a way to mock out PR states so I could make sure my all my conditional logic makes sense. In the Again, I appreciate you getting back so quickly and I will let you know if any other open questions arise in the coming week. |
Beta Was this translation helpful? Give feedback.
-
I am currently evaluating PullApprove for integration into an org I am apart of. During the evaluation process I have ran into a few open questions regarding the testing framework.
Is it possible to test a config file that is using a
phased review
type structure? My current understanding of the testing framework leads me to believe the initial reviewer approval condition would never be met. I have tested it and only the reviewergroup displays in the test result page with no mention of the approvalgroup.Q2: does the
groups.approved == groups.required
logically make sense? If we were to implement pullapprove we would end up with a fairly large number of templated groups to meet our code ownership requirements. I really do not want to write out a large set of conditionals in the approval group structure and am hoping this would fulfill the requirement.Q3: The groups list contains a
passing
andapproved
field. What is the difference in the context of the pull request.Q4: Manually testing config changes on a custom PR is very cumbersome. Is there any other way to test changes to config files or examples on how this can be integrated into a larger organization?
Beta Was this translation helpful? Give feedback.
All reactions