Loupe - Log - Monitor - Resolve
Loupe / Developer's Guide / For .NET Core / 6 / 8 / Getting Started - Using Loupe with Unit Testing
In This Topic
    Getting Started - Using Loupe with Unit Testing
    In This Topic

    As you add Loupe to the various libraries in your application you'll want to integrate it with your unit tests.  This lets you use the log messages in Loupe to help with verifying and troubleshooting unit test results. 

    To effectively use Loupe with unit tests you need to accomplish two things:

    1. Configure the Agent: Not all unit test frameworks support configuration frameworks; we recommend programmatic configuration which keeps the configuration with your unit test code.
    2. Ensure the Agent Shuts Down: You may find your unit tests will hang at the end of their execution; to resolve this you need to shut down the agent by calling Log.EndSession as you would with a normal application.

     The best way to accomplish this will depend on your unit test framework

    See Also