From: Christopher Lenz <cml...@gmx.de>
Date: Wed, 25 Oct 2006 15:54:05 +0200
Local: Wed, Oct 25 2006 9:54 am
Subject: Re: [Trac-dev] Re: Moving wiki_to_html into the templates
Am 25.10.2006 um 12:48 schrieb Sergey:
> Christopher Lenz wrote: That's not a unit test, because you're also testing Trac, and are >>> Consider also that JavaScript is not good when it comes to unit >>> testing Web page generation. It's far easier to just test if >>> there's a >>> reference to a stylesheet than to test that there's a javascript >>> that >>> hopefully will insert this reference later. >> That's not really "unit testing" now, is it ;-) >> It's way easier to test this stuff at a lower level (using *actual* > Hi Chris! > I'm not sure what do you mean here. If I were a macro writer, I'd relying on the assumption that Trac doesn't shuffle stuff around so much that your test breaks without your Macro actually being broken itself. If you want to *unit test* your macro, you'd test it in isolation Of course the kind of tests you mean are also useful, but they're But even in integration tests, you'd probably call wiki_to_html() on It's only when you move on to do functional tests where you might Cheers, You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||