Skip to content

Conversation

@peternhale
Copy link
Contributor

What does this PR do?

Add new nut tests for plugin-org

What issues does this PR fix or reference?

@W-8856585@

Copy link
Contributor

@mshanemc mshanemc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved with comments. The only one I have strong feelings about it the weird import/require change

const result = execCmd('force:org:list --skipconnectionstatus --json');
expect(result.shellOutput.code).to.be.equal(
0,
concatString(result.shellOutput.stdout, result.shellOutput.stderr)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does produce nicer messages from mocha on fails. Does this belong in testkit so Pete doesn't have to boilerplate it? @shetzel

https://github.com/salesforcecli/cli-plugins-testkit/blob/a018e3f43572df1c9c927c341eea1ed393b0ef6a/src/execCmd.ts#L81

Copy link
Contributor

@shetzel shetzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 1 non-blocking comment.

Windows tests are failing becuase stdout is not being parsed to lines using os.EOL
@peternhale peternhale requested review from mshanemc and shetzel March 9, 2021 22:21
@peternhale peternhale merged commit 331c0a1 into main Mar 10, 2021
@peternhale peternhale deleted the phale/org-nut branch March 10, 2021 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants