Skip to content
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

Evaluate (and improve if necessary) the testacases #48

Open
5 tasks
SophieAltenburg opened this issue May 14, 2020 · 0 comments
Open
5 tasks

Evaluate (and improve if necessary) the testacases #48

SophieAltenburg opened this issue May 14, 2020 · 0 comments
Labels
Milestone

Comments

@SophieAltenburg
Copy link
Contributor

SophieAltenburg commented May 14, 2020

Good tests

  • cover nearly all the code existing
  • 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/
@SophieAltenburg SophieAltenburg added this to the dev-0.1b milestone May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant