Answer the question
In order to leave comments, you need to log in
Is duplicating code in tests a good thing?
Good afternoon, now I am writing a test for a callback that is triggered after a financial transaction.
but the steps for creating and posting the transaction itself are already described in other tests. you can even say that the transaction test is completely the same as part of the callback test code. those. one test completely includes the other. The question is: how should you copy the test, or how can you still include one in the other?
I write tests on codeception - acceptance tests.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question