@constructive-io/cli 5.1.8 → 5.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -261,6 +261,43 @@ cnc kill
|
|
|
261
261
|
cnc kill --no-drop
|
|
262
262
|
```
|
|
263
263
|
|
|
264
|
+
### Testing
|
|
265
|
+
|
|
266
|
+
#### `cnc test-packages`
|
|
267
|
+
|
|
268
|
+
Run integration tests on all modules in a workspace. Creates a temporary database for each module, deploys, and optionally runs verify/revert/deploy cycles.
|
|
269
|
+
|
|
270
|
+
```bash
|
|
271
|
+
# Test all modules in workspace (deploy only)
|
|
272
|
+
cnc test-packages
|
|
273
|
+
|
|
274
|
+
# Run full deploy/verify/revert/deploy cycle
|
|
275
|
+
cnc test-packages --full-cycle
|
|
276
|
+
|
|
277
|
+
# Stop on first failure
|
|
278
|
+
cnc test-packages --stop-on-fail
|
|
279
|
+
|
|
280
|
+
# Exclude specific modules
|
|
281
|
+
cnc test-packages --exclude my-module,another-module
|
|
282
|
+
|
|
283
|
+
# Combine options
|
|
284
|
+
cnc test-packages --full-cycle --stop-on-fail --exclude legacy-module
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
**Options:**
|
|
288
|
+
|
|
289
|
+
- `--full-cycle` - Run full deploy/verify/revert/deploy cycle (default: deploy only)
|
|
290
|
+
- `--stop-on-fail` - Stop testing immediately when a module fails
|
|
291
|
+
- `--exclude <modules>` - Comma-separated module names to exclude
|
|
292
|
+
- `--cwd <directory>` - Working directory (default: current directory)
|
|
293
|
+
|
|
294
|
+
**Notes:**
|
|
295
|
+
|
|
296
|
+
- Discovers modules from workspace `pgpm.json` configuration
|
|
297
|
+
- Creates isolated test databases (`test_<module_name>`) for each module
|
|
298
|
+
- Automatically cleans up test databases after each test
|
|
299
|
+
- Uses internal APIs for deploy/verify/revert operations
|
|
300
|
+
|
|
264
301
|
## 💡 Common Workflows
|
|
265
302
|
|
|
266
303
|
### Starting a New Project
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/cli",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.9",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive CLI",
|
|
6
6
|
"main": "index.js",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"minimist": "^1.2.8",
|
|
61
61
|
"pg-cache": "^1.6.8",
|
|
62
62
|
"pg-env": "^1.2.4",
|
|
63
|
-
"pgpm": "^1.
|
|
63
|
+
"pgpm": "^1.2.0",
|
|
64
64
|
"shelljs": "^0.10.0",
|
|
65
65
|
"yanse": "^0.1.8"
|
|
66
66
|
},
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"postgres",
|
|
76
76
|
"graphile"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "baf8d2ffc48a6792573cd613bba0b108574b9477"
|
|
79
79
|
}
|