wide-midnight-78598
06/11/2023, 2:57 PMBuiltinGoal
?
https://www.pantsbuild.org/docs/rules-api-testing#approach-2-run_rule_with_mocks-unit-tests-for-rules has 4 recommendations, and the one that seems to apply is unfortunately the slowest (approach 4).
Alternatively, I could pass a bunch of mocks into
def run(
self,
build_config: BuildConfiguration,
graph_session: GraphSession,
options: Options,
specs: Specs,
union_membership: UnionMembership,
) -> ExitCode:
but that almost feels like I'd be bypassing anything resembling reality for this kind completions test, as the input is pretty critical herewide-midnight-78598
06/11/2023, 2:57 PMwide-midnight-78598
06/11/2023, 3:00 PMoptions_test.py
and manually create the options container, and pass that in 🤷wide-midnight-78598
06/11/2023, 3:06 PMcreate_options_bootstrapper
and create_goal_subsystem
utils should be highly relevantwide-midnight-78598
06/12/2023, 2:28 AMrun_pants
tests for the completions takes 25 seconds on my Mac Mini M2 - which is a brutally long time