AW: [fitnesse] Acceptance testing when a database is involved
Acceptance testing when a database is involvedWe use both. In fact to me this is the biggest advantage of FitNesse, that we are able to show our customer the acceptance tests we wrote and to execute them. He is not interested in nullpointer-checks, after all.Our developers write some of their tests as FitNesse tests and we testers automate some of our acceptance tests in FitNesse. The developers execute their (fast) tests very often, while we run our suite only once a day/night.To make these work we use included pages which contain only tests of one kind.Stephan-----Ursprüngliche Nachricht-----
Von: Meloro, John [mailto:MeloroJ@...]
Gesendet: Dienstag, 28. Februar 2006 17:03
Betreff: RE: [fitnesse] Acceptance testing when a database is involvedI am in agreement with you. I see no reason why acceptance tests cannot be automated.However, I have run into opposition to that approach because it does really slow things down. In addition, I have the impression that Fit was never really envisioned to be used for end to end testing.-----Original Message-----
From: Stuart Foster [mailto:stuartf@...]
Sent: Tuesday, February 28, 2006 10:54 AM
Subject: [fitnesse] Acceptance testing when a database is involved
I am still plugging away through the Fit book and have successfully created some tests. Thanks to all that helped me out.
I have a more fundamental question when it comes to acceptance testing. Our applications are your basic DB types. We started doing unit tests about 2 years ago and had much success in the beginning. However they started to do much more then test the Unit. They started to test CRUD (Create, Read, Update, and Delete) operations. This slowed the tests down quite a bit, as Uncle Bob would say, they started to smell. We have since learned we should re-factor them and remove the persistence layer.
My question is, should the acceptance tests be allowed to interact with the DB (through the model of course), or should they use a similar mock scenario that unit tests can? I would think it would be Ok, because the tests are written with more of the whole model in mind. And from what I am reading many acceptance tests are written at the controller layer of an MVC architecture.
Optimizing Care through Efficiency(tm)
Note: The information contained in this message and any attachments is privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, or other use of this communication or any of its attachments is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and deleting this message, any attachments, and all copies and backups from your computer. If you have received this communication in error and are unable to reply to this message, please notify the sender immediately by contacting MediServe at (480) 831-7800.