-
Notifications
You must be signed in to change notification settings - Fork 95
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
Tests fail to run: no tests ran in 0.09 seconds #65
Comments
Hi Yuri |
Are there instructions on how to run tests? |
Hi Yuri I did not expect anyone else besides myself to run these tests. The instructions are in the .circleci/config.yml file, although they might seem a little bit confusing because of the way I wrote moltemplate. Here are the details: First, some background: Although the majority of moltemplate was written in python, these python scripts are typically invoked one after another by a bash script named "moltemplate.sh". Each python script creates temporary files which the next python script reads. (So the output of one python script becomes the input of the next python script.) I wrote it this way because I originally ran into problems using up too much memory if I tried to run everything from within python. (I didn't know about the "gc" module or python slots at the time.) As a result, I don't use python (or pytest) to test moltemplate. Instead I run the "moltemplate.sh" script multiple times, under different conditions, and I check that the output files generated are correct each time. (I also test several other scripts, such as "ltemplify.py", which are included with moltemplate.) First you will have to install moltemplate using pip. To do this safely without messing up your existing python environment, I use a virtual environment and install moltemplate there:
Then run these commands to test moltemplate.sh. (Note: I use "shunit2" to exit with a non-zero exit code if any of the "assertTrue" statements contained in the various .sh files fail.)
Do you have any suggestions regarding how to implement these tests? |
I will close this issue. Feel free to reopen it if I have failed to address your concerns. |
Maybe you can create a single shell script that would run the above test commands:
? |
Also one of the tests fail:
|
Hi Yuri |
setup.py says that pytest is required for tests, but it fails to run them:
Version: 2.20.1
Python-3.8
pytest-4.6.11
FreeBSD 13
The text was updated successfully, but these errors were encountered: