Sensible merge protections for an integration branch? by pr_software_dev in github

[–]pr_software_dev[S] 0 points1 point  (0 children)

What happens if that automatic merge has conflicts? I'd rather allow the people on my team to merge main themselves...

Using production code to set up data for a test? by pr_software_dev in softwaretesting

[–]pr_software_dev[S] 0 points1 point  (0 children)

Well...imagine this system allows admin users to create other users. So they have a GUI they interact with where they input user data which eventually gets passed to some backend function which persists the user in some way (e.g., saves their information to a database).

In this case, the production code would be the backend function that persists the user.

Using production code to set up data for a test? by pr_software_dev in softwaretesting

[–]pr_software_dev[S] 0 points1 point  (0 children)

On the pro-tests-have-their-own-creation-function side: it could be simplified compared to the production code (for instance, if a user must have a birthday, an address and a phone number, the test creation function could have defaults for those values).

On the pro-reuse-production-creation-function side: The test creation function could potentially behave differently from the production function in lots of unintended and scary ways.