Executing Run/Debug configuration from CLI

已回答

Hi

I have a few Run/Debug Configurations I'd like my CI/CD solution to execute. Is there a way to get this done?

I saw the PyCharm has a CLI option - can you make it possible to execute the setups via CLI?

 

Regards,

Neow

0

Run configuration is basically a graphical way to add various options to the script execution. You can do it from the CLI the same way.
Unfortunately, passing a run configuration as an argument is not possible.

0

Yes but I'd have to manually create those CLI script. That would also be a shame since the tool has offered many capabilities to create run configs easily.

All I'm looking for is a way to run it without opening up the editor in GUI e.g. scheduled testing. End of day I can always process the .idea/runConfigurations/*.xml myself, just thought if you have a solution that would be best.

0

The workaround I think of is with using a GUI. Probably create a script, which selects needed configuration (by xdotool?) and press (with xdotool) the shortcut Shift + F10 of Shift + F9.

0

请先登录再写评论。