https://pantsbuild.org/ logo
p

purple-plastic-57801

05/17/2023, 1:36 AM
Is there a way I can run an adhoc tool or shell_command as a test? In particular, I want to run
npm test
I have npm run build| and npm start working šŸ˜ƒ
b

broad-processor-92400

05/17/2023, 1:41 AM
I don't know if they integrate with
system_tools
etc. yet... So, another option might be an
adhoc_tool
that runs
npm test
and then a
experimental_test_shell_command
"test" that depends on the "output" of that
adhoc_tool
. I think the test can do nothing, it just needs to exist as a hack to ensure there's dependencies that trigger the
npm test
"codegen" in the
pants test
goal
p

purple-plastic-57801

05/17/2023, 2:00 AM
Hmm if command="" it yells at me
experimental_test_shell_command does work though
šŸŽ‰ 1
b

broad-processor-92400

05/17/2023, 2:01 AM
ah, yeah, you might need
command="true"
or something
4 Views