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

Pytest not running only selected file #786

Closed
renatomello opened this issue Feb 6, 2023 · 4 comments · Fixed by #796
Closed

Pytest not running only selected file #786

renatomello opened this issue Feb 6, 2023 · 4 comments · Fixed by #796
Assignees
Labels
bug Something isn't working

Comments

@renatomello
Copy link
Contributor

renatomello commented Feb 6, 2023

When using pytest, we are unable to run tests for only one test file.

As @stavros11 mentioned on Teams, this seems to come from the flag --pyargs qibo in pyproject.toml

@renatomello renatomello added the bug Something isn't working label Feb 6, 2023
@scarrazza
Copy link
Member

Yes, this is expected, you should launch pytest from outside the qibo directory.

@renatomello
Copy link
Contributor Author

Before I was always able to run it either from the local cloned repository or directly from the qibo/src/qibo/tests/, which is in line with what was presented in the Documentation presentation that was given a couple of months ago.

Now it's only possible when removing the aforementioned flag. What's the right way to do it?

@scarrazza
Copy link
Member

@renatomello this behaviour is being fixed in qiboteam/qibolab#301 and will be ported to this repo too.

@renatomello
Copy link
Contributor Author

I see. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants