File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 10
10
[ ![ static analysis] ( https://github.com/vjik/codeception-db-populator/workflows/static%20analysis/badge.svg )] ( https://github.com/vjik/codeception-db-populator/actions?query=workflow%3A%22static+analysis%22 )
11
11
[ ![ License] ( https://poser.pugx.org/vjik/codeception-db-populator/license )] ( /LICENSE )
12
12
13
- [ Codeception] ( https://codeception.com/ ) DB module addon for handy populate database.
14
- Load only the tables and data that are needed for the current test. This will allow you to create and run tests faster.
13
+ [ Codeception] ( https://codeception.com/ ) DB module addon that helps you to tune database populations.
14
+ So for a test you could load only needed tables or rows. As a result it dramatically reduces the total execution time.
15
15
16
16
## Requirements
17
17
@@ -28,7 +28,7 @@ composer require vjik/codeception-db-populator --dev --prefer-dist
28
28
```
29
29
## General usage
30
30
31
- Enable in suite module ` Db ` and ` DatabasePopulator ` addon:
31
+ Enable module ` Db ` and ` DatabasePopulator ` addon in the suite :
32
32
33
33
``` yml
34
34
modules :
@@ -43,9 +43,9 @@ modules:
43
43
` ` `
44
44
45
45
Create SQL dumps that contains a record of the table structure and/or the data for use in tests.
46
- Put dumps to specified in options path (for example, ` tests/_data/dumps`).
46
+ Put dumps into path, specified in options (for example, ` tests/_data/dumps`).
47
47
48
- Create row sets for populate database tables. Row sets is PHP file that returned array in format `table => rows`.
48
+ Create row sets for populate database tables. Row sets is PHP file that return array in format `table => rows`.
49
49
For example :
50
50
51
51
` ` ` php
@@ -76,7 +76,7 @@ return [
76
76
];
77
77
` ` `
78
78
79
- You can get such a file structure :
79
+ You can get structure, similar to this :
80
80
81
81
` ` `
82
82
tests/
You can’t perform that action at this time.
0 commit comments