I propose that we add into the tethys scaffold a 'bare-bones' framework for creating your own app tests that can then be run with a corresponding tethys command (i.e. "tethys manage test my_app.tests").
I wrote some tests for an app I'm working on, and I tried for a while to find out how to run my tests on the server from the command line, but couldn't. Maybe it's easier than I now think, but I just couldn't figure it out quickly enough to feel comfortable about my time use. I imagine you would know how this could be done, Nathan?
I know that Django provides a framework for testing that is executed by running 'python manage.py test.' When I tried to run that command, I kept getting the following message:
Creating test database for alias 'default'...
Got an error creating the test database: permission denied to create database
Type 'yes' if you would like to try deleting the test database 'test_tethys_default', or 'no' to cancel:
For now I have just made my testing function a controller that I access with through a specific URL, but it would be nice to be able to test more officially through the terminal. But again, would it be possible to have the 'tethys scaffold' command create a 'tests' folder that already has the '__init__.py' and a python file with a Django test class already implemented in a very basic form to give app creators a starting point to make tests if they would like? What are your thoughts?