@salesforce/plugin-apex 3.7.0 → 3.8.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/LICENSE.txt +200 -6
- package/README.md +128 -8
- package/lib/commands/apex/get/log.js +13 -4
- package/lib/commands/apex/get/log.js.map +1 -1
- package/lib/commands/apex/get/test.js +13 -4
- package/lib/commands/apex/get/test.js.map +1 -1
- package/lib/commands/apex/list/log.js +13 -4
- package/lib/commands/apex/list/log.js.map +1 -1
- package/lib/commands/apex/run/test.d.ts +3 -8
- package/lib/commands/apex/run/test.js +33 -96
- package/lib/commands/apex/run/test.js.map +1 -1
- package/lib/commands/apex/run.js +13 -4
- package/lib/commands/apex/run.js.map +1 -1
- package/lib/commands/apex/tail/log.js +13 -4
- package/lib/commands/apex/tail/log.js.map +1 -1
- package/lib/commands/logic/get/test.d.ts +1 -0
- package/lib/commands/logic/get/test.js +14 -4
- package/lib/commands/logic/get/test.js.map +1 -1
- package/lib/commands/logic/run/test.d.ts +28 -0
- package/lib/commands/logic/run/test.js +130 -0
- package/lib/commands/logic/run/test.js.map +1 -0
- package/lib/flags.js +13 -4
- package/lib/flags.js.map +1 -1
- package/lib/index.js +13 -4
- package/lib/index.js.map +1 -1
- package/lib/logColorize.js +13 -4
- package/lib/logColorize.js.map +1 -1
- package/lib/reporters/index.js +13 -4
- package/lib/reporters/index.js.map +1 -1
- package/lib/reporters/jsonReporter.js.map +1 -1
- package/lib/reporters/runReporter.js +13 -4
- package/lib/reporters/runReporter.js.map +1 -1
- package/lib/reporters/testReporter.js +14 -5
- package/lib/reporters/testReporter.js.map +1 -1
- package/lib/shared/TestGetBase.js +13 -4
- package/lib/shared/TestGetBase.js.map +1 -1
- package/lib/shared/TestRunService.d.ts +61 -0
- package/lib/shared/TestRunService.js +161 -0
- package/lib/shared/TestRunService.js.map +1 -0
- package/messages/runlogictest.md +41 -0
- package/messages/runtest.md +2 -33
- package/messages/runtestcommon.md +40 -0
- package/oclif.manifest.json +255 -2
- package/package.json +11 -7
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
6
15
|
*/
|
|
7
|
-
import { CancellationTokenSource
|
|
8
|
-
import { arrayWithDeprecation, Flags, loglevel, orgApiVersionFlagWithDeprecations, requiredOrgFlagWithDeprecations, SfCommand,
|
|
9
|
-
import { Messages
|
|
10
|
-
import { TestReporter } from '../../../reporters/index.js';
|
|
16
|
+
import { CancellationTokenSource } from '@salesforce/apex-node';
|
|
17
|
+
import { arrayWithDeprecation, Flags, loglevel, orgApiVersionFlagWithDeprecations, requiredOrgFlagWithDeprecations, SfCommand, } from '@salesforce/sf-plugins-core';
|
|
18
|
+
import { Messages } from '@salesforce/core';
|
|
11
19
|
import { codeCoverageFlag, resultFormatFlag } from '../../../flags.js';
|
|
20
|
+
import { TestRunService, TestLevelValues } from '../../../shared/TestRunService.js';
|
|
12
21
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
13
22
|
const messages = Messages.loadMessages('@salesforce/plugin-apex', 'runtest');
|
|
14
|
-
export const TestLevelValues = ['RunLocalTests', 'RunAllTestsInOrg', 'RunSpecifiedTests'];
|
|
15
23
|
const exclusiveTestSpecifiers = ['class-names', 'suite-names', 'tests'];
|
|
16
24
|
export default class Test extends SfCommand {
|
|
17
25
|
static summary = messages.getMessage('summary');
|
|
@@ -87,7 +95,11 @@ export default class Test extends SfCommand {
|
|
|
87
95
|
cancellationTokenSource = new CancellationTokenSource();
|
|
88
96
|
async run() {
|
|
89
97
|
const { flags } = await this.parse(Test);
|
|
90
|
-
const
|
|
98
|
+
const config = {
|
|
99
|
+
commandType: 'apex',
|
|
100
|
+
exclusiveTestSpecifiers,
|
|
101
|
+
binName: this.config.bin,
|
|
102
|
+
};
|
|
91
103
|
// graceful shutdown
|
|
92
104
|
const exitHandler = async () => {
|
|
93
105
|
await this.cancellationTokenSource.asyncCancel();
|
|
@@ -97,93 +109,18 @@ export default class Test extends SfCommand {
|
|
|
97
109
|
process.on('SIGINT', exitHandler);
|
|
98
110
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
99
111
|
process.on('SIGTERM', exitHandler);
|
|
100
|
-
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
if ('summary' in result) {
|
|
112
|
-
const testReporter = new TestReporter(new Ux({ jsonEnabled: this.jsonEnabled() }), conn);
|
|
113
|
-
return testReporter.report(result, flags);
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
// Tests were ran asynchronously or the --wait timed out.
|
|
117
|
-
// Log the proper 'apex get test' command for the user to run later
|
|
118
|
-
this.log(messages.getMessage('runTestReportCommand', [this.config.bin, result.testRunId, conn.getUsername()]));
|
|
119
|
-
this.info(messages.getMessage('runTestSyncInstructions'));
|
|
120
|
-
if (flags['output-dir']) {
|
|
121
|
-
// testService writes a file with just the test run id in it to test-run-id.txt
|
|
122
|
-
// github.com/forcedotcom/salesforcedx-apex/blob/c986abfabee3edf12f396f1d2e43720988fa3911/src/tests/testService.ts#L245-L246
|
|
123
|
-
await testService.writeResultFiles(result, { dirPath: flags['output-dir'] }, flags['code-coverage']);
|
|
124
|
-
}
|
|
125
|
-
return result;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
async runTest(testService, flags, testLevel) {
|
|
129
|
-
const payload = {
|
|
130
|
-
...(await testService.buildSyncPayload(testLevel, flags.tests?.join(','), flags['class-names']?.join(','))),
|
|
131
|
-
skipCodeCoverage: !flags['code-coverage'],
|
|
132
|
-
};
|
|
133
|
-
try {
|
|
134
|
-
return (await testService.runTestSynchronous(payload, flags['code-coverage'], this.cancellationTokenSource.token));
|
|
135
|
-
}
|
|
136
|
-
catch (e) {
|
|
137
|
-
throw handleTestingServerError(SfError.wrap(e), flags, testLevel);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
async runTestAsynchronous(testService, flags, testLevel) {
|
|
141
|
-
const payload = {
|
|
142
|
-
...(await testService.buildAsyncPayload(testLevel, flags.tests?.join(','), flags['class-names']?.join(','), flags['suite-names']?.join(','))),
|
|
143
|
-
skipCodeCoverage: !flags['code-coverage'],
|
|
112
|
+
// Generate connection in the command
|
|
113
|
+
const connection = flags['target-org'].getConnection(flags['api-version']);
|
|
114
|
+
const context = {
|
|
115
|
+
flags,
|
|
116
|
+
config,
|
|
117
|
+
connection,
|
|
118
|
+
jsonEnabled: this.jsonEnabled(),
|
|
119
|
+
cancellationToken: this.cancellationTokenSource,
|
|
120
|
+
log: (message) => this.log(message),
|
|
121
|
+
info: (message) => this.info(message),
|
|
144
122
|
};
|
|
145
|
-
|
|
146
|
-
// cast as TestRunIdResult because we're building an async payload which will return an async result
|
|
147
|
-
return (await testService.runTestAsynchronous(payload, flags['code-coverage'], flags.wait && flags.wait.minutes > 0 ? false : !(flags.synchronous && !this.jsonEnabled()), undefined, this.cancellationTokenSource.token, flags.wait));
|
|
148
|
-
}
|
|
149
|
-
catch (e) {
|
|
150
|
-
throw handleTestingServerError(SfError.wrap(e), flags, testLevel);
|
|
151
|
-
}
|
|
123
|
+
return TestRunService.runTestCommand(context);
|
|
152
124
|
}
|
|
153
125
|
}
|
|
154
|
-
function handleTestingServerError(error, flags, testLevel) {
|
|
155
|
-
if (!error.message.includes('Always provide a classes, suites, tests, or testLevel property')) {
|
|
156
|
-
return error;
|
|
157
|
-
}
|
|
158
|
-
// If error message condition is valid, return the original error.
|
|
159
|
-
const hasSpecifiedTestLevel = testLevel === "RunSpecifiedTests" /* TestLevel.RunSpecifiedTests */;
|
|
160
|
-
const hasNoTestNames = !flags.tests?.length;
|
|
161
|
-
const hasNoClassNames = !flags['class-names']?.length;
|
|
162
|
-
const hasNoSuiteNames = !flags['suite-names']?.length;
|
|
163
|
-
if (hasSpecifiedTestLevel && hasNoTestNames && hasNoClassNames && hasNoSuiteNames) {
|
|
164
|
-
return error;
|
|
165
|
-
}
|
|
166
|
-
// Otherwise, assume there are no Apex tests in the org and return clearer message.
|
|
167
|
-
return Object.assign(error, {
|
|
168
|
-
message: 'There are no Apex tests to run in this org.',
|
|
169
|
-
actions: ['Ensure Apex Tests exist in the org, and try again.'],
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
const validateFlags = async (classNames, suiteNames, tests, synchronous, testLevel) => {
|
|
173
|
-
if (synchronous && (Boolean(suiteNames) || (classNames?.length && classNames.length > 1))) {
|
|
174
|
-
return Promise.reject(new Error(messages.getMessage('syncClassErr')));
|
|
175
|
-
}
|
|
176
|
-
if ((Boolean(tests) || Boolean(classNames) || suiteNames) &&
|
|
177
|
-
testLevel &&
|
|
178
|
-
testLevel.toString() !== 'RunSpecifiedTests') {
|
|
179
|
-
return Promise.reject(new Error(messages.getMessage('testLevelErr')));
|
|
180
|
-
}
|
|
181
|
-
if (testLevel) {
|
|
182
|
-
return testLevel;
|
|
183
|
-
}
|
|
184
|
-
if (Boolean(classNames) || Boolean(suiteNames) || tests) {
|
|
185
|
-
return "RunSpecifiedTests" /* TestLevel.RunSpecifiedTests */;
|
|
186
|
-
}
|
|
187
|
-
return "RunLocalTests" /* TestLevel.RunLocalTests */;
|
|
188
|
-
};
|
|
189
126
|
//# sourceMappingURL=test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../../src/commands/apex/run/test.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../../src/commands/apex/run/test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EACL,oBAAoB,EACpB,KAAK,EACL,QAAQ,EACR,iCAAiC,EACjC,+BAA+B,EAC/B,SAAS,GACV,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAmC,MAAM,mCAAmC,CAAC;AAErH,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,SAAS,CAAC,CAAC;AAE7E,MAAM,uBAAuB,GAAG,CAAC,aAAa,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;AACxE,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,SAA2B;IACpD,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,gBAAgB,GAAG,IAAI,CAAC;IACxC,MAAM,CAAU,OAAO,GAAG,CAAC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C,KAAK,CAAC,IAAI,CAAC,CAAC;QAEzC,MAAM,MAAM,GAAkB;YAC5B,WAAW,EAAE,MAAM;YACnB,uBAAuB;YACvB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG;SACzB,CAAC;QAEF,oBAAoB;QACpB,MAAM,WAAW,GAAG,KAAK,IAAmB,EAAE;YAC5C,MAAM,IAAI,CAAC,uBAAuB,CAAC,WAAW,EAAE,CAAC;YACjD,OAAO,CAAC,IAAI,EAAE,CAAC;QACjB,CAAC,CAAC;QAEF,kEAAkE;QAClE,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;QAClC,kEAAkE;QAClE,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAEnC,qCAAqC;QACrC,MAAM,UAAU,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;QAE3E,MAAM,OAAO,GAAG;YACd,KAAK;YACL,MAAM;YACN,UAAU;YACV,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE;YAC/B,iBAAiB,EAAE,IAAI,CAAC,uBAAuB;YAC/C,GAAG,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC;YAC3C,IAAI,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;SAC9C,CAAC;QAEF,OAAO,cAAc,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAChD,CAAC"}
|
package/lib/commands/apex/run.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
6
15
|
*/
|
|
7
16
|
import { ExecuteService } from '@salesforce/apex-node';
|
|
8
17
|
import { Flags, loglevel, orgApiVersionFlagWithDeprecations, requiredOrgFlagWithDeprecations, SfCommand, } from '@salesforce/sf-plugins-core';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/commands/apex/run.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/commands/apex/run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAsB,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EACL,KAAK,EACL,QAAQ,EACR,iCAAiC,EACjC,+BAA+B,EAC/B,SAAS,GACV,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,WAAW,MAAM,gCAAgC,CAAC;AAEzD,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;AAazE,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,SAAwB;IAChD,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CA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AM,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ;gBAC1B,CAAC,CAAC,IAAI,OAAO,CACT,QAAQ,CAAC,UAAU,CAAC,uBAAuB,EAAE;oBAC3C,eAAe,CAAC,IAAI;oBACpB,eAAe,CAAC,MAAM;oBACtB,eAAe,CAAC,cAAc;iBAC/B,CAAC,EACF,uBAAuB,CACxB;gBACH,CAAC,CAAC,IAAI,OAAO,CACT,QAAQ,CAAC,UAAU,CAAC,uBAAuB,EAAE,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC,EAChF,uBAAuB,EACvB,EAAE,CACH,CAAC;YACN,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;YAC7B,MAAM,GAAG,CAAC;QACZ,CAAC;QAED,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;QAE5C,OAAO,eAAe,CAAC;IACzB,CAAC"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
6
15
|
*/
|
|
7
16
|
import { LogService } from '@salesforce/apex-node';
|
|
8
17
|
import { Flags, SfCommand, requiredOrgFlagWithDeprecations, orgApiVersionFlagWithDeprecations, loglevel, } from '@salesforce/sf-plugins-core';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../../../src/commands/apex/tail/log.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../../../src/commands/apex/tail/log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EACL,KAAK,EACL,SAAS,EACT,+BAA+B,EAC/B,iCAAiC,EACjC,QAAQ,GACT,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAc,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC;AAE1E,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,SAAe;IACvC,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,gBAAgB,GAAG,IAAI,CAAC;IACxC,MAAM,CAAU,OAAO,GAAG,CAAC,qBAAqB,CAAC,CAAC;IAClD,MAAM,CAAU,cAAc,GAAG,KAAK,CAAC;IACvC,MAAM,CAAU,KAAK,GAAG;QAC7B,YAAY,EAAE,+BAA+B;QAC7C,aAAa,EAAE,iCAAiC;QAChD,QAAQ;QACR,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC;YACnB,IAAI,EA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BAAiB,CAAC,CAAC,CAAC;IACnD,CAAC;IAED,iGAAiG;IACjG,4DAA4D;IACrD,KAAK,CAAC,SAAS,CAAC,OAAe;QACpC,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACH,kDAAkD;IAC1C,aAAa,CAAC,IAAgB;QACpC,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC"}
|
|
@@ -4,6 +4,7 @@ export default class TestLogic extends SfCommand<RunResult> {
|
|
|
4
4
|
static readonly summary: string;
|
|
5
5
|
static readonly description: string;
|
|
6
6
|
static readonly examples: string[];
|
|
7
|
+
static state: string;
|
|
7
8
|
static readonly flags: {
|
|
8
9
|
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
10
|
'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
6
15
|
*/
|
|
7
16
|
import { Flags, loglevel, orgApiVersionFlagWithDeprecations, requiredOrgFlagWithDeprecations, SfCommand, } from '@salesforce/sf-plugins-core';
|
|
8
17
|
import { Messages } from '@salesforce/core';
|
|
@@ -14,6 +23,7 @@ export default class TestLogic extends SfCommand {
|
|
|
14
23
|
static summary = messages.getMessage('summary');
|
|
15
24
|
static description = messages.getMessage('description');
|
|
16
25
|
static examples = messages.getMessages('examples');
|
|
26
|
+
static state = 'beta';
|
|
17
27
|
static flags = {
|
|
18
28
|
'target-org': requiredOrgFlagWithDeprecations,
|
|
19
29
|
'api-version': orgApiVersionFlagWithDeprecations,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../../src/commands/logic/get/test.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../../src/commands/logic/get/test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,EACL,QAAQ,EACR,iCAAiC,EACjC,+BAA+B,EAC/B,SAAS,GACV,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,cAAc,CAAC,CAAC;AAElF,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,SAAoB;IAClD,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WA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,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;YACnE,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC;YAC/B,YAAY,EAAE,KAAK,CAAC,eAAe,CAAC;YACpC,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC;YAC9B,YAAY,EAAE,KAAK,CAAC,eAAe,CAAC;YACpC,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,gBAAgB,EAAE,KAAK;YACvB,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE;YAC/B,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;IACL,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CancellationTokenSource } from '@salesforce/apex-node';
|
|
2
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
|
+
import { RunCommandResult } from '../../../shared/TestRunService.js';
|
|
4
|
+
export default class RunTestLogic extends SfCommand<RunCommandResult> {
|
|
5
|
+
static readonly summary: string;
|
|
6
|
+
static readonly description: string;
|
|
7
|
+
static readonly examples: string[];
|
|
8
|
+
static state: string;
|
|
9
|
+
static readonly flags: {
|
|
10
|
+
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
loglevel: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
'code-coverage': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
'output-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
'test-level': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
'class-names': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
|
+
'result-format': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
|
+
'suite-names': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
tests: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
|
+
wait: import("@oclif/core/interfaces").OptionFlag<import("@salesforce/kit").Duration, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
synchronous: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
22
|
+
'detailed-coverage': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
23
|
+
concise: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
24
|
+
'test-category': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
25
|
+
};
|
|
26
|
+
protected cancellationTokenSource: CancellationTokenSource;
|
|
27
|
+
run(): Promise<RunCommandResult>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { CancellationTokenSource } from '@salesforce/apex-node';
|
|
17
|
+
import { arrayWithDeprecation, Flags, loglevel, orgApiVersionFlagWithDeprecations, requiredOrgFlagWithDeprecations, SfCommand, } from '@salesforce/sf-plugins-core';
|
|
18
|
+
import { Messages } from '@salesforce/core';
|
|
19
|
+
import { codeCoverageFlag, resultFormatFlag } from '../../../flags.js';
|
|
20
|
+
import { TestRunService, TestLevelValues } from '../../../shared/TestRunService.js';
|
|
21
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
22
|
+
const messages = Messages.loadMessages('@salesforce/plugin-apex', 'runlogictest');
|
|
23
|
+
const commonFlags = Messages.loadMessages('@salesforce/plugin-apex', 'runtest');
|
|
24
|
+
const exclusiveTestSpecifiers = ['class-names', 'suite-names', 'tests', 'test-category'];
|
|
25
|
+
export default class RunTestLogic extends SfCommand {
|
|
26
|
+
static summary = messages.getMessage('summary');
|
|
27
|
+
static description = messages.getMessage('description');
|
|
28
|
+
static examples = messages.getMessages('examples');
|
|
29
|
+
static state = 'beta';
|
|
30
|
+
static flags = {
|
|
31
|
+
'target-org': requiredOrgFlagWithDeprecations,
|
|
32
|
+
'api-version': orgApiVersionFlagWithDeprecations,
|
|
33
|
+
loglevel,
|
|
34
|
+
'code-coverage': codeCoverageFlag,
|
|
35
|
+
'output-dir': Flags.directory({
|
|
36
|
+
aliases: ['outputdir', 'output-directory'],
|
|
37
|
+
deprecateAliases: true,
|
|
38
|
+
char: 'd',
|
|
39
|
+
summary: commonFlags.getMessage('flags.output-dir.summary'),
|
|
40
|
+
}),
|
|
41
|
+
'test-level': Flags.string({
|
|
42
|
+
deprecateAliases: true,
|
|
43
|
+
aliases: ['testlevel'],
|
|
44
|
+
char: 'l',
|
|
45
|
+
summary: commonFlags.getMessage('flags.test-level.summary'),
|
|
46
|
+
description: commonFlags.getMessage('flags.test-level.description'),
|
|
47
|
+
options: TestLevelValues,
|
|
48
|
+
}),
|
|
49
|
+
'class-names': arrayWithDeprecation({
|
|
50
|
+
deprecateAliases: true,
|
|
51
|
+
aliases: ['classnames'],
|
|
52
|
+
char: 'n',
|
|
53
|
+
summary: commonFlags.getMessage('flags.class-names.summary'),
|
|
54
|
+
description: commonFlags.getMessage('flags.class-names.description'),
|
|
55
|
+
exclusive: exclusiveTestSpecifiers.filter((specifier) => specifier !== 'class-names'),
|
|
56
|
+
}),
|
|
57
|
+
'result-format': resultFormatFlag,
|
|
58
|
+
'suite-names': arrayWithDeprecation({
|
|
59
|
+
deprecateAliases: true,
|
|
60
|
+
aliases: ['suitenames'],
|
|
61
|
+
char: 's',
|
|
62
|
+
summary: commonFlags.getMessage('flags.suite-names.summary'),
|
|
63
|
+
description: commonFlags.getMessage('flags.suite-names.description'),
|
|
64
|
+
exclusive: exclusiveTestSpecifiers.filter((specifier) => specifier !== 'suite-names'),
|
|
65
|
+
}),
|
|
66
|
+
tests: arrayWithDeprecation({
|
|
67
|
+
char: 't',
|
|
68
|
+
summary: messages.getMessage('flags.logicTests.summary'),
|
|
69
|
+
description: commonFlags.getMessage('flags.tests.description'),
|
|
70
|
+
exclusive: exclusiveTestSpecifiers.filter((specifier) => specifier !== 'tests'),
|
|
71
|
+
}),
|
|
72
|
+
// we want to pass `undefined` to the API
|
|
73
|
+
// eslint-disable-next-line sf-plugin/flag-min-max-default
|
|
74
|
+
wait: Flags.duration({
|
|
75
|
+
unit: 'minutes',
|
|
76
|
+
char: 'w',
|
|
77
|
+
summary: commonFlags.getMessage('flags.wait.summary'),
|
|
78
|
+
min: 0,
|
|
79
|
+
}),
|
|
80
|
+
synchronous: Flags.boolean({
|
|
81
|
+
char: 'y',
|
|
82
|
+
summary: commonFlags.getMessage('flags.synchronous.summary'),
|
|
83
|
+
}),
|
|
84
|
+
'detailed-coverage': Flags.boolean({
|
|
85
|
+
deprecateAliases: true,
|
|
86
|
+
aliases: ['detailedcoverage'],
|
|
87
|
+
char: 'v',
|
|
88
|
+
summary: commonFlags.getMessage('flags.detailed-coverage.summary'),
|
|
89
|
+
dependsOn: ['code-coverage'],
|
|
90
|
+
}),
|
|
91
|
+
concise: Flags.boolean({
|
|
92
|
+
summary: commonFlags.getMessage('flags.concise.summary'),
|
|
93
|
+
}),
|
|
94
|
+
'test-category': arrayWithDeprecation({
|
|
95
|
+
summary: messages.getMessage('flags.test-category.summary'),
|
|
96
|
+
options: ['Apex', 'Flow'],
|
|
97
|
+
}),
|
|
98
|
+
};
|
|
99
|
+
cancellationTokenSource = new CancellationTokenSource();
|
|
100
|
+
async run() {
|
|
101
|
+
const { flags } = await this.parse(RunTestLogic);
|
|
102
|
+
const config = {
|
|
103
|
+
commandType: 'logic',
|
|
104
|
+
exclusiveTestSpecifiers,
|
|
105
|
+
binName: this.config.bin,
|
|
106
|
+
};
|
|
107
|
+
// graceful shutdown
|
|
108
|
+
const exitHandler = async () => {
|
|
109
|
+
await this.cancellationTokenSource.asyncCancel();
|
|
110
|
+
process.exit();
|
|
111
|
+
};
|
|
112
|
+
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
113
|
+
process.on('SIGINT', exitHandler);
|
|
114
|
+
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
115
|
+
process.on('SIGTERM', exitHandler);
|
|
116
|
+
// Generate connection in the command
|
|
117
|
+
const connection = flags['target-org'].getConnection(flags['api-version']);
|
|
118
|
+
const context = {
|
|
119
|
+
flags,
|
|
120
|
+
config,
|
|
121
|
+
connection,
|
|
122
|
+
jsonEnabled: this.jsonEnabled(),
|
|
123
|
+
cancellationToken: this.cancellationTokenSource,
|
|
124
|
+
log: (message) => this.log(message),
|
|
125
|
+
info: (message) => this.info(message),
|
|
126
|
+
};
|
|
127
|
+
return TestRunService.runTestCommand(context);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
//# sourceMappingURL=test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../../src/commands/logic/run/test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,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AI,CAAC,MAAM,CAAC,GAAG;SACzB,CAAC;QAEF,oBAAoB;QACpB,MAAM,WAAW,GAAG,KAAK,IAAmB,EAAE;YAC5C,MAAM,IAAI,CAAC,uBAAuB,CAAC,WAAW,EAAE,CAAC;YACjD,OAAO,CAAC,IAAI,EAAE,CAAC;QACjB,CAAC,CAAC;QAEF,kEAAkE;QAClE,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;QAClC,kEAAkE;QAClE,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAEnC,qCAAqC;QACrC,MAAM,UAAU,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;QAE3E,MAAM,OAAO,GAAG;YACd,KAAK;YACL,MAAM;YACN,UAAU;YACV,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE;YAC/B,iBAAiB,EAAE,IAAI,CAAC,uBAAuB;YAC/C,GAAG,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC;YAC3C,IAAI,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;SAC9C,CAAC;QAEF,OAAO,cAAc,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAChD,CAAC"}
|
package/lib/flags.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
6
15
|
*/
|
|
7
16
|
import { Messages } from '@salesforce/core';
|
|
8
17
|
import { Flags } from '@salesforce/sf-plugins-core';
|
package/lib/flags.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flags.js","sourceRoot":"","sources":["../src/flags.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"flags.js","sourceRoot":"","sources":["../src/flags.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAEpD,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;AAE3E,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,CAAC;IAC3C,gBAAgB,EAAE,IAAI;IACtB,OAAO,EAAE,CAAC,cAAc,CAAC;IACzB,IAAI,EAAE,GAAG;IACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAC3D,OAAO,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAU;IACnD,OAAO,EAAE,OAAO;CACjB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,CAAC;IAC5C,OAAO,EAAE,CAAC,cAAc,CAAC;IACzB,gBAAgB,EAAE,IAAI;IACtB,IAAI,EAAE,GAAG;IACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAC5D,CAAC,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
6
15
|
*/
|
|
7
16
|
export default {};
|
|
8
17
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,eAAe,EAAE,CAAC"}
|
package/lib/logColorize.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
6
15
|
*/
|
|
7
16
|
import { StandardColors } from '@salesforce/sf-plugins-core';
|
|
8
17
|
import ansis from 'ansis';
|
package/lib/logColorize.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logColorize.js","sourceRoot":"","sources":["../src/logColorize.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"logColorize.js","sourceRoot":"","sources":["../src/logColorize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,+DAA+D;AAC/D,MAAM,eAAe,GAAG;IACtB,CAAC,IAAI,MAAM,CAAC,mBAAmB,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;IAClD,CAAC,IAAI,MAAM,CAAC,iBAAiB,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC;IAC3C,CAAC,IAAI,MAAM,CAAC,eAAe,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC;IACrD,CAAC,IAAI,MAAM,CAAC,sBAAsB,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC;IACnD,CAAC,IAAI,MAAM,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC;IACpD,CAAC,IAAI,MAAM,CAAC,sBAAsB,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC;IACtD,CAAC,IAAI,MAAM,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC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EAAU,EAAE;IAC/C,MAAM,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACxC,oDAAoD;IACpD,OAAO,IAAI,CAAC,MAAM,KAAK,CAAC;QACtB,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;QAClB,CAAC,CAAC;YACE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,oDAAoD;YACtE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC1B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACnB,CAAC,CAAC"}
|
package/lib/reporters/index.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the
|
|
5
|
-
*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
6
15
|
*/
|
|
7
16
|
export { JsonReporter } from './jsonReporter.js';
|
|
8
17
|
export { TestReporter } from './testReporter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/reporters/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/reporters/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,YAAY,EAAa,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
|