happy-kitchen-89482
09/27/2019, 5:42 PMException: Type PythonTargetAdaptor is not a member of the TestTarget @union ("A union for registration of a testable target type.")
aloof-angle-91616
09/27/2019, 5:43 PMaloof-angle-91616
09/27/2019, 5:43 PMUnionRule(PythonTargetAdaptor, TestTarget)
in that file and it should workaloof-angle-91616
09/27/2019, 5:44 PMengine_initializer.py
is confusing and looks very legacy and i just deleted some of that logic in my hack branchhappy-kitchen-89482
09/27/2019, 5:45 PMaloof-angle-91616
09/27/2019, 5:46 PMUnionRule(...)
expression in any file's def rules()
somewhere should fix the issuehappy-kitchen-89482
09/27/2019, 5:46 PMaloof-angle-91616
09/27/2019, 5:46 PMhappy-kitchen-89482
09/27/2019, 5:46 PMwitty-crayon-22786
09/27/2019, 5:46 PMaloof-angle-91616
09/27/2019, 5:46 PMhappy-kitchen-89482
09/27/2019, 5:46 PMaloof-angle-91616
09/27/2019, 5:46 PMhappy-kitchen-89482
09/27/2019, 5:47 PMwitty-crayon-22786
09/27/2019, 5:47 PMhappy-kitchen-89482
09/27/2019, 5:48 PMhappy-kitchen-89482
09/27/2019, 5:48 PM./pants test src/python::
to do the right thing.witty-crayon-22786
09/27/2019, 5:48 PMaloof-angle-91616
09/27/2019, 5:48 PMhappy-kitchen-89482
09/27/2019, 5:48 PMhappy-kitchen-89482
09/27/2019, 5:49 PMwitty-crayon-22786
09/27/2019, 5:49 PMhappy-kitchen-89482
09/27/2019, 5:50 PMwitty-crayon-22786
09/27/2019, 5:50 PMaloof-angle-91616
09/27/2019, 5:51 PMhundreds-father-404
09/27/2019, 6:30 PMwitty-crayon-22786
09/27/2019, 6:54 PM./pants binary ${thing}::
on a directory that isn't packagable.happy-kitchen-89482
09/27/2019, 7:19 PMwitty-crayon-22786
09/27/2019, 7:20 PMaloof-angle-91616
09/27/2019, 7:21 PMwitty-crayon-22786
09/27/2019, 7:24 PMwitty-crayon-22786
09/27/2019, 7:25 PM@rule
decide to skip doing something based on union-membernesshappy-kitchen-89482
09/27/2019, 7:26 PMwitty-crayon-22786
09/27/2019, 7:26 PMhappy-kitchen-89482
09/27/2019, 7:27 PM./pants test path/to/a/non-test/target
to failwitty-crayon-22786
09/27/2019, 7:27 PMhappy-kitchen-89482
09/27/2019, 7:27 PMwitty-crayon-22786
09/27/2019, 7:27 PMTestTarget
union. but it isn't fallible, so the run fails if it isn't.happy-kitchen-89482
09/27/2019, 7:28 PMwitty-crayon-22786
09/27/2019, 7:29 PMwitty-crayon-22786
09/27/2019, 7:30 PMwitty-crayon-22786
09/27/2019, 7:30 PMwitty-crayon-22786
09/27/2019, 7:30 PMhappy-kitchen-89482
09/27/2019, 7:30 PMwitty-crayon-22786
09/27/2019, 7:30 PMwitty-crayon-22786
09/27/2019, 7:31 PM./pants roots
doesn't consume it.witty-crayon-22786
09/27/2019, 7:31 PM./pants list
does, but not transitivelyhappy-kitchen-89482
09/27/2019, 7:31 PMhappy-kitchen-89482
09/27/2019, 7:31 PM./pants test <glob>
should run on however many test targets there were, including zero.happy-kitchen-89482
09/27/2019, 7:32 PM./pants test /not/a/test/target
should failwitty-crayon-22786
09/27/2019, 7:32 PMhappy-kitchen-89482
09/27/2019, 7:32 PMhappy-kitchen-89482
09/27/2019, 7:32 PMhappy-kitchen-89482
09/27/2019, 7:32 PMwitty-crayon-22786
09/27/2019, 7:33 PMSpecs
witty-crayon-22786
09/27/2019, 7:34 PMPythonTargets
as their roots.witty-crayon-22786
09/27/2019, 7:35 PM@console_rule
is generic.witty-crayon-22786
09/27/2019, 7:35 PMTestTarget
union as rootswitty-crayon-22786
09/27/2019, 7:37 PM@console_rule
def fast_test(console: Console, test_targets: TestTargets) -> Test:
... and TestTargets
would be pre-filtered from the roots.witty-crayon-22786
09/27/2019, 7:37 PMwitty-crayon-22786
09/27/2019, 7:39 PMwitty-crayon-22786
09/27/2019, 7:39 PM