> I don't think I understand your proposal. An example would be
> extremely helpful here. Under your proposal, what would my new
> tests.py look like? How would I invoke a single test? A single test
> case? A single suite?
That's not exactly my proposal. Proposal was reported by someone else
and the ticket was accepted, so I hoped I could sit down to it. It
seemed confined and would allow to get a very close look at the test
framework, so I would like to try and code it.
That it must be backward compatible is very clear to me. The example
would look like this:
class TestCase1(TestCase):
..
class TestCase2(TestCase):
..
class TestSuite1(TestSuite):
case1 = TestCase1
case2 = TestCase2
Now you can run:
./manage.py test app.TestCase1
or if you wish
./manage.py test app.TestSuite1
and TestSuite1 would run all test cases, that were specified in test suite,
As I understand the need (once again, I am not the reporter, I am
trying to understand, how it should work too) this would allow you to
group some tests from an app and instead of calling all the tests from
an app or specify them explictly, you group them in a suite and run
just the suite. This might be useful, if there are plenty of tests in
an app and you would like to run only a subset of them, which still
might be significantly large. Then you build a suite and you can
specify only this suite. But maybe Alex had something different in
mind - if he could specify it better, I'd love to conform to this. At
this point I am not very into any design decisions, not with mu
current knowledge of Django. I'd would like to dive into the code base
and learn. This seemed as a good start.
--
Filip Gruszczyński
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---