google / google/zetasketch

Tests in the source tree

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
169
Forks
23
PR merge metrics
No merged PRs in 30d

Description

There are some test classes located under the main java source tree.
This is then 'fixed' in the build.gradle with this
```
// Customize source code layout
sourceSets {
main {
java {
srcDirs = ['java']
exclude 'java/com/google/zetasketch/testing/**'
}
proto {
srcDirs = ['proto']
}
}
test {
java {
srcDirs = ['java/com/google/zetasketch/testing', 'javatests']
}
}
}
```
A consequence of this very strange construct is that IntelliJ gets really confused and it no longer automatically sees the sources as sources but instead it sees one level deeper as being test sources.

![Screenshot from 2019-07-11 14-23-55](https://user-images.githubusercontent.com/240096/61050703-ebc77100-a3e7-11e9-9fe3-67dade3749d2.png)

Why not simply move the test classes to the place where all test classes live?

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.