Quantcast
Channel: Buildsystem – Seite 8 – mynethome.de
Viewing all articles
Browse latest Browse all 66

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 66

Trending Articles


FORECLOSURE OF REAL ESTATE MORTGAGE


HOY PANGIT, MAGBAYAD KA!


Girasoles para colorear


tagalog love Quotes – Tiwala Quotes


The business quotes | Inspirational and Motivational Quotes for you


Long Distance Relationship Tagalog Love Quotes


5 Tagalog Relationship Rules


Re:Mutton Pies (lleechef)


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


Vimeo 10.7.1 by Vimeo.com, Inc.


EASY COME, EASY GO


Pokemon para colorear


Sapos para colorear


Smile Quotes


Patama lines and Tagalog Quotes Pinoy Sayings


Tropa Quotes


“Mali man na ikaw ay ibigin ko, akoy iibig padin sayo”


RE: Mutton Pies (frankie241)


Vimeo 10.7.0 by Vimeo.com, Inc.


UPDATE SC IDOL: TWO BECOME ONE