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

Would you please provide information about Unit Test ? #1611

Closed
NT-D opened this issue Aug 17, 2019 — with docs.microsoft.com · 13 comments · Fixed by #3079
Closed

Would you please provide information about Unit Test ? #1611

NT-D opened this issue Aug 17, 2019 — with docs.microsoft.com · 13 comments · Fixed by #3079
Assignees
Labels
Area: Outlook Feedback on Outlook content Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown Type: doc request Request for new documentation or updates/enhancements to existing documentation

Comments

Copy link
Member

NT-D commented Aug 17, 2019

Hi Outlook team,
Thank you for providing good documents for debugging. We are now enjoying development and debugging, but let me provide feedback about contents.

In general, developers run unit test on the client and CI pipeline on the cloud for keeping app quality. Our team also want to do Unit test, but there are no information about it. If possible, would you please provide how to do Unit test with Office.js and how to get Exchange Id Token and SSO token from agent on CI pipeline? Because we protect backend with Exhcange Id token and SSO token, we need to get them for testing backend.

Thanks


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Copy link
Member Author

NT-D commented Aug 19, 2019

Sorry, my question included Integration testing, so feedback title should be "Would you please provide information about Unit test and Integration test?"

@ElizabethSamuel-MSFT ElizabethSamuel-MSFT self-assigned this Aug 23, 2019
@ElizabethSamuel-MSFT
Copy link
Contributor

@NT-D Thanks for asking about this. I'm checking into this with my team and I'll see if I can give you an update soon.

Thanks.

@ElizabethSamuel-MSFT
Copy link
Contributor

@NT-D We don't yet have any docs on this type of testing but we're working on it. For now, I'll put this issue on hold and we'll respond once we've put together some guidance for this area.

Thanks.

@NT-D
Copy link
Member Author

NT-D commented Sep 26, 2019

Thank you @ElizabethSamuel-MSFT. I'm looking forward to see update :)

@kbrandl
Copy link
Contributor

kbrandl commented Feb 19, 2020

All Outlook add-ins docs have just been moved out of this repo and into the OfficeDev/office-js-docs-pr repo, so I'm transferring this add-ins-related issue there as well.

@kbrandl kbrandl transferred this issue from OfficeDev/outlook-dev-docs Feb 19, 2020
@ghost ghost added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Feb 19, 2020
@kbrandl kbrandl added Area: add-ins Feedback on add-ins content that's relevant to multiple Office hosts. Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown Type: doc request Request for new documentation or updates/enhancements to existing documentation and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels Feb 19, 2020
@ElizabethSamuel-MSFT ElizabethSamuel-MSFT added Area: Outlook Feedback on Outlook content and removed Area: add-ins Feedback on add-ins content that's relevant to multiple Office hosts. labels Feb 21, 2020
@NT-D
Copy link
Member Author

NT-D commented May 25, 2020

@kbrandl Which issue can I see progress in OfficeDev/office-js-docs-pr?

@kbrandl
Copy link
Contributor

kbrandl commented May 25, 2020

@NT-D I'm no longer a Microsoft employee, so cannot answer your question. @ElizabethSamuel-MSFT are you able to provide input here?

@ElizabethSamuel-MSFT
Copy link
Contributor

Thanks, @kbrandl.

@NT-D For now, there's no further update. You can keep track with this same issue as it's now in the office-js-docs-pr repo.

Thanks.

@JensMadsen
Copy link

JensMadsen commented Jul 3, 2020

It has been almost three years since #584, so to me it seems that supporting testing, CI/CD is not a priority for Microsoft. If that's so then fine I find other means to test my addin. But right now Microsoft does not clearly state that they are not going to provide these features in the near future. This situation is difficult for us because we would not like to invest a lot of time in developing a non-standard test solution if Microsoft release a framework for testing addins in all the various environments etc. So it would be very helpful if the team could provide us with a realistic timeline (this year, next year, never, no decision has been made).

@JensMadsen
Copy link

Bump

@AlexJerabek
Copy link
Collaborator

Hi everyone,

We appreciate all the discussion and feedback requesting testing solutions for Office Add-ins and Office JS. Unfortunately, there are no automated or unit testing solutions that we provide at this time. We're working on a solution, but have no concrete implementation or release details to share at this time. We realize this is an unsatisfying answer, but we feel it’s better to be clear about the support story, rather than to create false expectations.

We are moving the discussion to M365 Developer Platform Ideas. For the primary concern around standardized testing, please upvote and comment on this idea: Standard way to unit test and mock office-js API. For the other related requests that have accumulated on this issue, we also ask that you take your requests to the M365 Developer Platform Ideas and submit them as ideas (or upvote existing ones). This will help us prioritize things in an orderly fashion.

If there are other issues about the documentation that have been raised in this thread but were not addressed, please create a new issue to track each specific problem.

Thank you.

@Rick-Kirkham
Copy link
Contributor

We now have documentation for unit testing and mocking in Office.js.

Unit testing in Office Add-ins

@JensMadsen
Copy link

Thank you for the efforts. However, IMHO we still need to test the office API (if possible). All methods are manually mocked in the aforementioned approach so we do not really test much functionality...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Outlook Feedback on Outlook content Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown Type: doc request Request for new documentation or updates/enhancements to existing documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants