Skip to content

[MSTest v4] Fail when discovery fails on a class #5327

@Youssef1313

Description

@Youssef1313

// If we fail to discover type from a class, then don't abort the discovery
// Move to the next type.
string message = string.Format(CultureInfo.CurrentCulture, Resource.CouldNotInspectTypeDuringDiscovery, typeFullName, assemblyFileName, exception.Message);
PlatformServiceProvider.Instance.AdapterTraceLogger.LogInfo($"AssemblyEnumerator: {message}");
warningMessages.Add(message);

This has to be a clear failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: MSTestIssues with MSTest that are not specific to more refined area (e.g. analyzers or assertions)Breaking ‼️

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions