vidarsko / ComFiT

A python library for simulating field theories with topological defects
MIT License
3 stars 3 forks source link

Add instruction or script to run tests? #11

Closed flokno closed 2 months ago

flokno commented 2 months ago

Hi, I did not find instructions on how to run the tests. I am used to just running pytest. Here I have to run all python scripts?

I would suggest to either add a script that runs all the tests, or simply add instructions (e.g. in the test folder)

vidarsko commented 2 months ago

Thank you for raising the issue. I have added instructions on how to run the tests in the repository's README.

flokno commented 2 months ago

@vidarsko thanks -- I think you mean

python -m unittest discover -s ./tests/

? At least on Linux/macOS

vidarsko commented 2 months ago

Yes, thanks for noticing that. Apparently backslashes for directories is a windows thing (I didn't know that), but I have now changed to forward slashes and have verified that it still works on windows systems.

flokno commented 2 months ago

alright, thanks 👍