wide-midnight-78598
01/18/2022, 1:22 AMpython_sources(
name="libtest"
)
python_distribution(
name="test-dist",
dependencies=[":libtest"],
wheel=True,
sdist=False,
provides=python_artifact(
name="test-dist",
version="0.1.0",
),
)
pyoxidizer_binary(
name="test-bin",
entry_point="hellotest.main",
dependencies=[":test-dist"],
)wide-midnight-78598
01/18/2022, 1:31 AMFirst, you must set up ainstance and activate the rules and target types you'll use in your tests. Set the argumentRuleRunnerwith a list of thetarget_typestypes used in in your tests, and setTargetwith a list of all the rules used transitively.rules
This means that you must register the rules you directly wrote, and also any rules that they depend on. Pants will automatically register some core rules for you, but leaves off most of them for better isolation of tests. If you're missing some rules, the rule graph will fail to be built.
wide-midnight-78598
01/18/2022, 1:32 AMenough-analyst-54434
01/18/2022, 1:35 AMenough-analyst-54434
01/18/2022, 1:36 AMwide-midnight-78598
01/18/2022, 1:37 AM