You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support executing tests with python -m robot #2223
We already support python -m robot.run (where instead of python you can have any other interpreter like jython or ipy) and it would be easy to add support also for python -m robot. Because robot is a package, the latter won't be compatible with Python 2.6 but that's not a big issue.
The main reason to add this is to make it a bit easier to execute tests with different installed interpreters regardless what start-up script is created and which start-up script is first in PATH. For example, on Windows you could use the py launcher like py -2 -m robot or py -3 -m robot to use Python 2 or Python 3, respectively.
Activity
[-]Support executing with `python -m robot`[/-][+]Support executing tests with `python -m robot`[/+]Added __main__.py to allow execution like `python -m robot`. #2223
pekkaklarck commentedon Nov 18, 2015
This ought to be done otherwise than updating installation instructions that is tracked by #2222. Could you @jussimalinen do a review?
jussimalinen commentedon Nov 19, 2015
Awesor!
cleanup ug related to robot runner script and -m robot. #2223 #2216
blueenergy commentedon Nov 20, 2015
Can we run test case with python -m pdb -m robot.run ... So we could enable pdb functionality with pybot easily?
pekkaklarck commentedon Nov 20, 2015
I don't know. Is that generally supported by pdb? If yes, it ought to work.
pekkaklarck commentedon Dec 30, 2015
The added
__main__.pyfile also made it possible to run tests likepython path/to/robot/in addition topython path/to/robot/run.py.