Skip to content

_test.py files being included in py_library rather than py_test#714

Description

@domenic-donato

馃悶 bug report

Affected Rule

bazel run //:gazelle

Is this a regression?

No

Description

The python gazelle tool does not create a py_test for all _test.py files. I think it requires that the test file prefix to be the same as the package. If the prefix is not the same, it adds the _test.py file to a py_library rule.

馃敩 Minimal Reproduction

Just make a _test.py file whose prefix is not the same as the package it resides in.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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