PyTest icon indicating copy to clipboard operation
PyTest copied to clipboard

How to configure pytest in sublime to run pytest with sublime

Open yuzhujiutian opened this issue 5 years ago • 1 comments

I like sublime, so i want to use sublime instead of pycharm.

How to configure pytest in sublime to run pytest with sublime?

pytest version

image

python build setting (sublime -> Tools -> New Build System...) image

image

yuzhujiutian avatar May 15 '19 14:05 yuzhujiutian

You probably set the pytest key. Ref: https://github.com/kaste/PyTest#config

  "pytest": "D:\\heloc\\...\\Scripts\\py.test.exe"

either globally or per project.

I don't know pipenv good enough but something like ["pipenv", "run", "python", "-m", "pytest"] could also work and would be more generic. (But maybe also slower?)

kaste avatar May 15 '19 18:05 kaste