GD-4.2.2: First time user. Tests run with many error messages #519
Replies: 9 comments 3 replies
-
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 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
hm thats strange, |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Cool. Here you go. If you have an solutions, please send a PR request to https://github.com/SamuelAsherRivello/godot-unit-test-temporary Repro Steps1. Play From GdUnit Window
2. Play From Right Click Menu
Answers
|
Beta Was this translation helpful? Give feedback.
-
This issue persists. Repro Steps3. Setting Shortcuts
|
Beta Was this translation helpful? Give feedback.
-
Do specify more details, what do you mean by
is already covered by bug issue #518
The |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions