The Artima Developer Community
Sponsored Link

Weblogs Forum
A Set of Unit Testing Rules

50 replies on 51 pages. Most recent reply: Jan 21, 2011 2:19 AM by Steve Merrick

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 50 replies on 51 pages [ « | 1 ... 14 15 16 17 18 19 20 21 22 ... 51  | » ]
Sven Gorts

Posts: 2
Nickname: gorowitch
Registered: Feb, 2004

Re: A Set of Unit Testing Rules Posted: Sep 12, 2005 6:53 AM
Reply to this message Reply
Advertisement
Hi Michael,

While I would call such tests unit tests, the reliance on critical dependencies from within the test code is often problematic. Besides being slow, critical dependencies also have another nasty property: We can't ensure the availability of the resource being dependent on.

For example: When running the tests against a test server, the server needs to be up and running. In case the server is shut down, or perhaps even taken away we are no longer able to run our tests.

Other typical examples of critical dependencies involve calling native code from Java or direct execution of shell commands. In such cases the problem can even become worse than 'being slow' because a dependency on native or environment specific code may prevent to run the tests from a pure development environment.

Now while critial depencencies are definitely something one would try to avoid, developers often need to accept to live with them (at least for some time), as they are working their way through bringing their codebase under test.

Kind regards,
Sven
http://www.refactoring.be

Flat View: This topic has 50 replies on 51 pages [ « | 14  15  16  17  18  19  20  21  22 | » ]
Topic: Computer About to Play Jeopardy Previous Topic   Next Topic Topic: The Search for Requirements

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use