Skip to content

Commit

Permalink
test: add cli
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarvin8 authored Oct 9, 2024
1 parent a7bccfd commit 577ea70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/commands/acc-transformer/transform.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,21 @@ describe('acc-transformer transform NUTs', () => {

it('runs transform on the deploy coverage file without file extensions.', async () => {
const command = `acc-transformer transform --coverage-json "${deployCoverageNoExts}" --xml "${testXmlPath1}"`;
const output = execCmd(command, { ensureExitCode: 0 }).shellOutput.stdout;
const output = execCmd(command, { ensureExitCode: 0, cli: 'sf' }).shellOutput.stdout;

expect(output.replace('\n', '')).to.equal(`The coverage XML has been written to ${testXmlPath1}`);
});

it('runs transform on the deploy coverage file with file extensions.', async () => {
const command = `acc-transformer transform --coverage-json "${deployCoverageWithExts}" --xml "${testXmlPath2}"`;
const output = execCmd(command, { ensureExitCode: 0 }).shellOutput.stdout;
const output = execCmd(command, { ensureExitCode: 0, cli: 'sf' }).shellOutput.stdout;

expect(output.replace('\n', '')).to.equal(`The coverage XML has been written to ${testXmlPath2}`);
});

it('runs transform on the test coverage file.', async () => {
const command = `acc-transformer transform --coverage-json "${testCoverage}" --xml "${testXmlPath3}"`;
const output = execCmd(command, { ensureExitCode: 0 }).shellOutput.stdout;
const output = execCmd(command, { ensureExitCode: 0, cli: 'sf' }).shellOutput.stdout;

expect(output.replace('\n', '')).to.equal(`The coverage XML has been written to ${testXmlPath3}`);
});
Expand Down

0 comments on commit 577ea70

Please sign in to comment.