You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
do not test one and the same thing over and over again
are named test_chefkochFunctionXY() and cover the chefkochFunctionXY completely with a subTest each for each test case
create an example of correct data and change only a line or two for each subTest instead of creating a huge bulk of similar data
more knowledge can be gained from Fabian Krieg
Hi Sophie,
sehr cool. Ich kann dich leider gerade nur auf ein paar
Zusammenschriebse verweisen, die wir mal für unsere Studenten
veranstaltet hatten [1,2]. Bei einem kurzen Blick in deine Tests fiel
mir auf den ersten Blick auf, dass da ein hardgecodeter Pfad stand und
dass du viele asserts untereinander hast. An der Stelle bieten sich
subtests an [1,3].
Du kannst ja mal schauen, ob du mit den Links etwas anfangen kannst.
Ansonsten frag einfach, wenn irgendwas ist! Und ich werde auch gerne,
sobald ich es schaffe, mal genauer schauen, was du da machst.
Viele Grüße
Fabian
[1]
https://gitlab.tu-ilmenau.de/FakEI/InIT/it-ems/Projects/SigMaSense/python_talk/blob/master/2019_11_28_git_submodule_and_unittests/unittests.md
[2]
https://gitlab.tu-ilmenau.de/FakEI/InIT/it-ems/Projects/SigMaSense/python_talk/blob/master/2020_01_17_unittests_advanced/unittests_advanced.md
[3]
https://www.caktusgroup.com/blog/2017/05/29/subtests-are-best/
The text was updated successfully, but these errors were encountered:
Good tests
The text was updated successfully, but these errors were encountered: