Commit 584d6cc3 authored by Alec's avatar Alec

Updated README to include tips about the functional test and other useful command-line code.

parent 18825202
# midterm project cs40 # midterm project cs40
### There are 13 views. The 12 views in the specsheet and a home directory view. There is 1 test per view (13 tests) within the froyo app. The functional test walks through all the pages, checks their contents. It takes about 45 seconds overall to run. ### There are 13 views. The 12 views in the specsheet and a home directory view. There is 1 test per view (13 tests) within the froyo app. One functional test walks through all the pages and checks the content proper and titles in the html are present to make sure it is correct. The three other tests check the functionality of updating and creating in the 3 respective models. It takes about 45 seconds overall to run all the tests.
### run: "python manage.py runserver" in the command line to start up the project.
### Project needs to have been started up before running functional tests below.
### run: "python functional_test.py" in the command line to run all 4 functional tests.
### run: "python functional_test.py UserTest.test_can_walk_and_display_all_pages" in the command line to run the test that shows that all the links work.
### run: "python functional_test.py UserTest.test_create_and_update_pages_for_ingredients_work" in the command line to run the test that shows that all the update and create pages work properly for the ingredients model.
### run: "python functional_test.py UserTest.test_create_and_update_pages_for_orders_work" in the command line to run the test that shows that all the update and create pages work properly for the orders model.
### run: "python functional_test.py UserTest.test_create_and_update_pages_for_recipes_work" in the command line to run the test that shows that all the update and create pages work properly for the recipes model.
### run: "python manage.py test" to run tests on all of the views and to make sure they load the correct template.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment