Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Running unit tests from command line fails #247

Open
gyoong2 opened this issue Mar 31, 2022 · 1 comment · May be fixed by #248
Open

Running unit tests from command line fails #247

gyoong2 opened this issue Mar 31, 2022 · 1 comment · May be fixed by #248

Comments

@gyoong2
Copy link

gyoong2 commented Mar 31, 2022

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
Copy link
Author

gyoong2 commented Apr 1, 2022

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

@gyoong2 gyoong2 linked a pull request Apr 1, 2022 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant