V
V
vitaly_742020-07-17 05:28:12
Software testing
vitaly_74, 2020-07-17 05:28:12

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 question

Ask a Question

731 491 924 answers to any question