Yeah, I'm there with you, maybe some documentation would solve this problem.

Also, maybe this isn't the optimal solution, but we could add an option to
change the current directory if you want to have the current env dir set.

As long as we differ from the NUnit console/gui, there will be confusion and
complaints.

----- Original Message -----
From: "Tomas Restrepo" <[EMAIL PROTECTED]>
To: "Scott Hernandez" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, January 19, 2003 6:55 PM
Subject: Re: [nant-dev] NUnit Error With NAnt...


> Hi Scott,
>
> > True. It took me a little while to see this. But now I understand things
> > much better. And I think I better understand where some of the issues
are
> > coming from.
> >
> > In addition to the changes you made, I think we need to set the
> environment
> > working/current directory to the <nunit2> basedir. This will allow tests
> to
> > open files and work with IO related operations as they might expect.
Then
> > after the task finishes, we can set the current directory back. This is
a
> > process level change, so we kinda have to be careful.
>
> Actually, I struggled with this while making my changes... the original
> NUnit2.0 code does this, I think, but I believe this is fundamentally
wrong,
> and will actually end up "hiding" latent bugs.
>
> Let me put it this way: Any code that relies on the CurrentDir to be set
to
> a specific value at application startup is fundamentally broken, and
likely
> reveals the developer's not familiar with the real usage of the CurrentDir
> setting. If tests need to ensure the code has a known current directory
> before invoking the tested methods, they should explicitly set it
themselves
> or on the tests StartUp() routine.
>
> --
> Tomas Restrepo
> [EMAIL PROTECTED]
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
> are you planning your Web Server Security? Click here to get a FREE
> Thawte SSL guide and find the answers to all your  SSL security issues.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
> _______________________________________________
> Nant-developers mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-developers
>
>



-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to