A
A
alpha9172017-11-13 07:18:07
Yii
alpha917, 2017-11-13 07:18:07

Functional testing without recreating the environment from scratch, how?

Using Yii2, I need to create functional testing, but I can't figure out how to set up Codecept so that it uses all the settings from the console application.
I'm going to conduct testing on a real base, because. The main function of the application is to generate a report based on data from the database. I'm going to get data from a SQL database with a query and then compare it to the results generated by the application.
Maybe I'm using the wrong tool?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alpha917, 2017-11-16
@alpha917

As I understand it , it
is enough to specify the connection settings to the real database, and in codeception.yml specify

modules:
    config:
        Db:
            populate: false
            cleanup: false

D
Dmitry, 2017-11-13
@slo_nik

Good morning.
Maybe these articles will
help
you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question