capacitor-community / http

Community plugin for native HTTP
MIT License
208 stars 136 forks source link

Running unit tests from command line fails #247

Open gyoong2 opened 2 years ago

gyoong2 commented 2 years ago

Describe the bug When including this plugin in to a Capacitor project, the unit test fails when running from command line. Running the tests from within Android Studio is working.

To Reproduce Steps to reproduce the behavior:

  1. Setup a base Capacitor project with Android platform added
  2. Add the capacitor-community-http plugin
  3. From the android directory of your project, run ./gradlew testDebugUnitTest
  4. See error

Screen Shot 2022-03-31 at 6 34 34 PM

Expected behavior The unit test should pass successfully

gyoong2 commented 2 years ago

Adding testImplementation 'org.json:json:20140107' to this module's build.gradle fixes the issue.