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

prototype to run nunit on godot process #167

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

MikeSchulze
Copy link
Owner

just a very dirty hack to prototype running godot test via nunit extension

just a very dirty hack to prototype running godot test via nunit extension
pProcess.BeginOutputReadLine();
// --> i need here to attach the current running debugger
Console.WriteLine($"Debugger: {Debugger.IsAttached}");
//DebuggerUtils.AttachDebuggerToProcess(pProcess.Id);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@van800 I need your help here ;)
How to get to current running debugger port?

@MikeSchulze MikeSchulze self-assigned this Dec 2, 2024
public class ExampleTest
{
[GodotTest]
public async Task GodotSceneTest()
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@van800 this tests runs success inside the nunit test runner.
But the debugging is not possible at the moment.

@van800
Copy link
Contributor

van800 commented Dec 3, 2024

    <Reference Include="Microsoft.VisualStudio.TestPlatform.CrossPlatEngine">
      <HintPath>$(UserProfile)\.nuget\packages\microsoft.testplatform.crossplatengine\17.12.0\lib\net8.0\Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.dll</HintPath>
    </Reference>
    

is not working fine on Mac. Remove it completely doesn't affect the compilation for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants