-
-
Notifications
You must be signed in to change notification settings - Fork 31
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
GD-4.2.2: First time user. Tests run with many error messages #516
Comments
Hi and welcome to GdUnit4. Seems to me to be a wrong project setup, please check your C# project settings.
https://mikeschulze.github.io/gdUnit4/csharp_project_setup/csharp-setup/#gdunit4-c-test-setup |
hm thats strange, |
Thanks! Overall, the C#-compatibility is someone unique in the unit testing space, and the API for testing (asserts) are very nice. I'd love to use this for some upcoming videos if I can get it working. Not too urgent. But this week, I'll record with whatever testing setup I find that works best. I tried that in my main repo. Same Results. I'm new to Godot (< 100 hours). I'm new to addons. Perhaps I'm doing something silly and incorrect. Below is a new fresh public repo (without the complexity of simlinks I mentioned earlier) and no gitignore so you see all the files. I tried your suggestions in this new temp repo. Same Results. Again, I can right click the *.cs and run the tests and see valuable pass/fail results. But the upper-left window seems to be broken, the output seems to be too-full of errors, and (while many non-shortcut GDUnit4 settings appear to 'work') the GDUnit4 settings for shortcuts do not appear interactive/clickable/changeable. If you have any ideas, or find something simple I'm missing, please send a PR request with the change. I'll use it immediately. Thanks so much! https://github.com/SamuelAsherRivello/godot-unit-test-temporary |
Hi, I'll take a look at your repository and hopefully figure out what's going wrong here. Kind regards UpdateOk, with your project, I'm able to see the errors now. The test discover can't find your tests because of misleading test root folder. When you develop with C# I guess you are using a different IDE to edit your classes. Checkout the gdUnit4Net project and supported IDE's You need to extend your project by the this lines.
issues |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
The used GdUnit4 version
GdUnit4 4.3.2
The used Godot version
v4.2.2-stable-mono
Operating System
Windows 11
Describe the bug
Hiya,
Great work on a great tool. I'm experiencing some issues. I'm using the latest public windows 11, the latest public godot, the latest version of your tool (From asset lib) that then updated itself. I am using the latest public version of rider and had to follow your docs and manually edit the csjproject. All compiles. The tests run.
Something unique in my project setup is that the "RMC Mingle" and "RMC Mini Mvcs" in my addons folder are local windows simlinks to improve my addon development workflow. I doubt that causes issues per below, but thought I'd mention it.
--
I'm a game dev with over 20 years of XP, the last decade in Unity.
I have created Mvcs architectures (https://bit.ly/mvc-architecture-for-unity-on-udemy) and Unit Testing courses (https://bit.ly/unit-testing-for-unity-course) for Unity.
I'm playing with Godot and enjoying it. I'd like to do a free YouTube video on "Unit Testing in Godot" and have tried several C#-friendly Godot unit testing pathways including yours.
I'd love some help with these bugs.
-Sam!
Feel free to say hi - https://www.linkedin.com/in/samuelasherrivello/
Happy to have a video chat too.
SETUP
Here is my godot version
My default CS Project shows errors.
I updated to this and the errors go away. The rest of the images assume this setup
BUGS
The tests do indeed run properly. None of the tests appear in the "GDUnit" tab on the left which I assume is unexpected.
The output is full of errors
And I cannot edit any shortcuts
And I see some warnings
Steps to Reproduce
See images
Minimal reproduction project
See images
The text was updated successfully, but these errors were encountered: