google / google/truth

Update documentation for gradle

Open
#528 2 comments 0 reactions 0 assignees View on GitHub
P3 type=documentation
Dominant language
Java
Stars
2.8k
Forks
275
Avg merge
7m
Merged PRs (30d)
4

Description

1. Currently the docs at http://google.github.io/truth/ say to add

```
dependencies {
testCompile "com.google.truth:truth:0.43"
}
```

If you add this to any recent gradle project you'll see it complain that you shouldn't use `compile` and instead use `implementation`.

2. There are a lot of questions on stack overflow where android users are trying to use this but they're applying the dep to the wrong testing directory. I think we can have better docs for those users.

If your tests are in the `androidTest` directory then you need

`androidTestImplementation 'com.google.truth:truth:0.43'`

but if your tests are in the `test` directory then you need

`testImplementation 'com.google.truth:truth:0.43'`

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.