File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,24 @@ for code coverage to be calculated successfully. After installing `XDebug`, you
34
34
## Setting Up
35
35
36
36
A number of the tests use a running database.
37
- In order to set up the database edit the details for the ` tests ` group in
38
- ** app/Config/Database.php** or ** phpunit.xml** .
37
+ The default configuration uses SQLite3 memory database, so it works if you can use SQLite3.
38
+
39
+ In order to change the database for testing, edit the details for the ` tests ` group in
40
+ ** app/Config/Database.php** or use ** .env** file.
41
+
42
+ E.g.:
43
+ ```
44
+ database.tests.hostname = localhost
45
+ database.tests.database = ci4_test
46
+ database.tests.username = root
47
+ database.tests.password = root
48
+ database.tests.DBDriver = MySQLi
49
+ database.tests.DBPrefix = db_
50
+ database.default.port = 3306
51
+ ```
52
+
39
53
Make sure that you provide a database engine that is currently running on your machine.
54
+
40
55
More details on a test database setup are in the
41
56
[ Testing Your Database] ( https://codeigniter4.github.io/CodeIgniter4/testing/database.html ) section of the documentation.
42
57
You can’t perform that action at this time.
0 commit comments