@salesforce/plugin-apex 0.11.0 → 1.0.0
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/lib/commands/force/apex/execute.js +26 -9
- package/lib/commands/force/apex/execute.js.map +1 -1
- package/lib/commands/force/apex/log/get.js +17 -3
- package/lib/commands/force/apex/log/get.js.map +1 -1
- package/lib/commands/force/apex/log/list.js +22 -2
- package/lib/commands/force/apex/log/list.js.map +1 -1
- package/lib/commands/force/apex/log/tail.js +13 -3
- package/lib/commands/force/apex/log/tail.js.map +1 -1
- package/lib/commands/force/apex/test/report.js +30 -6
- package/lib/commands/force/apex/test/report.js.map +1 -1
- package/lib/commands/force/apex/test/run.js +40 -7
- package/lib/commands/force/apex/test/run.js.map +1 -1
- package/messages/report.json +2 -1
- package/oclif.manifest.json +1 -1
- package/package.json +19 -23
- package/yarn.lock +3260 -832
|
@@ -12,12 +12,23 @@ const command_1 = require("@salesforce/command");
|
|
|
12
12
|
const core_1 = require("@salesforce/core");
|
|
13
13
|
const utils_1 = require("../../../utils");
|
|
14
14
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
15
|
-
const messages = core_1.Messages.
|
|
15
|
+
const messages = core_1.Messages.load('@salesforce/plugin-apex', 'execute', [
|
|
16
|
+
'apexCodeFileDescription',
|
|
17
|
+
'commandDescription',
|
|
18
|
+
'executeCompileSuccess',
|
|
19
|
+
'executeRuntimeSuccess',
|
|
20
|
+
'logLevelDescription',
|
|
21
|
+
'logLevelLongDescription',
|
|
22
|
+
'longDescription'
|
|
23
|
+
]);
|
|
16
24
|
class Execute extends command_1.SfdxCommand {
|
|
17
25
|
run() {
|
|
18
26
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
19
27
|
try {
|
|
20
28
|
// org is guaranteed by requiresUsername field
|
|
29
|
+
if (!this.org) {
|
|
30
|
+
throw Error('Unable to get connection from Org.');
|
|
31
|
+
}
|
|
21
32
|
const conn = this.org.getConnection();
|
|
22
33
|
const exec = new apex_node_1.ExecuteService(conn);
|
|
23
34
|
const execAnonOptions = Object.assign({}, (this.flags.apexcodefile
|
|
@@ -35,20 +46,23 @@ class Execute extends command_1.SfdxCommand {
|
|
|
35
46
|
formatDefault(response) {
|
|
36
47
|
let outputText = '';
|
|
37
48
|
if (response.success) {
|
|
38
|
-
outputText += `${utils_1.colorSuccess(messages.getMessage('executeCompileSuccess'))}\n`;
|
|
39
|
-
outputText += `${utils_1.colorSuccess(messages.getMessage('executeRuntimeSuccess'))}\n`;
|
|
49
|
+
outputText += `${(0, utils_1.colorSuccess)(messages.getMessage('executeCompileSuccess'))}\n`;
|
|
50
|
+
outputText += `${(0, utils_1.colorSuccess)(messages.getMessage('executeRuntimeSuccess'))}\n`;
|
|
40
51
|
outputText += `\n${response.logs}`;
|
|
41
52
|
}
|
|
42
53
|
else {
|
|
54
|
+
if (!response.diagnostic) {
|
|
55
|
+
throw Error('No diagnostic property found on response.');
|
|
56
|
+
}
|
|
43
57
|
const diagnostic = response.diagnostic[0];
|
|
44
58
|
if (!response.compiled) {
|
|
45
|
-
outputText += utils_1.colorError(`Error: Line: ${diagnostic.lineNumber}, Column: ${diagnostic.columnNumber}\n`);
|
|
46
|
-
outputText += utils_1.colorError(`Error: ${diagnostic.compileProblem}\n`);
|
|
59
|
+
outputText += (0, utils_1.colorError)(`Error: Line: ${diagnostic.lineNumber}, Column: ${diagnostic.columnNumber}\n`);
|
|
60
|
+
outputText += (0, utils_1.colorError)(`Error: ${diagnostic.compileProblem}\n`);
|
|
47
61
|
}
|
|
48
62
|
else {
|
|
49
|
-
outputText += `${utils_1.colorSuccess(messages.getMessage('executeCompileSuccess'))}\n`;
|
|
50
|
-
outputText += utils_1.colorError(`Error: ${diagnostic.exceptionMessage}\n`);
|
|
51
|
-
outputText += utils_1.colorError(`Error: ${diagnostic.exceptionStackTrace}\n`);
|
|
63
|
+
outputText += `${(0, utils_1.colorSuccess)(messages.getMessage('executeCompileSuccess'))}\n`;
|
|
64
|
+
outputText += (0, utils_1.colorError)(`Error: ${diagnostic.exceptionMessage}\n`);
|
|
65
|
+
outputText += (0, utils_1.colorError)(`Error: ${diagnostic.exceptionStackTrace}\n`);
|
|
52
66
|
outputText += `\n${response.logs}`;
|
|
53
67
|
}
|
|
54
68
|
}
|
|
@@ -56,6 +70,8 @@ class Execute extends command_1.SfdxCommand {
|
|
|
56
70
|
}
|
|
57
71
|
formatJson(response) {
|
|
58
72
|
const diagnostic = typeof response.diagnostic !== 'undefined';
|
|
73
|
+
// Allow assumption below that diagnostic array is populated.
|
|
74
|
+
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
59
75
|
const formattedResponse = {
|
|
60
76
|
success: response.success,
|
|
61
77
|
compiled: response.compiled,
|
|
@@ -70,11 +86,12 @@ class Execute extends command_1.SfdxCommand {
|
|
|
70
86
|
column: diagnostic ? response.diagnostic[0].columnNumber : -1,
|
|
71
87
|
logs: response.logs
|
|
72
88
|
};
|
|
89
|
+
/* eslint-emable @typescript-eslint/no-non-null-assertion */
|
|
73
90
|
return formattedResponse;
|
|
74
91
|
}
|
|
75
92
|
}
|
|
76
93
|
exports.default = Execute;
|
|
77
|
-
Execute.description = utils_1.buildDescription(messages.getMessage('commandDescription'), messages.getMessage('longDescription'));
|
|
94
|
+
Execute.description = (0, utils_1.buildDescription)(messages.getMessage('commandDescription'), messages.getMessage('longDescription'));
|
|
78
95
|
Execute.longDescription = messages.getMessage('longDescription');
|
|
79
96
|
Execute.examples = [
|
|
80
97
|
`$ sfdx force:apex:execute -u testusername@salesforce.org -f ~/test.apex`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../src/commands/force/apex/execute.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,qDAI+B;AAC/B,iDAAyD;AACzD,2CAA4C;AAE5C,0CAKwB;AAExB,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM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AAC;AAElB,mBAAW,GAAG;IACnC,YAAY,EAAE,eAAK,CAAC,QAAQ,CAAC;QAC3B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,yBAAyB,CAAC;KAC5D,CAAC;IACF,QAAQ,EAAE,eAAK,CAAC,IAAI,CAAC;QACnB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC;QACvD,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,yBAAyB,CAAC;QAC/D,OAAO,EAAE,MAAM;QACf,OAAO,EAAE,iBAAS;KACnB,CAAC;IACF,UAAU,EAAE,eAAK,CAAC,OAAO,EAAE;CAC5B,CAAC"}
|
|
@@ -12,11 +12,25 @@ const command_1 = require("@salesforce/command");
|
|
|
12
12
|
const core_1 = require("@salesforce/core");
|
|
13
13
|
const utils_1 = require("../../../../utils");
|
|
14
14
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
15
|
-
const messages = core_1.Messages.
|
|
15
|
+
const messages = core_1.Messages.load('@salesforce/plugin-apex', 'get', [
|
|
16
|
+
'commandDescription',
|
|
17
|
+
'jsonDescription',
|
|
18
|
+
'logIDDescription',
|
|
19
|
+
'logLevelDescription',
|
|
20
|
+
'logLevelLongDescription',
|
|
21
|
+
'longDescription',
|
|
22
|
+
'noResultsFound',
|
|
23
|
+
'numberDescription',
|
|
24
|
+
'outputDirDescription',
|
|
25
|
+
'outputDirLongDescription'
|
|
26
|
+
]);
|
|
16
27
|
class Get extends command_1.SfdxCommand {
|
|
17
28
|
run() {
|
|
18
29
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
19
30
|
try {
|
|
31
|
+
if (!this.org) {
|
|
32
|
+
throw Error('Unable to get connection from Org.');
|
|
33
|
+
}
|
|
20
34
|
// org is guaranteed by requiresUsername field
|
|
21
35
|
const conn = this.org.getConnection();
|
|
22
36
|
const logService = new apex_node_1.LogService(conn);
|
|
@@ -37,7 +51,7 @@ class Get extends command_1.SfdxCommand {
|
|
|
37
51
|
return logResults.map(logResult => logResult.log);
|
|
38
52
|
}
|
|
39
53
|
const parsedLogs = logResults.map(logResult => {
|
|
40
|
-
const colored = utils_1.colorLogs(logResult.log);
|
|
54
|
+
const colored = (0, utils_1.colorLogs)(logResult.log);
|
|
41
55
|
this.ux.log(colored);
|
|
42
56
|
return { log: logResult.log };
|
|
43
57
|
});
|
|
@@ -51,7 +65,7 @@ class Get extends command_1.SfdxCommand {
|
|
|
51
65
|
}
|
|
52
66
|
exports.default = Get;
|
|
53
67
|
Get.requiresUsername = true;
|
|
54
|
-
Get.description = utils_1.buildDescription(messages.getMessage('commandDescription'), messages.getMessage('longDescription'));
|
|
68
|
+
Get.description = (0, utils_1.buildDescription)(messages.getMessage('commandDescription'), messages.getMessage('longDescription'));
|
|
55
69
|
Get.longDescription = messages.getMessage('longDescription');
|
|
56
70
|
Get.examples = [
|
|
57
71
|
`$ sfdx force:apex:log:get -i <log id>`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../src/commands/force/apex/log/get.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,qDAAmD;AACnD,iDAAyD;AACzD,2CAA4C;AAE5C,6CAA2E;AAE3E,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../src/commands/force/apex/log/get.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,qDAAmD;AACnD,iDAAyD;AACzD,2CAA4C;AAE5C,6CAA2E;AAE3E,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,IAAI,CAAC,yBAAyB,EAAE,KAAK,EAAE;IAC/D,oBAAoB;IACpB,iBAAiB;IACjB,kBAAkB;IAClB,qBAAqB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,CAAC,UAAU,CAAC,kBAAkB,CAAC;KACrD,CAAC;IACF,MAAM,EAAE,eAAK,CAAC,MAAM,CAAC;QACnB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,EAAE;QACP,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC;KACtD,CAAC;IACF,SAAS,EAAE,eAAK,CAAC,MAAM,CAAC;QACtB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC;QACxD,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC;KACjE,CAAC;CACH,CAAC"}
|
|
@@ -12,11 +12,31 @@ const command_1 = require("@salesforce/command");
|
|
|
12
12
|
const core_1 = require("@salesforce/core");
|
|
13
13
|
const utils_1 = require("../../../../utils");
|
|
14
14
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
15
|
-
const messages = core_1.Messages.
|
|
15
|
+
const messages = core_1.Messages.load('@salesforce/plugin-apex', 'list', [
|
|
16
|
+
'appColHeader',
|
|
17
|
+
'commandDescription',
|
|
18
|
+
'durationColHeader',
|
|
19
|
+
'idColHeader',
|
|
20
|
+
'jsonDescription',
|
|
21
|
+
'locationColHeader',
|
|
22
|
+
'logLevelDescription',
|
|
23
|
+
'logLevelLongDescription',
|
|
24
|
+
'longDescription',
|
|
25
|
+
'noDebugLogsFound',
|
|
26
|
+
'operationColHeader',
|
|
27
|
+
'requestColHeader',
|
|
28
|
+
'sizeColHeader',
|
|
29
|
+
'statusColHeader',
|
|
30
|
+
'timeColHeader',
|
|
31
|
+
'userColHeader'
|
|
32
|
+
]);
|
|
16
33
|
class List extends command_1.SfdxCommand {
|
|
17
34
|
run() {
|
|
18
35
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
19
36
|
try {
|
|
37
|
+
if (!this.org) {
|
|
38
|
+
throw Error('Unable to get connection from Org.');
|
|
39
|
+
}
|
|
20
40
|
// org is guaranteed by requiresUsername field
|
|
21
41
|
const conn = this.org.getConnection();
|
|
22
42
|
const logService = new apex_node_1.LogService(conn);
|
|
@@ -113,7 +133,7 @@ class List extends command_1.SfdxCommand {
|
|
|
113
133
|
}
|
|
114
134
|
exports.default = List;
|
|
115
135
|
List.requiresUsername = true;
|
|
116
|
-
List.description = utils_1.buildDescription(messages.getMessage('commandDescription'), messages.getMessage('longDescription'));
|
|
136
|
+
List.description = (0, utils_1.buildDescription)(messages.getMessage('commandDescription'), messages.getMessage('longDescription'));
|
|
117
137
|
List.longDescription = messages.getMessage('longDescription');
|
|
118
138
|
List.examples = [
|
|
119
139
|
`$ sfdx force:apex:log:list`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../src/commands/force/apex/log/list.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,qDAA0E;AAC1E,iDAAyD;AACzD,2CAA4C;AAC5C,6CAAgE;AAEhE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../src/commands/force/apex/log/list.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,qDAA0E;AAC1E,iDAAyD;AACzD,2CAA4C;AAC5C,6CAAgE;AAEhE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,IAAI,CAAC,yBAAyB,EAAE,MAAM,EAAE;IAChE,cAAc;IACd,oBAAoB;IACpB,mBAAmB;IACnB,aAAa;IACb,iBAAiB;IACjB,mBAAmB;IACnB,qBAAqB;IACrB,yBAAyB;IACzB,iBAAiB;IACjB,kBAAkB;IAClB,oBAAoB;IACpB,kBAAkB;IAClB,eAAe;IACf,iBAAiB;IACjB,eAAe;IACf,eAAe;CAChB,CAAC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U,CAAC,yBAAyB,CAAC;QAC/D,OAAO,EAAE,MAAM;QACf,OAAO,EAAE,iBAAS;KACnB,CAAC;IACF,UAAU,EAAE,eAAK,CAAC,OAAO,EAAE;CAC5B,CAAC"}
|
|
@@ -13,7 +13,17 @@ const core_1 = require("@salesforce/core");
|
|
|
13
13
|
const utils_1 = require("../../../../utils");
|
|
14
14
|
const legacyColorization_1 = require("../../../../legacyColorization");
|
|
15
15
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
16
|
-
const messages = core_1.Messages.
|
|
16
|
+
const messages = core_1.Messages.load('@salesforce/plugin-apex', 'tail', [
|
|
17
|
+
'colorDescription',
|
|
18
|
+
'commandDescription',
|
|
19
|
+
'debugLevelDescription',
|
|
20
|
+
'finishedTailing',
|
|
21
|
+
'jsonDescription',
|
|
22
|
+
'logLevelDescription',
|
|
23
|
+
'logLevelLongDescription',
|
|
24
|
+
'longDescription',
|
|
25
|
+
'skipTraceFlagDescription'
|
|
26
|
+
]);
|
|
17
27
|
class Tail extends command_1.SfdxCommand {
|
|
18
28
|
run() {
|
|
19
29
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -43,7 +53,7 @@ class Tail extends command_1.SfdxCommand {
|
|
|
43
53
|
});
|
|
44
54
|
}
|
|
45
55
|
else {
|
|
46
|
-
const output = this.flags.color ? yield legacyColorization_1.colorizeLog(fullLog) : fullLog;
|
|
56
|
+
const output = this.flags.color ? yield (0, legacyColorization_1.colorizeLog)(fullLog) : fullLog;
|
|
47
57
|
this.ux.log(output);
|
|
48
58
|
}
|
|
49
59
|
}
|
|
@@ -52,7 +62,7 @@ class Tail extends command_1.SfdxCommand {
|
|
|
52
62
|
}
|
|
53
63
|
exports.default = Tail;
|
|
54
64
|
Tail.requiresUsername = true;
|
|
55
|
-
Tail.description = utils_1.buildDescription(messages.getMessage('commandDescription'), messages.getMessage('longDescription'));
|
|
65
|
+
Tail.description = (0, utils_1.buildDescription)(messages.getMessage('commandDescription'), messages.getMessage('longDescription'));
|
|
56
66
|
Tail.longDescription = messages.getMessage('longDescription');
|
|
57
67
|
Tail.examples = [
|
|
58
68
|
`$ sfdx force:apex:log:tail`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tail.js","sourceRoot":"","sources":["../../../../../src/commands/force/apex/log/tail.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,qDAAmD;AACnD,iDAAyD;AACzD,2CAA4C;AAC5C,6CAAgE;AAChE,uEAA6D;AAE7D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"tail.js","sourceRoot":"","sources":["../../../../../src/commands/force/apex/log/tail.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,qDAAmD;AACnD,iDAAyD;AACzD,2CAA4C;AAC5C,6CAAgE;AAChE,uEAA6D;AAE7D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,IAAI,CAAC,yBAAyB,EAAE,MAAM,EAAE;IAChE,kBAAkB;IAClB,oBAAoB;IACpB,uBAAuB;IACvB,iBAAiB;IACjB,iBAAiB;IACjB,qBAAqB;IACrB,yBAAyB;IACzB,iBAAiB;IACjB,0BAA0B;CAC3B,CAAC,CAAC;AAEH,MAAqB,IAAK,SAAQ,qBAAW;IAwC9B,GAAG;;YACd,IAAI;gBACF,IAAI,IAAI,CAAC,GAAG,EAAE;oBACZ,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;oBACtC,MAAM,UAAU,GAAG,IAAI,sBAAU,CAAC,IAAI,CAAC,CAAC;oBAExC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE;wBAC7B,MAAM,UAAU,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;q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U,CAAC,iBAAiB,CAAC;KACpD,CAAC;IACF,QAAQ,EAAE,eAAK,CAAC,IAAI,CAAC;QACnB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC;QACvD,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,yBAAyB,CAAC;QAC/D,OAAO,EAAE,MAAM;QACf,OAAO,EAAE,iBAAS;KACnB,CAAC;IACF,UAAU,EAAE,eAAK,CAAC,OAAO,EAAE;IAC3B,KAAK,EAAE,eAAK,CAAC,OAAO,CAAC;QACnB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,kBAAkB,CAAC;KACrD,CAAC;IACF,UAAU,EAAE,eAAK,CAAC,MAAM,CAAC;QACvB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC;KAC1D,CAAC;IACF,aAAa,EAAE,eAAK,CAAC,OAAO,CAAC;QAC3B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC;KAC7D,CAAC;CACH,CAAC"}
|
|
@@ -13,7 +13,24 @@ const core_1 = require("@salesforce/core");
|
|
|
13
13
|
const reporters_1 = require("../../../../reporters");
|
|
14
14
|
const utils_1 = require("../../../../utils");
|
|
15
15
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
16
|
-
const messages = core_1.Messages.
|
|
16
|
+
const messages = core_1.Messages.load('@salesforce/plugin-apex', 'report', [
|
|
17
|
+
'apexLibErr',
|
|
18
|
+
'apexTestReportFormatHint',
|
|
19
|
+
'codeCoverageDescription',
|
|
20
|
+
'commandDescription',
|
|
21
|
+
'jsonDescription',
|
|
22
|
+
'logLevelDescription',
|
|
23
|
+
'logLevelLongDescription',
|
|
24
|
+
'longDescription',
|
|
25
|
+
'outputDirectoryDescription',
|
|
26
|
+
'outputDirHint',
|
|
27
|
+
'resultFormatLongDescription',
|
|
28
|
+
'testResultProcessErr',
|
|
29
|
+
'testRunIdDescription',
|
|
30
|
+
'verboseDescription',
|
|
31
|
+
'waitDescription',
|
|
32
|
+
'warningMessage'
|
|
33
|
+
]);
|
|
17
34
|
class Report extends command_1.SfdxCommand {
|
|
18
35
|
run() {
|
|
19
36
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -22,17 +39,20 @@ class Report extends command_1.SfdxCommand {
|
|
|
22
39
|
}
|
|
23
40
|
// add listener for errors
|
|
24
41
|
process.on('uncaughtException', err => {
|
|
25
|
-
const formattedErr = this.formatError(new core_1.
|
|
42
|
+
const formattedErr = this.formatError(new core_1.SfError(messages.getMessage('apexLibErr', [err.message])));
|
|
26
43
|
this.ux.error(...formattedErr);
|
|
27
44
|
process.exit();
|
|
28
45
|
});
|
|
46
|
+
if (!this.org) {
|
|
47
|
+
throw Error('Unable to get connection from Org.');
|
|
48
|
+
}
|
|
29
49
|
// org is guaranteed by requiresUsername field
|
|
30
50
|
const conn = this.org.getConnection();
|
|
31
51
|
const testService = new apex_node_1.TestService(conn);
|
|
32
52
|
const result = yield testService.reportAsyncResults(this.flags.testrunid, this.flags.codecoverage);
|
|
33
53
|
const jsonOutput = this.formatResultInJson(result);
|
|
34
54
|
if (this.flags.outputdir) {
|
|
35
|
-
const outputDirConfig = reporters_1.buildOutputDirConfig(result, jsonOutput, this.flags.outputdir, this.flags.resultformat, true);
|
|
55
|
+
const outputDirConfig = (0, reporters_1.buildOutputDirConfig)(result, jsonOutput, this.flags.outputdir, this.flags.resultformat, true);
|
|
36
56
|
yield testService.writeResultFiles(result, outputDirConfig, this.flags.codecoverage);
|
|
37
57
|
}
|
|
38
58
|
try {
|
|
@@ -61,7 +81,9 @@ class Report extends command_1.SfdxCommand {
|
|
|
61
81
|
}
|
|
62
82
|
catch (e) {
|
|
63
83
|
this.ux.logJson(jsonOutput);
|
|
64
|
-
const msg = messages.getMessage('testResultProcessErr', [
|
|
84
|
+
const msg = messages.getMessage('testResultProcessErr', [
|
|
85
|
+
e.message
|
|
86
|
+
]);
|
|
65
87
|
this.ux.error(msg);
|
|
66
88
|
}
|
|
67
89
|
return jsonOutput;
|
|
@@ -91,7 +113,9 @@ class Report extends command_1.SfdxCommand {
|
|
|
91
113
|
}
|
|
92
114
|
catch (e) {
|
|
93
115
|
this.ux.logJson(result);
|
|
94
|
-
const msg = messages.getMessage('testResultProcessErr', [
|
|
116
|
+
const msg = messages.getMessage('testResultProcessErr', [
|
|
117
|
+
e.message
|
|
118
|
+
]);
|
|
95
119
|
this.ux.error(msg);
|
|
96
120
|
throw e;
|
|
97
121
|
}
|
|
@@ -107,7 +131,7 @@ class Report extends command_1.SfdxCommand {
|
|
|
107
131
|
}
|
|
108
132
|
exports.default = Report;
|
|
109
133
|
Report.requiresUsername = true;
|
|
110
|
-
Report.description = utils_1.buildDescription(messages.getMessage('commandDescription'), messages.getMessage('longDescription'));
|
|
134
|
+
Report.description = (0, utils_1.buildDescription)(messages.getMessage('commandDescription'), messages.getMessage('longDescription'));
|
|
111
135
|
Report.longDescription = messages.getMessage('longDescription');
|
|
112
136
|
Report.examples = [
|
|
113
137
|
`$ sfdx force:apex:test:report -i <test run id>`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../../../src/commands/force/apex/test/report.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,qDAO+B;AAC/B,iDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../../../src/commands/force/apex/test/report.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,qDAO+B;AAC/B,iDAAyD;AACzD,2CAAqD;AAErD,qDAI+B;AAC/B,6CAK2B;AAE3B,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,IAAI,CAAC,yBAAyB,EAAE,QAAQ,EAAE;IAClE,YAAY;IACZ,0BAA0B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QAAQ,CAAC,UAAU,CAAC,yBAAyB,CAAC;QAC/D,OAAO,EAAE,MAAM;QACf,OAAO,EAAE,iBAAS;KACnB,CAAC;IACF,UAAU,EAAE,eAAK,CAAC,OAAO,EAAE;IAC3B,YAAY,EAAE,eAAK,CAAC,OAAO,CAAC;QAC1B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,yBAAyB,CAAC;KAC5D,CAAC;IACF,SAAS,EAAE,eAAK,CAAC,MAAM,CAAC;QACtB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,4BAA4B,CAAC;KAC/D,CAAC;IACF,YAAY,EAAE,eAAK,CAAC,IAAI,CAAC;QACvB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,6BAA6B,CAAC;QAC/D,OAAO,EAAE,oBAAY;KACtB,CAAC;IACF,IAAI,EAAE,eAAK,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,iBAAiB,CAAC;KACpD,CAAC;IACF,OAAO,EAAE,eAAK,CAAC,OAAO,CAAC;QACrB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;KACvD,CAAC;CACH,CAAC"}
|
|
@@ -14,7 +14,34 @@ const core_1 = require("@salesforce/core");
|
|
|
14
14
|
const reporters_1 = require("../../../../reporters");
|
|
15
15
|
const utils_1 = require("../../../../utils");
|
|
16
16
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
17
|
-
const messages = core_1.Messages.
|
|
17
|
+
const messages = core_1.Messages.load('@salesforce/plugin-apex', 'run', [
|
|
18
|
+
'apexLibErr',
|
|
19
|
+
'apexTestReportFormatHint',
|
|
20
|
+
'classNamesDescription',
|
|
21
|
+
'classSuiteTestErr',
|
|
22
|
+
'codeCoverageDescription',
|
|
23
|
+
'commandDescription',
|
|
24
|
+
'detailedCoverageDescription',
|
|
25
|
+
'jsonDescription',
|
|
26
|
+
'logLevelDescription',
|
|
27
|
+
'logLevelLongDescription',
|
|
28
|
+
'longDescription',
|
|
29
|
+
'missingReporterErr',
|
|
30
|
+
'outputDirectoryDescription',
|
|
31
|
+
'outputDirHint',
|
|
32
|
+
'resultFormatLongDescription',
|
|
33
|
+
'runTestReportCommand',
|
|
34
|
+
'suiteNamesDescription',
|
|
35
|
+
'syncClassErr',
|
|
36
|
+
'synchronousDescription',
|
|
37
|
+
'testLevelDescription',
|
|
38
|
+
'testLevelErr',
|
|
39
|
+
'testResultProcessErr',
|
|
40
|
+
'testsDescription',
|
|
41
|
+
'verboseDescription',
|
|
42
|
+
'waitDescription',
|
|
43
|
+
'warningMessage'
|
|
44
|
+
]);
|
|
18
45
|
exports.TestLevelValues = [
|
|
19
46
|
'RunLocalTests',
|
|
20
47
|
'RunAllTestsInOrg',
|
|
@@ -26,6 +53,7 @@ class Run extends command_1.SfdxCommand {
|
|
|
26
53
|
this.cancellationTokenSource = new apex_node_1.CancellationTokenSource();
|
|
27
54
|
}
|
|
28
55
|
run() {
|
|
56
|
+
var _a;
|
|
29
57
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
30
58
|
yield this.validateFlags();
|
|
31
59
|
if (this.flags.outputdir) {
|
|
@@ -33,7 +61,7 @@ class Run extends command_1.SfdxCommand {
|
|
|
33
61
|
}
|
|
34
62
|
// add listener for errors
|
|
35
63
|
process.on('uncaughtException', err => {
|
|
36
|
-
const formattedErr = this.formatError(new core_1.
|
|
64
|
+
const formattedErr = this.formatError(new core_1.SfError(messages.getMessage('apexLibErr', [err.message])));
|
|
37
65
|
this.ux.error(...formattedErr);
|
|
38
66
|
process.exit();
|
|
39
67
|
});
|
|
@@ -46,6 +74,7 @@ class Run extends command_1.SfdxCommand {
|
|
|
46
74
|
process.on('SIGTERM', exitHandler);
|
|
47
75
|
const testLevel = this.getTestLevelfromFlags();
|
|
48
76
|
// org is guaranteed by requiresUsername field
|
|
77
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
49
78
|
const conn = this.org.getConnection();
|
|
50
79
|
const testService = new apex_node_1.TestService(conn);
|
|
51
80
|
let result;
|
|
@@ -68,7 +97,7 @@ class Run extends command_1.SfdxCommand {
|
|
|
68
97
|
}
|
|
69
98
|
if (this.flags.outputdir) {
|
|
70
99
|
const jsonOutput = this.formatResultInJson(result);
|
|
71
|
-
const outputDirConfig = reporters_1.buildOutputDirConfig(result, jsonOutput, this.flags.outputdir, this.flags.resultformat, this.flags.detailedcoverage, this.flags.synchronous);
|
|
100
|
+
const outputDirConfig = (0, reporters_1.buildOutputDirConfig)(result, jsonOutput, this.flags.outputdir, this.flags.resultformat, this.flags.detailedcoverage, this.flags.synchronous);
|
|
72
101
|
yield testService.writeResultFiles(result, outputDirConfig, this.flags.codecoverage);
|
|
73
102
|
}
|
|
74
103
|
try {
|
|
@@ -104,14 +133,16 @@ class Run extends command_1.SfdxCommand {
|
|
|
104
133
|
const id = result.testRunId;
|
|
105
134
|
this.ux.log(messages.getMessage('runTestReportCommand', [
|
|
106
135
|
id,
|
|
107
|
-
this.org.getUsername()
|
|
136
|
+
(_a = this.org) === null || _a === void 0 ? void 0 : _a.getUsername()
|
|
108
137
|
]));
|
|
109
138
|
}
|
|
110
139
|
}
|
|
111
140
|
}
|
|
112
141
|
catch (e) {
|
|
113
142
|
this.ux.logJson(result);
|
|
114
|
-
const msg = messages.getMessage('testResultProcessErr', [
|
|
143
|
+
const msg = messages.getMessage('testResultProcessErr', [
|
|
144
|
+
e.message
|
|
145
|
+
]);
|
|
115
146
|
this.ux.error(msg);
|
|
116
147
|
}
|
|
117
148
|
return this.formatResultInJson(result);
|
|
@@ -179,7 +210,9 @@ class Run extends command_1.SfdxCommand {
|
|
|
179
210
|
}
|
|
180
211
|
catch (e) {
|
|
181
212
|
this.ux.logJson(result);
|
|
182
|
-
const msg = messages.getMessage('testResultProcessErr', [
|
|
213
|
+
const msg = messages.getMessage('testResultProcessErr', [
|
|
214
|
+
e.message
|
|
215
|
+
]);
|
|
183
216
|
this.ux.error(msg);
|
|
184
217
|
throw e;
|
|
185
218
|
}
|
|
@@ -213,7 +246,7 @@ class Run extends command_1.SfdxCommand {
|
|
|
213
246
|
}
|
|
214
247
|
exports.default = Run;
|
|
215
248
|
Run.requiresUsername = true;
|
|
216
|
-
Run.description = utils_1.buildDescription(messages.getMessage('commandDescription'), messages.getMessage('longDescription'));
|
|
249
|
+
Run.description = (0, utils_1.buildDescription)(messages.getMessage('commandDescription'), messages.getMessage('longDescription'));
|
|
217
250
|
Run.longDescription = messages.getMessage('longDescription');
|
|
218
251
|
Run.examples = [
|
|
219
252
|
`$ sfdx force:apex:test:run`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../../../src/commands/force/apex/test/run.ts"],"names":[],"mappings":";;;;AAAA;;;;;GAKG;AACH,qDAU+B;AAC/B,iDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../../../src/commands/force/apex/test/run.ts"],"names":[],"mappings":";;;;AAAA;;;;;GAKG;AACH,qDAU+B;AAC/B,iDAAyD;AACzD,2CAAqD;AAErD,qDAI+B;AAC/B,6CAK2B;AAE3B,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,IAAI,CAAC,yBAAyB,EAAE,KAAK,EAAE;IAC/D,YAAY;IACZ,0BAA0B;IAC1B,uBAAuB;IACvB,mBAAmB;IACnB,yBAAyB;IACzB,oBAAoB;IACpB,6BAA6B;IAC7B,iBAAiB;IACjB,qBAAqB;IACrB,yBAAyB;IACzB,iBAAiB;IACjB,oBAAoB;IACpB,4BAA4B;IAC5B,eAAe;IACf,6BAA6B;IAC7B,sBAAsB;IACtB,uBAAuB;IACvB,cAAc;IACd,wBAAwB;IACxB,sBAAsB;IACtB,cAAc;I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C;QACvB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC;KAC1D,CAAC;IACF,KAAK,EAAE,eAAK,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,kBAAkB,CAAC;KACrD,CAAC;IACF,IAAI,EAAE,eAAK,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,iBAAiB,CAAC;KACpD,CAAC;IACF,WAAW,EAAE,eAAK,CAAC,OAAO,CAAC;QACzB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;KAC3D,CAAC;IACF,OAAO,EAAE,eAAK,CAAC,OAAO,CAAC;QACrB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;KACvD,CAAC;IACF,gBAAgB,EAAE,eAAK,CAAC,OAAO,CAAC;QAC9B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,6BAA6B,CAAC;QAC/D,SAAS,EAAE,CAAC,cAAc,CAAC;KAC5B,CAAC;CACH,CAAC"}
|
package/messages/report.json
CHANGED
|
@@ -18,5 +18,6 @@
|
|
|
18
18
|
"Run \"sfdx force:apex:test:report %s --resultformat <format>\" to retrieve test results in a different format.",
|
|
19
19
|
"outputDirHint": "Test result files written to %s",
|
|
20
20
|
"testResultProcessErr": "Encountered an error when processing test results\n%s",
|
|
21
|
-
"warningMessage": "WARNING: In the Summer ’21 release, we'll rename or remove some of the output files that are created when you run force:apex:test:run or force:apex:test:report with the --outputdir (-d) parameter. This breaking change could impact your CI/CD scripts if they reference specific filenames. See https://sfdc.co/apex-test-updates for details\n"
|
|
21
|
+
"warningMessage": "WARNING: In the Summer ’21 release, we'll rename or remove some of the output files that are created when you run force:apex:test:run or force:apex:test:report with the --outputdir (-d) parameter. This breaking change could impact your CI/CD scripts if they reference specific filenames. See https://sfdc.co/apex-test-updates for details\n",
|
|
22
|
+
"apexLibErr": "Unknown error in Apex Library: %s"
|
|
22
23
|
}
|