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

Increase code coverage in botbuilder library - BotFrameworkAdapter class #2496

Conversation

denscollo
Copy link
Contributor

Addresses #2432

Description

This PR adds unit tests for the BotFrameworkAdapter class increasing the code coverage from 77.43% to 91.59%.

Specific Changes

  • Updated botFrameworkAdapter.test.js file with tests for the following methods:
    • constructor
    • deleteConversationMember
    • getActivityMembers
    • getConversationMembers
    • signOutUser
    • getAadTokens
    • getSignInResource
    • exchangeToken
    • getTokenStatus
    • getConversations
    • processActivityDirect

Testing

The next images show some of the new tests passing.
image

image

@mrivera-ms mrivera-ms requested a review from EricDahlvang July 16, 2020 00:28
@EricDahlvang
Copy link
Member

Please rebase against master. (sorry, it looks like you've done this a couple times already... let me know when this is rebased and we will merge it before something else goes into master)

@denscollo
Copy link
Contributor Author

@EricDahlvang we just rebased it against master, so it's ready! Thanks!

@EricDahlvang EricDahlvang merged commit a7da18d into microsoft:master Jul 16, 2020
@EricDahlvang
Copy link
Member

@denscollo merged, ty!

@denscollo denscollo deleted the southworks/add/botFrameworkAdapter-tests branch July 16, 2020 19:54
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.

4 participants