Hello, I'm asking for advice here. I have some modular forms code, and since I'm into test driven development when writing Python, it comes with a lot of tests run by nosetest. I would like to include this into Sage as part of my code.
Question 1: Where to put this? There are two obvious choices. sage/tests/ and (in my case) sage/modular/jacobi/. The folder sage/tests/ seems hardly used, but since it exists, I wonder whether there was some agreement in the past to always put test files there. Putting test files into sage/modular/jacobi/ would make things a bit easier to find, though. Question 2: How to doctest nosetests? This is the tricky part to me. I use nosetest for development (and I'll use it for maintenance). The tests need quite some time to run. Calling them all as doctests doesn't seem to make sense. On the other hand, we have the requirement to have doctests for every funcion. The only honest way to test, say, "def test_jacobi_forms()" seems to be to execute it. Most of my tests are parametric. That means calling nosetests with test_jacobi_forms() means excessive testing, which seems too excessive even for longtest. While writing the code, however, I'm willing to spend 15 minutes on tests to make absolutely sure, I have not missed anything. Of cause, I could call test_jacobi_forms(), which returns a generator. But would that count as a test? It does not in my opinion. Do you have any idea or oppinions on how I could handle this in such a way that it fits into Sage? Best, Martin -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
