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

How to run tests in the PyPOTS tests folder? #558

Open
giacomoguiduzzi opened this issue Jan 15, 2025 · 1 comment
Open

How to run tests in the PyPOTS tests folder? #558

giacomoguiduzzi opened this issue Jan 15, 2025 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@giacomoguiduzzi
Copy link

Issue description

Hi everyone,

I am working on editing a couple of functions in PyPOTS code as I believe it would be more flexible for the library to handle the case, for example, where no GPU is present in the system (which at the moment raises an Exception) and other edits on formulas for the computation of metrics. I was going to submit the modifications through a Pull Request so that you can examine it, but I wanted to run the tests before creating a Pull Request so to make sure that everything works file (and test it in my software as well for specific cases where things could go wrong). I've been trying to use Unittest and Pytest to run them, but every time I try the IDE tells me that there are no tests and nothing was done. Thus, how do you usually run these tests, what command do you use? I wanted to use it in PyCharm to help myself with the debugger for part of code that are not working for any reason.
Thanks in advance, I'm looking forward to your kind response.

Best Regards,
Giacomo Guiduzzi

@giacomoguiduzzi giacomoguiduzzi added the question Further information is requested label Jan 15, 2025
@WenjieDu WenjieDu self-assigned this Jan 17, 2025
@WenjieDu
Copy link
Owner

Hi, please try pytest, e.g. run pytest -rA -s tests/imputation/saits.py

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

No branches or pull requests

2 participants