简体   繁体   中英

how to debug specflow test in Visual Studio Code

I have set up an 'nunit' .NET Core project in Visual Studio Code and successfully got my specflow tests running (when I run 'dotnet test' at the terminal).

Now I'd like to be able to debug a test -- but it doesn't stop at my breakpoint in my step file (I have set a breakpoint in my test code, then I click the 'Debug' icon on the left side and then click the Start Debugging button -- but the debugger doesn't stop at my breakpoint).

Does anyone know how to get this working? (Thanks in advance for any thoughts.)

I found a way to debug the specflow test in visual studio code. Go into the cs generated feature eg the .feature.cs file.

You have the usual option "Debug All Test" next to the class name. Like in this picture

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM