@provartesting/provardx-cli 0.0.5 → 0.0.7-beta

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 (60) hide show
  1. package/lib/Utility/GenericError.d.ts +11 -0
  2. package/lib/Utility/GenericError.js +26 -0
  3. package/lib/Utility/GenericError.js.map +1 -0
  4. package/lib/Utility/TestRunError.d.ts +8 -0
  5. package/lib/Utility/TestRunError.js +20 -0
  6. package/lib/Utility/TestRunError.js.map +1 -0
  7. package/lib/Utility/errorCode.d.ts +1 -1
  8. package/lib/Utility/fileSupport.d.ts +5 -0
  9. package/lib/Utility/fileSupport.js +40 -0
  10. package/lib/Utility/fileSupport.js.map +1 -1
  11. package/lib/Utility/genericErrorHandler.d.ts +10 -0
  12. package/lib/Utility/genericErrorHandler.js +22 -0
  13. package/lib/Utility/genericErrorHandler.js.map +1 -0
  14. package/lib/Utility/propertyFileValidator.js +2 -2
  15. package/lib/Utility/propertyFileValidator.js.map +1 -1
  16. package/lib/Utility/provarConfig.d.ts +2 -1
  17. package/lib/Utility/provarConfig.js.map +1 -1
  18. package/lib/Utility/sfProvarCommandResult.d.ts +3 -2
  19. package/lib/Utility/sfProvarCommandResult.js +3 -3
  20. package/lib/Utility/sfProvarCommandResult.js.map +1 -1
  21. package/lib/Utility/stringSupport.js +1 -1
  22. package/lib/Utility/stringSupport.js.map +1 -1
  23. package/lib/Utility/userSupport.d.ts +2 -1
  24. package/lib/Utility/userSupport.js +11 -1
  25. package/lib/Utility/userSupport.js.map +1 -1
  26. package/lib/commands/provar/automation/config/get.js +2 -2
  27. package/lib/commands/provar/automation/config/get.js.map +1 -1
  28. package/lib/commands/provar/automation/config/set.js +2 -2
  29. package/lib/commands/provar/automation/config/set.js.map +1 -1
  30. package/lib/commands/provar/automation/metadata/download.js +7 -5
  31. package/lib/commands/provar/automation/metadata/download.js.map +1 -1
  32. package/lib/commands/provar/automation/project/compile.d.ts +9 -0
  33. package/lib/commands/provar/automation/project/compile.js +69 -0
  34. package/lib/commands/provar/automation/project/compile.js.map +1 -0
  35. package/lib/commands/provar/automation/setup.d.ts +12 -0
  36. package/lib/commands/provar/automation/setup.js +65 -0
  37. package/lib/commands/provar/automation/setup.js.map +1 -0
  38. package/lib/commands/provar/automation/test/run.d.ts +13 -0
  39. package/lib/commands/provar/automation/test/run.js +156 -0
  40. package/lib/commands/provar/automation/test/run.js.map +1 -0
  41. package/lib/constants/commandConstants.d.ts +4 -1
  42. package/lib/constants/commandConstants.js +3 -0
  43. package/lib/constants/commandConstants.js.map +1 -1
  44. package/lib/constants/errorMessages.d.ts +5 -3
  45. package/lib/constants/errorMessages.js +4 -2
  46. package/lib/constants/errorMessages.js.map +1 -1
  47. package/lib/constants/sfCommandConstants.d.ts +2 -1
  48. package/lib/constants/sfCommandConstants.js +1 -0
  49. package/lib/constants/sfCommandConstants.js.map +1 -1
  50. package/messages/provar.automation.project.compile.md +21 -0
  51. package/messages/provar.automation.setup.md +23 -0
  52. package/messages/provar.automation.test.run.md +19 -0
  53. package/messages/provar.metadata.download.md +1 -1
  54. package/messages/sf.provar.config.generate.md +1 -1
  55. package/messages/sf.provar.config.get.md +1 -1
  56. package/messages/sf.provar.config.load.md +1 -1
  57. package/messages/sf.provar.config.set.md +1 -1
  58. package/messages/sf.provar.config.validate.md +1 -1
  59. package/oclif.manifest.json +176 -1
  60. package/package.json +15 -3
@@ -1,5 +1,56 @@
1
1
  {
2
2
  "commands": {
3
+ "provar:automation:setup": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "Download and Install Provar Automation.",
7
+ "examples": [
8
+ "<%= config.bin %> <%= command.id %>"
9
+ ],
10
+ "flags": {
11
+ "json": {
12
+ "description": "Format output as json.",
13
+ "helpGroup": "GLOBAL",
14
+ "name": "json",
15
+ "allowNo": false,
16
+ "type": "boolean"
17
+ },
18
+ "version": {
19
+ "char": "v",
20
+ "name": "version",
21
+ "summary": "Provar Automation build version number.",
22
+ "hasDynamicHelp": false,
23
+ "multiple": false,
24
+ "type": "option"
25
+ }
26
+ },
27
+ "hasDynamicHelp": false,
28
+ "hiddenAliases": [],
29
+ "id": "provar:automation:setup",
30
+ "pluginAlias": "@provartesting/provardx-cli",
31
+ "pluginName": "@provartesting/provardx-cli",
32
+ "pluginType": "core",
33
+ "strict": true,
34
+ "summary": "Download and Install Provar Automation.",
35
+ "enableJsonFlag": true,
36
+ "isESM": true,
37
+ "relativePath": [
38
+ "lib",
39
+ "commands",
40
+ "provar",
41
+ "automation",
42
+ "setup.js"
43
+ ],
44
+ "aliasPermutations": [],
45
+ "permutations": [
46
+ "provar:automation:setup",
47
+ "automation:provar:setup",
48
+ "automation:setup:provar",
49
+ "provar:setup:automation",
50
+ "setup:provar:automation",
51
+ "setup:automation:provar"
52
+ ]
53
+ },
3
54
  "provar:automation:config:generate": {
4
55
  "aliases": [],
5
56
  "args": {},
@@ -405,7 +456,131 @@
405
456
  "download:metadata:provar:automation",
406
457
  "download:metadata:automation:provar"
407
458
  ]
459
+ },
460
+ "provar:automation:project:compile": {
461
+ "aliases": [],
462
+ "args": {},
463
+ "description": "Compile PageObject and PageControl Java source files into object code.",
464
+ "examples": [
465
+ "Compile the project using the configuration set in the properties file.\n\n- <%= config.bin %> <%= command.id %>"
466
+ ],
467
+ "flags": {
468
+ "json": {
469
+ "description": "Format output as json.",
470
+ "helpGroup": "GLOBAL",
471
+ "name": "json",
472
+ "allowNo": false,
473
+ "type": "boolean"
474
+ }
475
+ },
476
+ "hasDynamicHelp": false,
477
+ "hiddenAliases": [],
478
+ "id": "provar:automation:project:compile",
479
+ "pluginAlias": "@provartesting/provardx-cli",
480
+ "pluginName": "@provartesting/provardx-cli",
481
+ "pluginType": "core",
482
+ "strict": true,
483
+ "summary": "Compile PageObject and PageControl Java source files into object code.",
484
+ "enableJsonFlag": true,
485
+ "isESM": true,
486
+ "relativePath": [
487
+ "lib",
488
+ "commands",
489
+ "provar",
490
+ "automation",
491
+ "project",
492
+ "compile.js"
493
+ ],
494
+ "aliasPermutations": [],
495
+ "permutations": [
496
+ "provar:automation:project:compile",
497
+ "automation:provar:project:compile",
498
+ "automation:project:provar:compile",
499
+ "automation:project:compile:provar",
500
+ "provar:project:automation:compile",
501
+ "project:provar:automation:compile",
502
+ "project:automation:provar:compile",
503
+ "project:automation:compile:provar",
504
+ "provar:project:compile:automation",
505
+ "project:provar:compile:automation",
506
+ "project:compile:provar:automation",
507
+ "project:compile:automation:provar",
508
+ "provar:automation:compile:project",
509
+ "automation:provar:compile:project",
510
+ "automation:compile:provar:project",
511
+ "automation:compile:project:provar",
512
+ "provar:compile:automation:project",
513
+ "compile:provar:automation:project",
514
+ "compile:automation:provar:project",
515
+ "compile:automation:project:provar",
516
+ "provar:compile:project:automation",
517
+ "compile:provar:project:automation",
518
+ "compile:project:provar:automation",
519
+ "compile:project:automation:provar"
520
+ ]
521
+ },
522
+ "provar:automation:test:run": {
523
+ "aliases": [],
524
+ "args": {},
525
+ "description": "Run the tests as specified in the loaded properties file.",
526
+ "examples": [
527
+ "<%= config.bin %> <%= command.id %>"
528
+ ],
529
+ "flags": {
530
+ "json": {
531
+ "description": "Format output as json.",
532
+ "helpGroup": "GLOBAL",
533
+ "name": "json",
534
+ "allowNo": false,
535
+ "type": "boolean"
536
+ }
537
+ },
538
+ "hasDynamicHelp": false,
539
+ "hiddenAliases": [],
540
+ "id": "provar:automation:test:run",
541
+ "pluginAlias": "@provartesting/provardx-cli",
542
+ "pluginName": "@provartesting/provardx-cli",
543
+ "pluginType": "core",
544
+ "strict": true,
545
+ "summary": "Run the tests as specified in the loaded properties file.",
546
+ "enableJsonFlag": true,
547
+ "isESM": true,
548
+ "relativePath": [
549
+ "lib",
550
+ "commands",
551
+ "provar",
552
+ "automation",
553
+ "test",
554
+ "run.js"
555
+ ],
556
+ "aliasPermutations": [],
557
+ "permutations": [
558
+ "provar:automation:test:run",
559
+ "automation:provar:test:run",
560
+ "automation:test:provar:run",
561
+ "automation:test:run:provar",
562
+ "provar:test:automation:run",
563
+ "test:provar:automation:run",
564
+ "test:automation:provar:run",
565
+ "test:automation:run:provar",
566
+ "provar:test:run:automation",
567
+ "test:provar:run:automation",
568
+ "test:run:provar:automation",
569
+ "test:run:automation:provar",
570
+ "provar:automation:run:test",
571
+ "automation:provar:run:test",
572
+ "automation:run:provar:test",
573
+ "automation:run:test:provar",
574
+ "provar:run:automation:test",
575
+ "run:provar:automation:test",
576
+ "run:automation:provar:test",
577
+ "run:automation:test:provar",
578
+ "provar:run:test:automation",
579
+ "run:provar:test:automation",
580
+ "run:test:provar:automation",
581
+ "run:test:automation:provar"
582
+ ]
408
583
  }
409
584
  },
410
- "version": "0.0.5"
585
+ "version": "0.0.7-beta"
411
586
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@provartesting/provardx-cli",
3
3
  "description": "A plugin for the Salesforce CLI to orchestrate testing activities and report quality metrics to Provar Manager",
4
- "version": "0.0.5",
4
+ "version": "0.0.7-beta",
5
5
  "license": "BSD-3-Clause",
6
6
  "dependencies": {
7
7
  "@oclif/core": "^3.18.1",
@@ -9,13 +9,19 @@
9
9
  "@salesforce/kit": "^3.0.15",
10
10
  "@salesforce/sf-plugins-core": "^7.1.4",
11
11
  "@salesforce/ts-types": "^2.0.9",
12
+ "axios": "^1.6.7",
12
13
  "cli-ux": "^6.0.9",
13
- "jsonschema": "^1.4.1"
14
+ "fast-xml-parser": "^4.3.6",
15
+ "jsonschema": "^1.4.1",
16
+ "xml-js": "^1.6.11",
17
+ "node-stream-zip": "^1.15.0",
18
+ "sync-request": "^6.1.0"
14
19
  },
15
20
  "devDependencies": {
16
21
  "@oclif/plugin-command-snapshot": "^5.0.2",
17
22
  "@salesforce/cli-plugins-testkit": "^5.1.7",
18
23
  "@salesforce/dev-scripts": "^8.3.0",
24
+ "@types/unzipper": "^0.10.9",
19
25
  "eslint-plugin-sf-plugin": "^1.17.2",
20
26
  "mochawesome": "^7.1.3",
21
27
  "oclif": "^4.3.4",
@@ -63,6 +69,12 @@
63
69
  "metadata": {
64
70
  "description": "commands to download metadata for required connections."
65
71
  }
72
+ },
73
+ "test": {
74
+ "description": "Operations related to test run."
75
+ },
76
+ "project": {
77
+ "description": "Compile the project."
66
78
  }
67
79
  }
68
80
  }
@@ -83,7 +95,7 @@
83
95
  "postpack": "shx rm -f oclif.manifest.json",
84
96
  "prepack": "sf-prepack",
85
97
  "test": "wireit",
86
- "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --reporter mochawesome",
98
+ "test:nuts": "nyc mocha \"**/*setup.nut.ts\" \"**/*generate.nut.ts\" \"**/*permission.nut.ts\" \"**/*load.nut.ts\" \"**/*validate.nut.ts\" \"**/*get.nut.ts\" \"**/*set.nut.ts\" \"**/*download.nut.ts\" \"**/*compile.nut.ts\" \"**/*run.nut.ts\" --slow 4500 --timeout 600000 --reporter mochawesome",
87
99
  "test:only": "wireit",
88
100
  "version": "oclif readme"
89
101
  },