aiida-core icon indicating copy to clipboard operation
aiida-core copied to clipboard

`Tests` : `test_all_plugins.py` is poor

Open khsrali opened this issue 10 months ago • 9 comments

Improve test_all_plugins some tests are missing for instance chown.

Other tests, don't really challenge the the interface behavior critically..

khsrali avatar Jan 23 '25 10:01 khsrali

@khsrali I put this one as "good first issue", hope you don't mind.

unkcpz avatar Feb 15 '25 21:02 unkcpz

Improve test_all_plugins some tests are missing for instance chown.

Other tests, don't really challenge the the interface behavior critically..

hey @khsrali should i add a function chown in test_all_plugins.py like test_chown

FARDEEN-785 avatar Mar 02 '25 00:03 FARDEEN-785

Hi @FARDEEN-785, If that helps you to grasp more understanding of the code base for future contributions, then sure, by all means go ahead!

khsrali avatar Mar 03 '25 14:03 khsrali

Hi @Muhammad-Rebaal

Check this file: test_all_plugins.py some tests although being in place, they don't really cover the pitfalls. You can think through and imagine all scenarios for each function, and discover cases that's not already being covered in the tests.

khsrali avatar Mar 03 '25 15:03 khsrali

Hi @Muhammad-Rebaal

Check this file: test_all_plugins.py some tests although being in place, they don't really cover the pitfalls. You can think through and imagine all scenarios for each function, and discover cases that's not already being covered in the tests.

Yeah sure! I'll take a look at this test_all_plugins.py file and re-imagine some good test cases that would work better for the project.

Muhammad-Rebaal avatar Mar 03 '25 15:03 Muhammad-Rebaal

@Muhammad-Rebaal doing that, you can skip any test directly related to get, put, and copy methods. I already have fix patches for them, which I plan to commit in the right time in future.

khsrali avatar Mar 03 '25 15:03 khsrali

Hi @FARDEEN-785, If that helps you to grasp more understanding of the code base for future contributions, then sure, by all means go ahead!

oky i will try to add a small functions to see if works

FARDEEN-785 avatar Mar 04 '25 02:03 FARDEEN-785

Hi @FARDEEN-785, If that helps you to grasp more understanding of the code base for future contributions, then sure, by all means go ahead!

oky i will try to add a small functions to see if works

@FARDEEN-785 Added a small function chown in ['test_all_plugins.py'] #6788

FARDEEN-785 avatar Mar 07 '25 11:03 FARDEEN-785

The description is a bit vague, (which is good as a "good first issue" 😄 ) so it leaves to developers to think about what need to improve, for who want to improve the test cases, when open the PR, please first describe the improvement you want to bring in in you PR.

unkcpz avatar Mar 24 '25 13:03 unkcpz