Quantcast
Channel: Nebenkosten – Seite 7 – mynethome.de
Viewing all articles
Browse latest Browse all 64

Unit-Test?

$
0
0

In regelmäßigen Abständen kommt immer wieder mal die Diskussion auf, wo man einen Unit-Test zu anderen Tests (Integrations- oder Aktzeptanz-) abgrenzen kann.
Eine meiner Meinung nach ganz brauchbare Definition hab ich kürzlich im Blog zum Buch „The Art of Unit Testing“ gefunden:

A good unit test is:

  • Able to be fully automated
  • Has full control over all the pieces running (Use mocks or stubs to achieve this isolation when needed)
  • Can be run in any order if part of many other tests
  • Runs in memory (no DB or File access, for example)
  • Consistently returns the same result (You always run the same test, so no random numbers, for example. save those for integration or range tests)
  • Runs fast
  • Tests a single logical concept in the system
  • Readable
  • Maintainable
  • Trustworthy (when you see its result, you don’t need to debug the code just to be sure)

(Vgl. Definition of a Unit test)

Mal hier abgelegt, damit ich sie zu gegebener zeit auch wiederfinde ;-)

Happy coding!


Viewing all articles
Browse latest Browse all 64

Trending Articles


FORECLOSURE OF REAL ESTATE MORTGAGE


Maganda Quotes – tagalog Quotes – Inggit Quotes


Girasoles para colorear


Presence Quotes – Positive Quotes


Long Distance Relationship Tagalog Love Quotes


INUMAN QUOTES


RE: Mutton Pies (frankie241)


Hato lada ym dei namar ka jingpyrshah jong U JJM Nichols Roy (Bah Joy) ngin...


EASY COME, EASY GO


UPDATE SC IDOL: TWO BECOME ONE


FORTUITOUS EVENT


Pokemon para colorear


Sapos para colorear


Smile Quotes


Love with Heart Breaking Quotes


Re:Mutton Pies (lleechef)


Ka longiing longsem kaba skhem bad kaba khlain ka pynlong kein ia ka...


Vimeo 10.7.0 by Vimeo.com, Inc.


Vimeo 10.7.1 by Vimeo.com, Inc.


KASAMBAHAY BILL IN THE HOUSE