Skip to content

Writing unit tests with a service account #622

Answered by jansenbe
TastyToasty asked this question in Q&A
Discussion options

You must be logged in to vote

@TastyToasty : maybe our test projects can serve as inspiration for your unit tests as well, see https://github.com/pnp/pnpcore/tree/dev/src/sdk/PnP.Core.Test and https://github.com/pnp/pnpcore/tree/dev/src/sdk/PnP.Core.Admin.Test as examples. Our test project setup is slightly more complicated as we have an offline test concept, meaning you can run a test and record the server responses. You can then reply these responses to run your test fully offline. We've built this concept to allow for fast test execution while developing. See https://pnp.github.io/pnpcore/contributing/writing%20tests.html to learn more about how to use our testing system.

In general you would want to create a PnPCo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TastyToasty
Comment options

Answer selected by TastyToasty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants