-
Notifications
You must be signed in to change notification settings - Fork 96
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
Unit tests coverage for properties helpers #491
Comments
Hey @andrii-bodnar in order to complete this task, what knowledge should one have? |
@manish-singh-bisht you need to have a basic knowledge of writing Unit tests in Java using Jupiter and Mockito libraries |
Hello @andrii-bodnar. Is it possible to assign this issue to write unit test and assing it to me? Thanks for reply. |
Hi @DukeRino7! It sounds great! I would suggest you to check the code coverage report, find the part of code you like and cover this code by unit tests. What do you think about this idea? Or you need a specific issue for that? |
@DukeRino7 also, this issue is unassigned yet. I could assign it to you |
@andrii-bodnar im not sure if Iam able to do tests for all classes.can i take a look at the code and write you tomorrow? Until then can you assign me to this issue? |
@DukeRino7 you can split this issue into several PRs and begin from just one or two classes |
@andrii-bodnar ok i think it can work. Can you assign it to me? |
Hi @DukeRino7, do you need any assistance here? Just wondering what the progress on this issue |
Hello @andrii-bodnar. I had some problems but now im working on it. If i will be in trouble i will write you. Do you have specific deadline or something like that? |
@DukeRino7 thanks for the update! There is no specific deadline 🙂 |
@andrii-bodnar i will do it as fast as possible |
Hello, can I contribute to this project with writing tests ? |
Hi @calfaand, sure, thank you! Feel free to take some classes from the issue description. Also, you are welcome to check other parts of the project for classes or methods where it's possible to write some tests. |
@DukeRino7 which classes you are currently working on? |
@andrii-bodnar so I will take the first 3 classes okay? |
@calfaand sure, please let me know if you need any assistance |
@andrii-bodnar In PropertiesWithTargetBuilder.java you will always get exception because Targets are not able to be initialized. Problem lies in ParamsWithTargets as it does not have any variable Targets that can be populated if you are not using config file. Is this by design or it's only possible way of doing that? |
@calfaand what exact method do you mean? As I see from the It is called on the |
I mean this class. If I try to initialize targets with this class I am not able to do this. |
@calfaand I'm not sure if I understand you correctly. Could you please provide the related code and the failed test error message? |
@andrii-bodnar i get to point where i want to test some methods but they are "protected". How can i continue? Because from my understanding i cant reach protected methods when test are in different folder. Should i chAnge them to public? Thanks for advice. |
@DukeRino7 it's not recommended to make some methods public just for tests. I'm not familiar with Java Unit testing so I'm not sure how to test such methods. Maybe there is some workaround. |
@andrii-bodnar okay, today i will look into it and hopefully i will be able to make it work somehow. If i will find way to make it work i will probably finish writing test this week. I will keep you updated If i will have some difficulties |
@DukeRino7 great, thanks for the update! |
@andrii-bodnar i find way how to test methods and im writing test for them right now. Sorry for lack of communication up to now, i had some problems that i need to solve first. Now im working on it and hopefully i will be able to finish writing test this week. I will also keep you updated about my progress. |
@DukeRino7 no worries, thanks for the update! |
@andrii-bodnar hello, i request pull, coverage is increased by 2,5% |
Hi @DukeRino7, awesome, thanks a lot for the contribution! Briefly looked over the PR and it looks good to me. I'll review it in more detail tomorrow and then will merge it. Thanks! |
Some classes in the
com.crowdin.cli.properties
namespace have low coverage by Unit tests. It would be great to add Unit tests for these classes.Similar tests for reference can be found here
The text was updated successfully, but these errors were encountered: