8000 _test.py files being included in py_library rather than py_test · Issue #714 · bazel-contrib/rules_python · GitHub
[go: up one dir, main page]

Skip to content
_test.py files being included in py_library rather than py_test #714
Closed
@domenic-donato

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.

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

    0