-
Notifications
You must be signed in to change notification settings - Fork 93
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
Test exploration #2454
Test exploration #2454
Conversation
@@ -30,6 +30,8 @@ public abstract class MultithreadedAnalyzeCommandBase<TContext, TOptions> : Plug | |||
internal ConsoleLogger _consoleLogger; | |||
internal ConcurrentDictionary<string, IAnalysisLogger> _analysisLoggerCache; | |||
|
|||
internal static int? s_numberOfThreadsForTesting; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed.
} | ||
|
||
private const string AnalyzerName = TestRuleId + "." + nameof(TestRule); | ||
|
||
public static PerLanguageOption<uint> ErrorsCount { get; } = | ||
new PerLanguageOption<uint>( | ||
AnalyzerName, nameof(ErrorsCount), defaultValue: () => { return 15; }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -676,6 +676,54 @@ public void AnalyzeCommandBase_EndToEndAnalysisWithPostUri() | |||
PostUriTestHelper(@"https://host.does.not.exist", TestAnalyzeCommand.FAILURE, RuntimeConditions.ExceptionPostingLogFile); | |||
} | |||
|
|||
[Fact] | |||
public void MultithreadedAnalyzeCommandBase_EndToEndMultithreadedAnalysis() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
for (int i = 0; i < 100; i++) | ||
{ | ||
var options = new TestAnalyzeOptions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -592,7 +596,7 @@ internal AggregatingLogger InitializeLogger(AnalyzeOptionsBase analyzeOptions) | |||
|
|||
if (filePath != null) | |||
{ | |||
context.TargetUri = new Uri(filePath); | |||
context.TargetUri = new Uri(filePath, UriKind.RelativeOrAbsolute); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closing this since we merged this pr in the following: |
No description provided.