Open Calinou opened 3 years ago
Hi, a classmate and I would like to work on making tests for OptimizedTranslation for a class project and our first contribution. I don't see it mentioned in this thread but I might as well ask just in case: is anyone already taking care of this?
Good day! I've written some (hopefully sound đ
) unit tests for CryptoKey
. Should I now make an MR to the master
branch?
I saw a comment about not treading on toes, and may have taken it rather too literally.
It's on this branch. đ
Hi @Calinou đ
A few things:
CryptoKey
was addressed in #89021 . I can't update the issue, would you please be able to?OptimizedTranslation
looks like a good candidate for my skillset, but I am unsure where @JustSascha got to with it.EDIT @JustSascha how's the OptimizedTranslation
work going? If you need any assistance, just shout! đ
Hi all đ
I'm working on a few tests for JSONRPC
now.
CryptoKey
was addressed in https://github.com/godotengine/godot/pull/89021 . I can't update the issue, would you please be able to?
Done.
Hello, as a new contributor I would like to try adding some unit tests to Godot. Is there a class to test that would be a good fit for a new contributor?
Hi, I'm @JustSascha 's classmate, and we're working on OptimizedTranslation
. I don't understand why in the file test_translation.h there is this method:
TEST_CASE("[OptimizedTranslation] Generate from Translation and read messages")
It only tests against French. But above all, I don't understand what else needs to be done, apart from adding other languages to the test?
Hi, I'd like to add tests for FontFile, if nobody began working on it already. I see a message from @andrewargyrakis mentioning that they would do it, but it is from several months ago. Did you already start working on it or is it available?
Hi @wheatear-dev, sorry for not answering, I haven't been able to work much the past few weeks so me and my classmate have not made too much progress on the unit test, but we're gonna work on that on the next few days.
If we get stuck we'll call for your help, thanks for offering!
Hi, I'm a new contributor and currently a college student. I would like to take a shot at writing tests for the FontVariation class, if it is still available.
Hello! I'm a new contributor and a college student like the guy above me. I'm gonna take AnimatedTexture, that is, if it's not already taken.
Edit: Nevermind, after reading documentation it seems that there is a high possibility that AnimatedTexture will be removed in future release. I'm gonna take PacketPeer then.
Hey! I'm a new contributor and also a college student. I would like to try and write unit tests for GradientTexture.
Hey! I'm a new contributor and also a college student. I would like to try and write unit tests for GradientTexture.
There is already an open pull request for GradientTexture unit tests: https://github.com/godotengine/godot/pull/90501
If you're interested in adding tests for other Image/Texture-derived clases, we don't appear to have any tests for ImageTexture3D yet, so that would be a welcome contribution. See the existing ImageTexture tests for something you could use as a base.
Hi @Calinou, I will take a look at ImageTexture3D and thanks for linking the base cases for me to look at.
Hello! I am a new contributor and was wondering if any tests OptimizedTranslation have been written?
Hello! I am a new contributor and was wondering if any tests OptimizedTranslation have been written?
I don't think anyone is writing tests for that class currently, so feel free to take a look :slightly_smiling_face:
Hello! I am a new contributor and was wondering if any tests OptimizedTranslation have been written?
I don't think anyone is writing tests for that class currently, so feel free to take a look đ
I started to look into the OptimizedTranslation class, and testing and it appears that there is already a test suite for get_message. Looking at the other methods some of them are missing support:
Question: I can write a test for get_translated_message_list() or is there something else I should direct my attention towards?
I can write a test for get_translated_message_list() or is there something else I should direct my attention towards?
I missed that there were already some OptimizedTranslation tests in test_translation.h
. I think you can write a new test for this method in the existing test_translation.h
.
Hello, I am interested to write test cases for the Timer node. From looking at the timer class, im guessing i need to write cases for the get/set functions?
Hello, I am interested to write test cases for the Timer node. From looking at the timer class, im guessing i need to write cases for the get/set functions?
Yes, I think this is mostly all we can test in the Timer class (unless there's a way to test the timeout
signal).
Hello, is anyone working on the Node2D tests? (Test the various exposed helper methods such as look_at() and move_local_x())
Hello, is anyone working on the Node2D tests? (Test the various exposed helper methods such as look_at() and move_local_x())
Not to my knowledge, so feel free to tackle these :slightly_smiling_face:
Hi, I'm gonna be adding some tests for StyleBoxFlat.
Hi, is anyone working on the AnimationPlayer tests ?
I plan to look into StyleBoxLine (and StyleBoxEmpty) tests. Would it be a good idea to leave a link on the checklist above to people's forks when they start working on tests?
@mshojatalab @rcooper47 I've added you to the list in OP.
Hi, is anyone working on the AnimationPlayer tests ?
@Magiccarpet00 There doesn't appear to be anyone working on tests for AnimationPlayer currently, so go ahead :slightly_smiling_face:
Hello, @Calinou , I would like to contribute some unit tests here if that helps, what would be a good thing to do as a first time contributor? Thanks
Just working on a test file for OptionButton
đ
Hi, I have started working on the unit tests for the Decal node.
I'm going to write some unit tests for Sky.
Hi @Calinou, I am looking to make my first contribution for a class project, so if there's a unit test that you'd like to get worked on a bit I'd really appreciate it!
Hello, is anyone here working on the unit tests needed for Node2D
?
Hi @Calinou, I am looking to make my first contribution for a class project, so if there's a unit test that you'd like to get worked on a bit I'd really appreciate it!
You can pick any unit test you want that is not currently being worked on by someone else. I suggest picking a class you are already familiar with when developing Godot projects (other classes may be harder to test if you have no prior knowledge).
Hi, has anyone worked on the tests for the height_map_shape_3D? I am willing to work on them as a good first project!
Hello, is anyone here working on the unit tests needed for
Node2D
?
yep, i have tests written for the Node2D #91654.
@Calinou or other contributors, could you please review it once more and merge if it looks good. Thanks.
I would like to spend some time doing parallax_2d if thats okay?
I'd like to throw my hat in on FontFile
Hi @Calinou. Seems that the PR description should be updated to reflect that this PR implemented test for Timer
I'm adding tests for StreamPeer
and StreamPeerBuffer
while I'm trying to fix a bug on StreamPeer
here #95784
I am going to write a test for Node3D
.
I'll be adding some unit tests for Control.
Hey Guys, new to Open-Source stuff. How do I get started and contribute?
@ghildim this issue isn't the right place to ask (though it is a good first issue). You should take a look at the official docs and join the contributors chat. There's a new contributors channel there where you can ask questions.
Specifically for this issue, you should take a look at the docs for compiling and for unit tests that are linked in the first post. If you need more specific help I would recommend asking in the contributors chat.
Our unit test coverage is currently fairly low. We'd like to increase our unit test coverage; any help is welcome.
Interested in writing new unit tests? See the unit tests documentation and compiling instructions. If you have further questions, join the Godot Contributors Chat.
When opening a pull request, please link back to this issue (
#43440
) in the PR description so that we can keep track of it more easily.Classes to test
These classes are currently lacking in test coverage, and are therefore highest-priority for receiving unit tests. Deprecated classes are not listed.
ui_focus_
actions). This class is complex, so tests for it can be split in multiple pull requests.look_at()
androtate_object_local()
.bake_scene()
and/orbake_single_node()
. These methods are not currently exposed to the scripting API, but they're still public methods.get_aabb()
.Completed classes
These classes currently have good test coverage. Further improvements may be possible by testing methods that were added after the tests were merged.
Non-testable classes
These classes can't be unit-tested for technical reasons. Unit tests always run in headless mode, so they can't do things such as rendering scenes and checking the visual result.