gleb-sevruk / pycrunch-engine

NCrunch inspired tool for continuous testing Python
https://pycrunch.com
Other
57 stars 8 forks source link

PyCharm plugin & Pycrunch engine started but nothing append in UI #113

Open sGeeK44 opened 8 months ago

sGeeK44 commented 8 months ago

Hi, first of all, thank's a lot for your wonderfull project :) I'm a fanatic of NCrunch/Wallaby.js and it's a long time that i'm looking for a tools like fot python ! I've tried something long time ago :sweat_smile: (https://github.com/sGeeK44/python-live-testing) but never see light. maybe a day i can contribute to develop VsCode plugin to your project.

I tried to setup tool, but nothing append in my UI (no circle color). When i open web-ui, test is well discorvered but doesnt run automaticly, I have to click on it.

Could you give me some help ? How can I activate log to view what's coul be my problem ?

image image

gleb-sevruk commented 8 months ago

Hello, the intended behavior is that tests won't be run automatically on engine startup, hence you do not see coverage.

It may be time-consuming to run all at once, but I agree that this is not clear.

Please try opening PyCrunch tool window in IDE (noted in arrow) and run the desired tests manually for the first time:

image

Do you see discovered tests there?

You can select all tests by CMD+A (Ctrl+A on Windows)

For logs you will need to change file log_configuration.yaml in site-packages: /Users/gleb/venv/pycrunch_integration_tests_3_11/lib/python3.11/site-packages/pycrunch/log_configuration.yaml

image

and change

handlers:
  console:
    class: logging.StreamHandler
    level: INFO
    formatter: simple
    stream: ext://sys.stdout

To level to DEBUG

handlers:
  console:
    class: logging.StreamHandler
    level: DEBUG
    formatter: simple
    stream: ext://sys.stdout

By the way, your link (https://github.com/sGeeK44/python-live-testing) is not working, probably repo is private :)

And there is VSCode extension in development now and will be ready for alpha release in week or two, we will open source repository with the extension soon