Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Engineering] Lower time for botframework-connector tests #2630

Conversation

denscollo
Copy link
Contributor

Address #2338

Description

This pull request updates the tests for the BotFramework-connector library by arranging variables to be reused, removing duplicated tests, and removing unused declarations.

Specific Changes

auth.test.js:

  • Moved the variables header and credentials (split in genericCredentials and emptyCredentials) to the top of the tests to be created once and used in multiple tests.
  • Removed duplicated test validateIdentity should fail if unauthenticated, that does the same as the test validateIdentity should fail if no identity for the GovernmentChannelValidator and EnterpriseChannelValidator describes.
  • Removed unused claims declaration.
  • Removed extras ;.

connector.test.js:

  • Remove unused declarations.

simpleCredentialProvider.test.js:

  • Removed superfluous assert, the removed assert is already tested in the constructor's test.

Testing

After the changes, the code coverage is not reduced.
image

@mrivera-ms mrivera-ms merged commit 036d938 into microsoft:master Aug 6, 2020
@santgr11 santgr11 deleted the southworks/update/botframework-connector-tests branch July 22, 2021 14:47
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