capacitor-community / capacitor-community/.github

Unit Test are not run by gradlew test

Open
#4 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
16
Forks
7
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
when we run `./gradlew test` just the test inside `node_modules\@capacitor\android\capacitor\src\main\java\com\getcapacitor` are being run, the plugin tests are ignored.

I suppose it is because the contents of the `settings.gradle` file:
```
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
```
When we change the view to "project" in android studio, it has `node_modules\@capacitor\android\capacitor\src\main\java\com\getcapacitor` as root.
![image](https://user-images.githubusercontent.com/5490201/94965460-d31b0d80-04fb-11eb-9491-036736f8f6e1.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.