mhotan / DineOn

Git Repository for our 403(13sp) Android application "DineOn"
0 stars 0 forks source link

Restaurant Side Tests #283

Closed zachr81 closed 11 years ago

zachr81 commented 11 years ago

I got the tests running (with assertion failures) in Eclipse, so they should be ready to be fixed.

Mark uploaded the new build files to the repo, so just pull those to run Emma. Most of the tests are easy to fix, so I think if you just fix the Robotium test that'd be good, then run Emma to find where we need coverage. and just tell me which activities you're writing tests for so we don't do the same things (maybe start with Robotium tests, since activity switching isn't tested much at this point). I should have fixes for everything else uploaded soon, and I'll send you what I'm writing tests for.

And avoid any network calls in the test (some methods may call them, just minimize that), so don't save users, etc. Anytime there's an assertion error, they don't get deleted, so the next run fails until you clean the db.

rocketgarden commented 11 years ago

Ok, I've got RestaurantProfileActivityTest and OrderDetailActivityTest working.

RestaurantMainActivityTest needs a lot of help (we might just want to nuke it) and DineOnRestaurantActivityTest has a few failures that I'm not really sure how to fix, but seem like they'd be simple if one knows what's supposed to be happening.