Hi Mesar Mesar Hameed <mesar.hameed@xxxxxxxxx> writes: > At wich point you said you liked some format that ruby uses for its > testing, which you were going to investigate and get back to me on. I did some research regarding the ruby dsl (domain specific language) for testing. I think I was mostly thinking about rspec that defines a dsl which lets you define tests in a very natural and easy way. However some more research seemed to reveal that in Python it is much harder to create a dsl, but there are other options to do testing in Python: 1. write your tests using Python unit test (http://docs.python.org/release/2.6.5/library/unittest.html) 2. write some kind of data structure that is interpreted by Python (your proposal) 3. write the tests in some form of csv which is read by the Python csv module and then interpreted by Python (my original proposal) 4. write doctests (http://docs.python.org/release/2.6.5/library/doctest.html) 5. Write tests using pytest (http://pytest.org/latest/contents.html) > Looking back at the IRC logs, I thought we agreed that csv files would > cause more trouble than worth, because we couldn't find a field > seperator that could not potentially appear in the input, in which > case it would have to be escaped etc. What I liked about proposal 3 is that it is very concise and lets you define tests very easily (even for a non-programmer). I thought the csv module alleviates some of the drawbacks of using a lose format such as csv (quote handling, delimiters, etc). Csv is very easy for the simple cases. But looking at the other choices I'd say for our case option 4 is probably best. It is fairly concise and it is a standard. Pytest seems also very nice and could be grafted on top of your proposal at a later stage. I'll have to think about it some more but I'm coming to the conclusion that we should delay this discussion about testing frameworks. We should use your tests, see how they are used and then if need be migrate to a test framework at a later point. Thanks Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland ----- Jetzt kostenlos eidgenoessische und kantonale Abstimmungsunterlagen aus 17 Kantonen zum Hoeren auf CD abonnieren: medienverlag@xxxxxx For a description of the software, to download it and links to project pages go to http://www.abilitiessoft.com