Skip to content

Commit

Permalink
Merge pull request #1156 from AzureAD/shahzaibj/verbose-logging-for-r…
Browse files Browse the repository at this point in the history
…obolectric-tests

Enable verbose logging for Robolectric tests
  • Loading branch information
shahzaibj committed Sep 22, 2020
2 parents cdd6cad + eab0c93 commit 29ce96c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import androidx.test.core.app.ApplicationProvider;

import com.microsoft.identity.client.IPublicClientApplication;
import com.microsoft.identity.client.Logger;
import com.microsoft.identity.client.PublicClientApplication;
import com.microsoft.identity.client.exception.MsalException;
import com.microsoft.identity.common.internal.controllers.CommandDispatcherHelper;
Expand All @@ -53,6 +54,9 @@ public void setup() {
mContext = ApplicationProvider.getApplicationContext();
mActivity = TestUtils.getMockActivity(mContext);
setupPCA();
Logger.getInstance().setEnableLogcatLog(true);
Logger.getInstance().setEnablePII(true);
Logger.getInstance().setLogLevel(Logger.LogLevel.VERBOSE);
CommandDispatcherHelper.clear();
}

Expand Down

0 comments on commit 29ce96c

Please sign in to comment.