This is a migrated thread and some comments may be shown as answers.

Specifying configuration settings

1 Answer 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sydney
Top achievements
Rank 1
Sydney asked on 17 Jul 2010, 01:57 AM
Is there any way to make the web app that is launched by my tests use a specific web.config or NHibernate.config file.  I'd like the app to use an in memory database like my other unit tests do, so I'd like it to use the config files in my test project, but it clearly is not.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 19 Jul 2010, 07:22 PM
Hi Sydney,

There is no feature in the WebAii framework to do this, but I expect you could write code to swap the web.config file (or any other file) just before launching your web app. Then run your test with the alternate file(s) in place.

Kind regards,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Sydney
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or