Skip to content
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 Runs and gives pass or fail but test console button will show that the test is still running #2764

Open
abinrajr95 opened this issue Sep 3, 2024 · 0 comments
Labels

Comments

@abinrajr95
Copy link

SpecFlow Version

3.9.74

Which test runner are you using?

MSTest

Test Runner Version Number

3.9.40

.NET Implementation

.NET 6.0

Project Format of the SpecFlow project

Classic project format using <PackageReference> tags

.feature.cs files are generated using

SpecFlow.Tools.MsBuild.Generation NuGet package

Test Execution Method

Visual Studio Test Explorer

SpecFlow Section in app.config or content of specflow.json

{
"$schema": "https://specflow.org/specflow-config.json",
"unitTestProvider": {
"name": "MsTest"
},
"stepAssemblies": [
{
"assembly": "StepLibrary"
}
]
}

Issue Description

When i run the test , the runs and completes gives me pass or fail but the test explorer the test execution is not complete please see the screenshot
image

I did debugging and found out that the execution is setting stuck in MsTest.AssemblyHooks.cs in the line TestRunnerManager.OnTestRunEnd(currentAssembly)

[AssemblyCleanup]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void AssemblyCleanup()
{
var currentAssembly = typeof(BasicSystemTests_MSTestAssemblyHooks).Assembly;

TestRunnerManager.OnTestRunEnd(currentAssembly);

}

Please note the .NET version i am using is .NET 8.0

Steps to Reproduce

I observe that this is not happening if an external assembly is not used.

Link to Repro Project

No response

@abinrajr95 abinrajr95 added the Bug label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant