Skip to content

Tests in the source tree #4

@nielsbasjes

Description

@nielsbasjes

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions