Hi,

For running "only basic tests" is ok an embedded MySQL database.


We use Docker containers for testing that let us add/change behaviours in the MySQL database engine

We use this settings in mifos.cnf for example (be aware that your use case could be different!) :

[mysqld]

        skip-name-resolve

        internal_tmp_disk_storage_engine=MYISAM

sql_mode ="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

        explicit_defaults_for_timestamp=1

        innodb_lru_scan_depth=256

        max_allowed_packet=1073741824

        wait_timeout=28800

        interactive_timeout=28800

        max_connections=512

        character-set-server = utf8

        collation-server = utf8_general_ci

        skip-character-set-client-handshake


Victor


On 10/2/19 1:38 p. m., Awasum Yannick wrote:
Ivan,

Integration tests run with a real MySQL server to the best of my knowledge. Will you be willing to add an embedded MySQL server for testing purposes?

Maybe send a PR to add this feature as this will benefit you and add value to other contributors.

Hi All, Is this a good proposal from Ivan? I think so. Ivan, you could go ahead and create an issue for this feature if there is no way to run an embedded MySQL database at the moment.

Thanks.
Awasum

On Wed, Oct 2, 2019 at 7:22 PM Ivan Bondarenko <[email protected] <mailto:[email protected]>> wrote:

    Hello!

    I see that integration tests fail if Mysql server is down.
    Is there any possibility to run the integration tests without
    external Mysql server?

    I have tried to run it with `env=dev` but without success.

    Thanks,
    Ivan

Reply via email to