-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Create unit tests for darkness-checking logic #2649
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
Comments
For someone picking this up: it might be useful to reuse the generate image methods from #2626 |
Added beginner-friendly label, this would be great for a GSoC/Outreachy student. |
Hello @domdomegg @misaochan can i work on this issue ? |
Sure take this up @silkypriya |
Go for it! :) |
Created PR #2727 for this. |
@misaochan @maskaravivek @nicolas-raoul |
Yes, sure. It is yours. |
I wrote some tests of ImageUtils class. But I'm not able to run it. It shows error "No tests were found". |
@ciphereck Please attach a screenshot |
Here it is @ashishkumar468 |
Such things happen due to invalid-test configurations. To Validate, try this open any Test class and right-click and Run. |
Hi, |
Hi, |
@ciphereck While running a unit test |
@misaochan @maskaravivek I also tried @RunWith as mentioned in StackOverflow somewhere, but it's still of no help :( |
Hi @misaochan @maskaravivek @nicolas-raoul |
@gengarrrr Yes thanks! :-) |
@nicolas-raoul. Hello, I found that there already exists an ImageUtilsTest file, and I think it contains the check for dark with no image example through the merged pull request of Add ImageUtils Tests #4542. Should I just work on adding some images? or Can I write my own test functions within the file. Thank you |
@gengarrrr Good find, please add your oyn test fuctions within that file 🙂 |
…six images (#5096) * add images and test too dark * add dark and proper images and check if too dar * test: add refer Co-authored-by: Ruofan <u7307578@anu.edu.au>
Summary:
Would be good to have a unit test for the darkness checking algorithm. It could use the 4 images in #1767 as samples.
See #2639 (comment)
The text was updated successfully, but these errors were encountered: