@constructive-io/cli 5.1.7 → 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.
Files changed (2) hide show
  1. package/README.md +37 -0
  2. package/package.json +7 -7
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.7",
3
+ "version": "5.1.9",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Constructive CLI",
6
6
  "main": "index.js",
@@ -46,11 +46,11 @@
46
46
  "ts-node": "^10.9.2"
47
47
  },
48
48
  "dependencies": {
49
- "@constructive-io/graphql-codegen": "^2.17.17",
49
+ "@constructive-io/graphql-codegen": "^2.17.18",
50
50
  "@constructive-io/graphql-env": "^2.8.8",
51
- "@constructive-io/graphql-explorer": "^2.10.11",
52
- "@constructive-io/graphql-server": "^2.10.11",
53
- "@pgpmjs/core": "^3.1.2",
51
+ "@constructive-io/graphql-explorer": "^2.10.12",
52
+ "@constructive-io/graphql-server": "^2.10.12",
53
+ "@pgpmjs/core": "^3.1.3",
54
54
  "@pgpmjs/logger": "^1.3.5",
55
55
  "@pgpmjs/server-utils": "^2.8.8",
56
56
  "@pgpmjs/types": "^2.12.6",
@@ -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.1.4",
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": "deb816f0fb9aad6cef1accf0dc603e016e48d335"
78
+ "gitHead": "baf8d2ffc48a6792573cd613bba0b108574b9477"
79
79
  }