I believe the old test broke because of a change in how you setup STA
threads that was introduced for .Net 2.0. The old method used in .Net
1.1 no longer works. The WatiN documentation [1] has the best
explanation I can see that is relevant.

I agree that what I was describing was much more an integration test.

I also think I have worked out a way to use the MockWikiApplication to
read xml bits that would look like they come from a configuration file
but are in the unit test code or a setup code bit.

Having worked with the Web app and the Formatter I think moving to an
MVC model has to be out of scope for a 2.0 release. Depending upon
when WatiN releases their recorder in a production version FlexWiki
could then try to get it working as a post 2.0 release activity. This
would at least let the Web app portion be fully integration tested
again.


[1] http://watin.sourceforge.net/apartmentstateinfo.html


John Davidson

On 8/24/07, Craig Andera <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Actually, what you're describing is more along the lines of an integration
> test than a unit test. Part of what I did when I upgraded the core to the
> 2.0 architecture was to write unit tests that have as little external
> dependencies as possible. For example, the SqlProvider stuff goes against a
> mock database, not an actual Sql Server instance.
>
>
>
> I think if you're looking to add tests for FlexWiki.Web, there are two ways
> to go:
>
>
>
> 1)      Switch FlexWiki.Web to an MVC model that lets use actually lets us
> do unit tests.
>
> 2)      Do integration testing.
>
>
> #1 is a pretty big shift, although it could be done incrementally. #2 is
> actually something we used to do – that's what BuildVerificationTests are. I
> switched them off a while back, though, because our crappy homegrown
> integration testing framework stopped working and I never got a chance to
> figure out why. It should die anyway – there are better alternatives today.
> One I can think of off the top of my head is WatiN.
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Flexwiki-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flexwiki-users

Reply via email to