S
S
sorry_i_noob2019-02-07 19:17:26
Codeception
sorry_i_noob, 2019-02-07 19:17:26

How to roll back actions in codeception if the test fails?

Hello. I'm just getting started with codeception and testing in general. So please excuse me if this is a dumb question.
I need to test a feature in my account. But for this you need to enter your personal account. And for this, in turn, register a user.
If the feature does not work correctly and the test fails, how can I automatically remove the user from the database? So that every time I start testing, I don’t get one more user.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2019-02-07
@Maksclub

You can set your own behavior if the test fails:
https://github.com/Codeception/Codeception/blob/2....
https://codeception.com/docs-2.0/03-ModulesAndHelp...
Documentation is presented as sites open for indexing, Google / Yandex has excellent indexing algorithms and allows you to search for documents (pages) by combinations that are not always in the same sequence

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question