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

Test configuration #199

Closed
oscargus opened this issue Apr 11, 2023 · 2 comments · Fixed by #204
Closed

Test configuration #199

oscargus opened this issue Apr 11, 2023 · 2 comments · Fixed by #204
Assignees
Milestone

Comments

@oscargus
Copy link

oscargus commented Apr 11, 2023

Description of your problem

I'd like to run my tests with the flag --mpl to enable pytest-mpl, but as far as I can see it is not possible?

As a minor feature request (as in less "urgent"), it would be nice to be able to set environment variables when running the tests as well. For example PYTEST_QT_API. It is possible to set it before starting Spyder, but sometimes one would like to change without restarting or simply forget to set it...

What steps will reproduce the problem?

What is the expected output? What do you see instead?

Paste traceback/error below (if applicable)

(Copy from error dialog or View > Panes > Internal Console)

<!--- PASTE TRACEBACK HERE --->

Key versions and other information:

  • Spyder version: 5.4.2
  • Version of spyder-unittest plugin: 0.5.1
  • Installation method for Spyder and the unittest plugin: conda
  • Python version: 3.10.10
  • Testing framework used: py.test
  • Testing framework version:
  • Operating system:
@jitseniesen
Copy link
Member

@oscargus You're right, that's not possible at the moment. I can add a text field to the test configuration window where you can specify additional command line arguments like --mpl. Would that work for you?

@oscargus
Copy link
Author

That would be awesome! Thanks!

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

Successfully merging a pull request may close this issue.

2 participants