You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+51Lines changed: 51 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,3 +42,54 @@ When you're done, you can deactivate the virtual environment:
42
42
```bash
43
43
deactivate
44
44
```
45
+
46
+
## Add a new case
47
+
48
+
Each test case simulates a specific Docker Compose merge scenario. Follow these steps to add a new one.
49
+
50
+
PR are welcome!
51
+
52
+
### 1. Create a scenario folder
53
+
54
+
Create a new directory inside the `cases/` folder. The folder name should be descriptive of the test case (e.g., `15-ports-concat`, `17-volume-override`).
55
+
56
+
> [!NOTE]
57
+
> Folders starting with `_` (underscore) are ignored by the test runner.
58
+
59
+
### 2. Add Compose files
60
+
61
+
Inside your new folder, create your YAML files:
62
+
63
+
*`docker-compose.yaml` (Mandatory): This is the base configuration.
64
+
*`docker-compose.override.yaml`: The override file (you can name it differently, e.g., prod.yaml).
65
+
66
+
> [!NOTE]
67
+
> If you have multiple override files, they are applied in alphabetical order
68
+
> after the base file.
69
+
70
+
### 3. Generate the expected result (expected.yaml)
71
+
72
+
Instead of writing the expected result manually, you can generate it using Docker Compose.
0 commit comments