Closed fyliu closed 8 months ago
Suggestions to exercise the changes:
createsuperuser.sh
script. It should create a super user according the env vars in .env.dev
. If those vars don't exist, you will need to copy the vars from the sample file and set their values.migrate.sh core 0010
to roll back to a previous database version. Call migrate.sh core
to update to the latest version. Core is the core app where we have all our code.test.sh -k program_area
to run only the program_area tests. The server may have to be running in the background for this to work.test_program_area
test from test_model.py
and then run tests.sh
to see the coverage report. It should show the code lines that's not covered by tests. All the tests should pass.lint.sh
to auto-format it..Can you verify that there will be discrepancies between the coverage % between running a filtered test and the main test.sh
script?
I'm getting 78% coverage on the filtered test and 99% on the main one.
Results from running test.sh -k program_area
Results from running tests.sh
@alexlaw528 yes, selecting a subset of tests to run will affect the coverage number to be lower than running all the tests.
I updated the documentation to describe some of the fixes. For the -k
option, I added the recommendation to also use the --no-cov
option to disable the coverage report, since it's not useful in that case.
Fixes #221
What changes did you make?
Why did you make the changes (we will use this info to test)?
Screenshots of Proposed Changes Of The Website (if any, please do not screen shot code changes)
Visuals before changes are applied
![image](Paste_Your_Image_Link_Here_After_Attaching_Files)Visuals after changes are applied
![image](Paste_Your_Image_Link_Here_After_Attaching_Files)