This is a quick tip to speed up your unit tests when using DbUnit with a MySQL database connection.

You’ll need to edit your my.cnf file, that is usually located in /etc/ or /etc/mysql folder, and simply add this:

1
innodb_flush_log_at_trx_commit = 2

Let me know if it worked for you.

Cheers.

Comments