Hi, Thanks for your answer, and sorry for being a bit slow,
Running the test runner in my domain would be great. Are you referring to self-testing assemblies? When you mention the config option, do you mean that it's something implemented already, or just a wish? The best way would be that I create a test fabric class, and apply an attribute like [TestMotherAttribute(typeof(MyMother))] to the fixture. The MyMother class would handle creating my test classes for me. I guess it might be helpful in a lot of situations. Anyway, you mention in your next post that we are able to dynamically create tests. Could you provide an example, or point me to the docs? Thanks ulu On Mar 12, 9:58 pm, "Jeff Brown" <[EMAIL PROTECTED]> wrote: > What if I told you that you could run all of your tests inside of any kind > of test domain you like? We don't currenlyt have one for ASP.Net yet but it > would be easy to add. > > The trick is that you would have to tell the test runner to use this domain > explicitly ahead of time because when we create the domain we have not yet > even looked at your test assemblies. That means test execution inside of > TDNet and R# probably won't work right since they can't be configured with > your customized test domain. > > Something tells me that's not going to work well. > > So another option would be to create a test .dll.config file with some > instructions about how to create the test domain to host the tests. That > way we would be able to know ahead of time and without any user intervention > that your tests are to be executed with this special ASP.Net test domain. > > It might looks like: > > <configuration> > <gallio> > <domain type="ASPNetAppDomain" /> > </gallio> > </configuration> > > Sound good? > > Jeff. > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > > Behalf Of [EMAIL PROTECTED] > Sent: Wednesday, March 12, 2008 11:34 AM > To: MbUnit.User > Subject: MbUnit Re: v3 features requests > > On Mar 12, 11:32 am, "Jeff Brown" <[EMAIL PROTECTED]> wrote: > > I've been thinking about something like this for a little while but > > I'd like to understand your needs first. > > > Why does your fixture need to run in another AppDomain? > > What kind of control over the AppDomain do you require? > > Do all of your tests need to run in this other AppDomain or just some > > of them? > > > Jeff. > > I'm working on an ASP.Net testing tool (http://sm-art.biz/Ivonna.aspx). I > can host the Asp.Net engine in the test runner process, but I should create > an AppDomain for it. So, I have to execute my tests (yes, all of them) in > this AppDomain. The way it works, I should call the CreateApplicationHost > method and pass the Type I want to create. It creates an AppDomain for > Asp.net, and an instance of this type in this domain. This is what I mean by > "control": I have to create it using this method. > > Currently I solve this by creating a copy of my test class. But the best way > would be to create some parent object using this method, which will create > all test classes in the correct AppDomain for me. > > ulu > > > -----Original Message----- > > From: [email protected] [mailto:[EMAIL PROTECTED] > > On > > > Behalf Of [EMAIL PROTECTED] > > Sent: Wednesday, March 12, 2008 1:21 AM > > To: MbUnit.User > > Subject: MbUnit Re: v3 features requests > > > Hi, > > > Regarding dynamically created tests, > > > Will it be possible to create the fixture classes manually? > > > I need my tests executed in another AppDomain that I control. Right > > now I have to manually create a copy of my test class each time I run > > a test. This is not only inconvenient, it forces all dependent > > assemblies to be loaded twice, which makes it slow. > > > Perhaps it is possible even with the current version? > > > Thanks > > > ulu --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MbUnit.User" 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/MbUnitUser?hl=en -~----------~----~----~----~------~----~------~--~---
