Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attaching debugger in pycharm #137

Closed
dodgyville opened this issue Feb 28, 2020 · 3 comments
Closed

attaching debugger in pycharm #137

dodgyville opened this issue Feb 28, 2020 · 3 comments

Comments

@dodgyville
Copy link

Hi,

This more of a pycharm question I guess so no worries if you don't want to answer it. Do you know how to run a ward test from within pycharm? It's great to be able to set breakpoints from there

@darrenburns
Copy link
Owner

darrenburns commented Mar 3, 2020

If you mean being able to click on the little icon in the gutter to run individual tests that'd probably require someone to develop a PyCharm plugin. As for attaching a PyCharm debugger: I'm not sure. I imagine you'd be able define a run configuration and set the script path to be the path to Ward.

@darrenburns
Copy link
Owner

Closing this for now to clean up the issues a bit. Don't hesitate to re-open if you'd like to continue the discussion though 😄

@WolfDWyc
Copy link

WolfDWyc commented Dec 9, 2023

Just updating, the best way I found on how to do this:

Create a file called run_ward.py:

from ward import _run
_run.run()

Also make sure to check "Emulate terminal in output console" to get colored output.

@darrenburns Let me know if there's a better way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants