-
Couldn't load subscription status.
- Fork 287
Configuring child domain's appbase to be test source location #659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
740474b
e34a4c3
c554dd5
0fef58c
36d39bc
752baab
6fc051c
b0f5851
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -222,9 +222,6 @@ private void ExecuteTestsInSource(IEnumerable<TestCase> tests, IRunContext runCo | |
| typeof(UnitTestRunner), | ||
| new object[] { MSTestSettings.CurrentSettings }) as UnitTestRunner; | ||
|
|
||
| // After loading adapter reset the chils-domain's appbase to point to test source location | ||
| isolationHost.UpdateAppBaseToTestSourceLocation(); | ||
|
|
||
| PlatformServiceProvider.Instance.AdapterTraceLogger.LogInfo("Created unit-test runner {0}", source); | ||
|
|
||
| // Default test set is filtered tests based on user provided filter criteria | ||
|
|
@@ -247,11 +244,31 @@ private void ExecuteTestsInSource(IEnumerable<TestCase> tests, IRunContext runCo | |
| sourceLevelParameters = sourceLevelParameters.Concat(this.sessionParameters).ToDictionary(x => x.Key, x => x.Value); | ||
| } | ||
|
|
||
| var sourceSettingsProvider = isolationHost.CreateInstanceForType( | ||
| typeof(TestAssemblySettingsProvider), | ||
| null) as TestAssemblySettingsProvider; | ||
| TestAssemblySettingsProvider sourceSettingsProvider = null; | ||
|
|
||
| try | ||
| { | ||
| sourceSettingsProvider = isolationHost.CreateInstanceForType( | ||
| typeof(TestAssemblySettingsProvider), | ||
| null) as TestAssemblySettingsProvider; | ||
| } | ||
| catch (TypeLoadException ex) | ||
| { | ||
| PlatformServiceProvider.Instance.AdapterTraceLogger.LogInfo( | ||
| "Could not create TestAssemblySettingsProvider instance in child app-domain", | ||
| ex); | ||
| } | ||
|
|
||
| TestAssemblySettings sourceSettings; | ||
| if (sourceSettingsProvider != null) | ||
jayaranigarg marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| sourceSettings = sourceSettingsProvider.GetSettings(source); | ||
| } | ||
| else | ||
| { | ||
| sourceSettings = new TestAssemblySettings(); | ||
| } | ||
|
|
||
| var sourceSettings = sourceSettingsProvider.GetSettings(source); | ||
| var parallelWorkers = sourceSettings.Workers; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure that default values for sourceSettings.Workers, & Scope is set appropriately in case we fail to create instance of "TestAssemblySettingsProvider" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, checked that. |
||
| var parallelScope = sourceSettings.Scope; | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.