Delsin-Yu / CSharp-Wrapper-Generator-for-GDExtension

This editor plugin generates C# wrappers for classes from the GDExtension plugins.
MIT License
11 stars 2 forks source link

Add GDMP Demo Test #26

Closed ZerxZ closed 2 months ago

Delsin-Yu commented 2 months ago

No, this is not the correct way to do Unit Tests.

GeorgeS2019 commented 2 months ago

@ZerxZ This is one way to do Integation test by running the FaceLandmarker.tscn:

https://github.com/MikeSchulze/gdUnit4Net/blob/master/test/src/core/SceneRunnerCSharpSceneTest.cs Simulate the integration test to run for e.g. 10x60 frames or 10x 1000 mSeconds

Same thing can be done for the underlying GDscript. https://github.com/MikeSchulze/gdUnit4Net/blob/master/test/src/core/SceneRunnerGDScriptSceneTest.cs