@salesforce/plugin-apex 2.3.2 → 2.3.4
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.
|
@@ -53,8 +53,10 @@ class Test extends sf_plugins_core_1.SfCommand {
|
|
|
53
53
|
return testReporter.report(result, flags);
|
|
54
54
|
}
|
|
55
55
|
else {
|
|
56
|
-
//
|
|
56
|
+
// Tests were ran asynchronously or the --wait timed out.
|
|
57
|
+
// Log the proper 'apex get test' command for the user to run later
|
|
57
58
|
this.log(messages.getMessage('runTestReportCommand', [this.config.bin, result.testRunId, conn.getUsername()]));
|
|
59
|
+
this.info(messages.getMessage('runTestSyncInstructions'));
|
|
58
60
|
return result;
|
|
59
61
|
}
|
|
60
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../../src/commands/apex/run/test.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,qDAAqH;AACrH,iEAQqC;AACrC,2CAAqD;AAGrD,kDAA6D;AAC7D,0CAA8C;AAE9C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,SAAS,CAAC,CAAC;AAEhE,QAAA,eAAe,GAAG,CAAC,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,CAAC,CAAC;AAE1F,MAAM,uBAAuB,GAAG,CAAC,aAAa,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;AACxE,MAAqB,IAAK,SAAQ,2BAA2B;IAA7D;;QAkFY,4BAAuB,GAAG,IAAI,mCAAuB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../../src/commands/apex/run/test.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,qDAAqH;AACrH,iEAQqC;AACrC,2CAAqD;AAGrD,kDAA6D;AAC7D,0CAA8C;AAE9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AE,uBAAK,CAAC,OAAO,CAAC;QACzB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,2BAA2B,CAAC;KAC1D,CAAC;IACF,mBAAmB,EAAE,uBAAK,CAAC,OAAO,CAAC;QACjC,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE,CAAC,kBAAkB,CAAC;QAC7B,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,iCAAiC,CAAC;QAC/D,SAAS,EAAE,CAAC,eAAe,CAAC;KAC7B,CAAC;CACH,CAAC;AAiHJ,kDAAkD;AAClD,MAAM,aAAa,GAAG,KAAK,EACzB,UAAqB,EACrB,UAAqB,EACrB,KAAgB,EAChB,WAAqB,EACrB,SAAqB,EACD,EAAE;IACtB,IAAI,WAAW,IAAI,CAAC,UAAU,IAAI,CAAC,UAAU,EAAE,MAAM,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE;QAChF,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;KACvE;IAED,IAAI,CAAC,KAAK,IAAI,UAAU,IAAI,UAAU,CAAC,IAAI,SAAS,IAAI,SAAS,KAAK,mBAAmB,EAAE;QACzF,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;KACvE;IAED,IAAI,SAAS,EAAE;QACb,OAAO,SAAS,CAAC;KAClB;IACD,IAAI,UAAU,IAAI,UAAU,IAAI,KAAK,EAAE;QACrC,6DAAmC;KACpC;IACD,qDAA+B;AACjC,CAAC,CAAC"}
|
package/messages/runtest.md
CHANGED
|
@@ -8,7 +8,7 @@ Specify which tests to run by using the --class-names, --suite-names, or --tests
|
|
|
8
8
|
|
|
9
9
|
To see code coverage results, use the --code-coverage flag with --result-format. The output displays a high-level summary of the test run and the code coverage values for classes in your org. If you specify human-readable result format, use the --detailed-coverage flag to see detailed coverage results for each test method run.
|
|
10
10
|
|
|
11
|
-
Apex tests run asynchronously
|
|
11
|
+
By default, Apex tests run asynchronously and immediately return a test run ID. You can use the --wait flag to specify the number of minutes to wait; if the tests finish in that timeframe, the command displays the results. If the tests haven't finished by the end of the wait time, the command displays a test run ID. Use the "<%= config.bin %> apex get test --test-run-id" command to get the results.
|
|
12
12
|
|
|
13
13
|
NOTE: The testRunCoverage value (JSON and JUnit result formats) is a percentage of the covered lines and total lines from all the Apex classes evaluated by the tests in this run.
|
|
14
14
|
|
|
@@ -104,6 +104,10 @@ Display detailed code coverage per test.
|
|
|
104
104
|
|
|
105
105
|
Run "%s apex get test -i %s -o %s" to retrieve test results
|
|
106
106
|
|
|
107
|
+
# runTestSyncInstructions
|
|
108
|
+
|
|
109
|
+
Run with --synchronous or increase --wait timeout to wait for results.
|
|
110
|
+
|
|
107
111
|
# syncClassErr
|
|
108
112
|
|
|
109
113
|
Synchronous test runs can include test methods from only one Apex class. Omit the --synchronous flag or include tests from only one class
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.3.
|
|
2
|
+
"version": "2.3.4",
|
|
3
3
|
"commands": {
|
|
4
4
|
"apex:run": {
|
|
5
5
|
"id": "apex:run",
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
"apex:run:test": {
|
|
354
354
|
"id": "apex:run:test",
|
|
355
355
|
"summary": "Invoke Apex tests in an org.",
|
|
356
|
-
"description": "Specify which tests to run by using the --class-names, --suite-names, or --tests flags. Alternatively, use the --test-level flag to run all the tests in your org, local tests, or specified tests.\n\nTo see code coverage results, use the --code-coverage flag with --result-format. The output displays a high-level summary of the test run and the code coverage values for classes in your org. If you specify human-readable result format, use the --detailed-coverage flag to see detailed coverage results for each test method run.\n\
|
|
356
|
+
"description": "Specify which tests to run by using the --class-names, --suite-names, or --tests flags. Alternatively, use the --test-level flag to run all the tests in your org, local tests, or specified tests.\n\nTo see code coverage results, use the --code-coverage flag with --result-format. The output displays a high-level summary of the test run and the code coverage values for classes in your org. If you specify human-readable result format, use the --detailed-coverage flag to see detailed coverage results for each test method run.\n\nBy default, Apex tests run asynchronously and immediately return a test run ID. You can use the --wait flag to specify the number of minutes to wait; if the tests finish in that timeframe, the command displays the results. If the tests haven't finished by the end of the wait time, the command displays a test run ID. Use the \"<%= config.bin %> apex get test --test-run-id\" command to get the results.\n\nNOTE: The testRunCoverage value (JSON and JUnit result formats) is a percentage of the covered lines and total lines from all the Apex classes evaluated by the tests in this run.",
|
|
357
357
|
"strict": true,
|
|
358
358
|
"pluginName": "@salesforce/plugin-apex",
|
|
359
359
|
"pluginAlias": "@salesforce/plugin-apex",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-apex",
|
|
3
3
|
"description": "Apex commands",
|
|
4
|
-
"version": "2.3.
|
|
4
|
+
"version": "2.3.4",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"main": "lib/index.js",
|
|
@@ -9,20 +9,22 @@
|
|
|
9
9
|
"@oclif/core": "^2.8.5",
|
|
10
10
|
"@salesforce/apex-node": "^1.6.2",
|
|
11
11
|
"@salesforce/core": "^4.1.0",
|
|
12
|
-
"@salesforce/sf-plugins-core": "^3.
|
|
12
|
+
"@salesforce/sf-plugins-core": "^3.1.4",
|
|
13
13
|
"chalk": "^4.1.0",
|
|
14
14
|
"tslib": "^2"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@oclif/plugin-command-snapshot": "^4.0.2",
|
|
18
18
|
"@oclif/plugin-help": "^5",
|
|
19
|
+
"@salesforce/cli-plugins-testkit": "^4.0.1",
|
|
19
20
|
"@salesforce/dev-config": "^4.0.1",
|
|
20
21
|
"@salesforce/dev-scripts": "^5.4.2",
|
|
21
|
-
"@salesforce/plugin-command-reference": "^3.0.
|
|
22
|
+
"@salesforce/plugin-command-reference": "^3.0.9",
|
|
23
|
+
"@salesforce/plugin-deploy-retrieve": "^1.11.3",
|
|
22
24
|
"@salesforce/prettier-config": "^0.0.3",
|
|
23
25
|
"@salesforce/ts-sinon": "^1.4.8",
|
|
24
26
|
"@salesforce/ts-types": "^2.0.3",
|
|
25
|
-
"@swc/core": "
|
|
27
|
+
"@swc/core": "1.3.30",
|
|
26
28
|
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
27
29
|
"@typescript-eslint/parser": "^5.59.7",
|
|
28
30
|
"chai": "^4.3.7",
|
|
@@ -97,7 +99,8 @@
|
|
|
97
99
|
"devPlugins": [
|
|
98
100
|
"@oclif/plugin-help",
|
|
99
101
|
"@oclif/plugin-command-snapshot",
|
|
100
|
-
"@salesforce/plugin-command-reference"
|
|
102
|
+
"@salesforce/plugin-command-reference",
|
|
103
|
+
"@salesforce/plugin-deploy-retrieve"
|
|
101
104
|
]
|
|
102
105
|
},
|
|
103
106
|
"repository": "salesforcecli/plugin-apex",
|
|
@@ -229,7 +232,7 @@
|
|
|
229
232
|
}
|
|
230
233
|
},
|
|
231
234
|
"sfdx": {
|
|
232
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/2.3.
|
|
233
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/2.3.
|
|
235
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/2.3.4.crt",
|
|
236
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/2.3.4.sig"
|
|
234
237
|
}
|
|
235
238
|
}
|