klin-usgs / shakecast_v4

Other
0 stars 2 forks source link

More extensive tests written including a full system test #53

Closed dslosky closed 8 years ago

dslosky commented 8 years ago

Writing test functions helped me to find bits of the code that were already not doing exactly what they were supposed to. I fixed these bugs, and put the tests together in a way that they can access their own empty database; this means we can pull in events, create users/groups/facs, and test for database contents without touching the actual shakecast db. More unit tests could be written, and there is currently no testing for the UI -- however, it is possible to make UI tests, and we should probably do so on both the Python and Angular platforms.

dslosky commented 8 years ago

Next round of tests: More in depth testing on full system run -- Check the database to make sure notifications sent and events were processed UI testing -- testing for user access, data validation, malicious attacks Import functions -- import XML functions

dslosky commented 8 years ago

That last commit fixes an issue where multiple shakemaps wouldn't process with a single function call