Blog

Testing and More Data Modelling

We migrated this website to a new platform, and are working to correct formatting errors in older blog posts as a result. If you encounter an error, please send an email to scholarslab@virginia.edu. Thanks!

Now that we’ve spent a few weeks focusing on wireframing, we’re back to working on the data model.  We haven’t actually created the models in rails yet, but we have started redesigning it, and it makes much more sense the second time around.  Currently, we’re adding a user model, renaming all the other models, combining the “TextDoc” and “ImgDoc” models into a new model called “PrismObject,” and adding a “Page” model.  We’ll post our next version here when it’s ready.

We’ve also been learning about the wonders of testing.  Of course, we’ve all had our own (frustrating) experiences with debugging, but it looks like Test-Driven-Development will help us minimize our errors, or at least catch them earlier.  We’re now supposed to write the test before we write the code, and the test will tell us whether our code passed or failed.  I think it will take some practice to actually write the tests correctly, but I think it will pay off once I get used to it.

Cite this post: Annie Swafford. “Testing and More Data Modelling”. Published November 29, 2011. https://scholarslab.lib.virginia.edu/blog/testing-and-more-data-modelling/. Accessed on .