Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: Unit test


Related Topics

In the News (Thu 24 Dec 09)

  
  Unit test - Wikipedia, the free encyclopedia
Unit testing helps to eliminate uncertainty in the units themselves and can be used in a bottom-up testing style approach.
Unit test cases embody characteristics that are critical to the success of the unit.
Unit testing frameworks, which help simplify the process of unit testing, have been developed for a wide variety of languages.
en.wikipedia.org /wiki/Unit_test   (1355 words)

  
 23.3 unittest -- Unit testing framework
The Python unit testing framework, sometimes referred to as ``PyUnit,'' is a Python language version of JUnit, by Kent Beck and Erich Gamma.
When the test is run, the fixture initialization is run first; if it succeeds, the cleanup method is run after the test has been executed, regardless of the outcome of the test.
This class allows individual tests and test suites to be aggregated; when the suite is executed, all tests added directly to the suite and in ``child'' test suites are run.
docs.python.org /lib/module-unittest.html   (448 words)

  
 Unit Test Patterns
Constructing Parameter-Range unit tests is doable for certain kinds of testing, but it becomes inefficient and complicated to test at a piece of code with a complex set of permutations generated by the unit test itself.
Testing processes with a unit tester provide the same advantages as other unit testing--it documents the way the process is intended to work and the unit tester can aid the implementer by also testing the process out of sequence, rapidly identifying potential user interface issues as well.
Unit testing multithreaded applications is probably one of the most difficult things to do because you have to set up a condition that by its very nature is intended to be asynchronous and therefore non-deterministic.
www.marcclifton.com /tabid/87/Default.aspx   (3944 words)

  
 Unit testing with mock objects
For example, to unit test an object that uses a database, it may be burdensome to install, configure, and seed a local copy of the database, run your tests, then tear the local database down again.
As long as the class being tested behaves as expected, it won't notice the difference, and the unit test can check that the proper query was emitted.
Finally, we defined the mock object itself as a private inner class of the test class -- often a convenient approach because it is clearer to put the mock right next to the test code that uses it, and because inner classes have access to the instance variables of their surrounding class.
www-106.ibm.com /developerworks/library/j-mocktest.html   (2350 words)

  
 Unit Tests   (Site not responding. Last check: 2007-10-13)
On C3, we use Kent Beck’s public domain testing framework, augmented with a GUI that runs all the tests and shows the percent correct.
In any case, a class isn’t done until its unit tests are in the test suite.
Since the unit tests ran at 100 percent before you released, you did break the tests.
www.xprogramming.com /Practices/PracUnitTest.html   (236 words)

  
 Code Unit Test First
When a test fails, you really do not know if the test or the code is at fault, however, since the test is usually much simpler than the code, it is most probable the fault is in the code.
Thus, the unit tests underspecify the function and could not be used to generate the function's behaviour other than at the points that are tested.
In order to write a unit test you must also have a clear specification of all the objects and their methods which your particular method under test uses and how it uses them.
c2.com /cgi/wiki?CodeUnitTestFirst   (5527 words)

  
 Unit Test
It's by JakobNielsen, author of UsabilityEngineering, and though he doesn't mention the word UnitTest (he talks of 'scenarios'), it is a kind of unit testing for usability (of course, it's not automated; but his tests are not meant to be full acceptance tests).
I've seen a number of commentators state that unit tests should all be done against the PublicInterface.
believe that "Unit tests are written by developers and typically test an individual class or small group of classes." [http://www.martinfowler.com/articles/continuousIntegration.html#N222] It may be that the authors are providing definitions or it may be that they are acknowledging a traditional understanding of the terms.
c2.com /cgi/wiki?UnitTest   (2456 words)

  
 Extreme Rules
Unit tests are one of the corner stones of Extreme Programming (XP).
First you should create or download a unit test framework to be able to create automated unit tests suites.
Unit tests are released into the code repository along with the code they test.
www.extremeprogramming.org /rules/unittests.html   (301 words)

  
 Unit Test Patterns - Part I
Programmers who have incorporated unit testing into their development process know the advantages it brings: cleaner code, courage to refactor, and higher velocity.
Not testing isolated code will lead to a high coupling between the tests and changing a class might result is many unrelated tests to fail.
Tests that rely on external information are prone to fail, and require configurations and setups.
www.typemock.com /Docs/TestPatterns.html   (1375 words)

  
 Andreas Schaefer's Blog: Unit Test are at least as Important as the Coding Itself   (Site not responding. Last check: 2007-10-13)
The basic problem of unit testing is that managers do consider unit tests as a nice to have item rathar than an essential component and leave it to the developer to decide if they want to do it or not.
Unit tests are written by developers which now their code the best.
The name unit test probably should not be changed but people should be made aware of that testing does not start with QA and that every contributor has to provide his/her part.
weblogs.java.net /blog/schaefa/archive/2004/10/unit_test_are_a.html   (1165 words)

  
 Enterprise .NET Community: Series: VSTS and testing today, Part 1 - Revenge of the unit
Unit testing has during recent years become a cornerstone practice in writing quality applications.
While unit testing may be on the upswing, some experts suggest its use is narrower than some suspect.
A key aspect of this is the use of unit testing to ensure that chunks of code work, before they are plugged into the program as a whole.
www.theserverside.net /tt/articles/showarticle.tss?id=UnitTest   (1054 words)

  
 Unit Test Framework
The framework keeps track of all passed/failed Test Tools assertions, provides an ability to check the testing progress based on the amount of test cases run as part of the total amount of test cases and generates the result report in several different formats.
The Unit Test Framework intended to be used both for a simple testing needs and a complex non trivial testing.
The Unit Test Framework should be preferred over Test Execution Monitor while working on creating new test programs.
boost.org /libs/test/doc/components/utf/index.html   (757 words)

  
 [No title]
And, when written correctly, unit tests can provide a handy set of API documentation for the project, easing the process of documenting and understanding code behavior written by old and new developers on the team.
A good test in TDD will require you to change the code to make it work as desired, rather than forcing you to reflect on the current reality or a desired result that is not logical with the requirements—for example, where 1+1 returns 0 just to fail the test.
Change the old test so you test the new requirement (essentially using a new test), and test the old requirement under new settings (the test logic stays the same, but the initialization function may change).
msdn.microsoft.com /msdnmag/issues/06/01/UnitTesting/default.aspx   (4486 words)

  
 Module: Test::Unit
Unit testing is making waves all over the place, largely due to the fact that it is a core practice of XP.
While XP is great, unit testing has been around for a long time and has always been a good idea.
As more and more unit tests accumulate for a given project, it becomes a real drag running them one at a time, and it also introduces the potential to overlook a failing test because you forget to run it.
www.ruby-doc.org /stdlib/libdoc/test/unit/rdoc/classes/Test/Unit.html   (1397 words)

  
 The unit++ Testing Framework   (Site not responding. Last check: 2007-10-13)
This is homepage of unit++, a C++ unit testing framework similar to junit, yet intended to be more C++ like than CppUnit (the C++ port of junit).
However, the suite approach is usualy done by making a class that derives from suite, make the individual tests as methods in the suite, and make a constructor of the suite class that adds the test methods as individual tests in the suite.
A testcase is a wrapper around a test* that ensures that the pointer is deleted when everybody has finished with it.
unitpp.sourceforge.net   (556 words)

  
 Download the Simple Test testing framework - Unit tests and mock objects for PHP   (Site not responding. Last check: 2007-10-13)
For fuller documentation, especially if you are new to unit testing see the ongoing documentation, and for example test cases see the unit testing tutorial.
In the context of agile development the test code sits right next to the source code as both are written simultaneously.
Also the test case file should not have been included elsewhere or no cases will be added to this group test.
www.lastcraft.com /simple_test.php   (1466 words)

  
 [No title]   (Site not responding. Last check: 2007-10-13)
NAME Test::Unit::* - a unit testing framework for Perl DESCRIPTION Test::Unit::* is a sophisticated unit testing framework for Perl that is derived from the JUnit testing framework for Java by Kent Beck and Erich Gamma.
While this framework is originally intended to support unit testing in an object-oriented development paradigm (with support for inheritance of tests etc.), Test::Unit::Procedural is intended to provide a simpler interface to the framework that is more suitable for use in a scripting style environment.
An example of this approach is the self-test of the unit testing framework that you start with the 'make test' command (see t/all_tests.t).
www.cpan.org /authors/id/A/AS/ASPIERS/Test-Unit-0.24.readme   (383 words)

  
 HarnessIt - [Home]
If your developers unit test, project build time and test time can be significantly decreased.
Whether you are someone looking for a simple but powerful unit testing solution, a follower of a "test-first" agile methodology such as Extreme Programming, or a developer that needs a fully-supported unit testing product, then download HarnessIt now and see for yourself how easy unit testing can be.
Test results can now be saved as a comprehensive XML file which contains all information available in the HarnessIt user interface.
www.unittesting.com   (529 words)

  
 oreilly.com -- Online Catalog: Unit Test Frameworks
It covers the theory and methodology of unit test frameworks, offers instruction in unit test development, provides useful code examples in both Java and C++, and details the most commonly used frameworks from the XUnit family, including JUnit for Java, CppUnit for C++, and NUnit for.NET.
Unit test frameworks are a key element of popular development methodologies such as eXtreme Programming (XP) and Agile Development.
Until now, there was little documentation available on unit testing, and most sources addressed specific frameworks and specific languages, rather than explaining the use of unit testing as a language-independent, standalone development methodology.
www.oreilly.com /catalog/unitest   (265 words)

  
 Java(TM) Boutique - Unit Testing Java Programs
When unit testing is implemented the right way it helps the programmers to become more productive, while at the same time increasing the quality of the developed code.
Actually the trend today is to write the unit test code before the code to be tested, to put focus on the interface and behavior of your Java classes.
By writing this test program we may automate the unit test of "parUpToHole", and by running the program we can be pretty sure that this method works as it should.
javaboutique.internet.com /tutorials/UnitTesting   (931 words)

  
 ONJava.com -- Unit Test Your Struts Application
Unit testing is an important part of a good development process.
Although there are many unit testing frameworks and technologies, such as JUnit, Cactus, EasyMock, HttpUnit, and so on, developers often find that it is difficult to unit test their Struts applications.
When we look at a web application, we find it is still possible to use mock objects and override technology to do the unit test.
www.onjava.com /pub/a/onjava/2004/09/22/test-struts.html   (635 words)

  
 C++ Unit Testing & Code Compliance: C++test - Parasoft
C++test is the leader in automated unit testing and code compliance for C / C++ application development.
It automatically generates and executes unit tests for instant verification, and allows users to customize and extend these tests as needed.
To expose reliability, security, and functionality problems within each unit, C++test examines each class or function, then generates and executes unit test cases designed to achieve the selected testing goal (expose exceptions through stress testing, create a regression test suite that captures the current code behavior, and so on).
www.parasoft.com /jsp/products/home.jsp?product=CppTest   (749 words)

  
 testdriven.com: Your test-driven development community - News
Test driven development (TDD) is emerging as one of the most successful developer productivity enhancing techniques to be recently discovered.
Cgreen is a pure C unit tester with function mocking.
AvignonDB is a new module in the Avignon family that allows the user to test database functionality in the same manner as front-end testing through Avignon.
www.testdriven.com /modules/news   (1789 words)

  
 JUnit, Testing Resources for Extreme Programming   (Site not responding. Last check: 2007-10-13)
If you are looking for another one of the testing frameworks, you should look on www.xprogramming.com under software.
JUnit is a regression testing framework written by Erich Gamma and Kent Beck.
It is used by the developer who implements unit tests in Java.
www.junit.org   (161 words)

  
 Unit Test Secured EJBs in Production
Performed at different layers of an application, unit tests run best when they are done quickly and kept in mutual isolation.
However, unit testing EJBs is a complex job, which becomes even more difficult when the EJBs are secured through method-level, role-based permissions.
A test case typically constructs the object it is testing, but the object being tested is sometimes dependant on the behavior of other objects.
www.devx.com /Java/Article/31727?trk=DXRSS_JAVA   (759 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.