[root] /weblog /testing /software engineering




login:

password:

title search:




 

Sun Jun 15 23:41:46 HKT 2008

testing



(google search) (amazon search) second
download here

Sun Jun 15 23:41:46 HKT 2008 From /weblog/software+engineering/testing

refactoring unit test


Idea of how to refactoring test cases, summary :

Refactor production code with the tests passing. This helps you determine that the production code still does what it is meant to.
Refactor test code with the tests failing. This helps you determine that the test code still does what it is meant to.

http://googletesting.blogspot.com[..]07/04/tott-refactoring-tests-in-red.html

Collections of idea of testing private methods - http://www.infoq.com/news/2008/01/private-methods-tdd-design , may be it is a signal of refactoring?

(google search) (amazon search)




Wed May 07 15:51:52 HKT 2008 From /weblog/software+engineering/testing

junit


A nice example of convert dbunit from using junit to testng - http://www.realsolve.co.uk[..]h/blog.php?name=philzoio&mydate=20050826

redirect junit output to a file - http://www.diotalevi.com/weblog/?p=43

invokeNCopiesWithTimeout, run a test ( in runnable() ) for n times and see if it ok for multi-thread likely or not - http://binkley.blogspot.com[..]/running-n-foreground-tasks-in-java.html

(google search) (amazon search)



Thu Mar 13 01:55:20 HKT 2008 From /weblog/software+engineering/testing

best practices


Test first/last is not important? Unit test either? What do you think? http://beust.com/weblog/archives/000477.html

* The name of the test should describe the requirement of the code
* There should be at least one test for each requirement of the code. Each possible path through of the code is a different requirement#
* Test the goal of the code, not the implementation

http://xprogramming.com/xpmag/testFirstGuidelines.htm http://www.theserverside.com[..]AppQuality&asrc=EM_NLN_761453&uid=703565 http://www.coopercode.net[..]og/2007/08/how-not-to-run-beta-test.html

A lot of links - http://it-techexperts.com/tutorials/tutorials.asp http://testingspot.net/ http://www.exampler.com[..]-links-biased-toward-exploratory-testing

The teaser: Fast, Isolated, Repeatable, Self-validating, and Timely. - http://blog.objectmentor.com[..]es/2007/08/02/not-a-task-but-an-approach http://blog.objectmentor.com/articles/2007/08/02/which-came-first

Corner cases - http://testobsessed.com[..]s/2007/02/testheuristicscheatsheetv1.pdf

One of the targets of TDD coding - http://haacked.com[..]e-code-is-about-managing-complexity.aspx

Design for unit test - http://www.theserverside.com[..]es/content/DesigntoUnitTest/article.html

Introduction to Lean project management - http://ossme.com[..]introduction-of-lean-project-management/

Push and Pull approach -
http://www.richarddurnall.com/?p=10
http://www.richarddurnall.com/?p=15
http://www.richarddurnall.com/?p=31

(google search) (amazon search)


Fri Mar 07 02:29:52 HKT 2008 From /weblog/software+engineering/testing

Functional test


Selenium - Here is a video show how to record script using a firefox plugin: http://wiki.openqa.org/display/SIDE/Recording+a+Test (BTW, the plugin link: http://www.openqa.org/selenium-ide/), and here is a blog mentioned how to setup a test server to run batch of script altogather: http://agiletesting.blogspot.com[..]/web-app-testing-with-python-part-2.html

WatiN, alternative of selenium - http://blog.benhall.me.uk[..]2/how-to-unit-test-watin-mbunit-and.html another person saying this is better - http://jchyip.blogspot.com/2008/03/watij-vs-selenium-rc.html

And someone work hard on make FITness and Selenium work togather, more information can be found at http://www.cornetdesign.com[..]m/2006/09/fitnesse-selenium-wrapper.html http://gojko.net[..]ng-web-tests-with-fitnesse-and-selenium/

A story of how to overcome various issues of applying selenium in acceptance testing -http://blogs.atlassian.com[..]07/08/selenium_is_the_pain_worth_it.html

Here is a more complicated framework, not looking good but still keep it here as the concept is interesting - http://sourceforge.net/projects/cubictest

The most excellent implementation for my need - http://www.concordion.org/

http://www.jamesshore.com/Blog/Five-Ways-to-Misuse-Fit.html - Don't use it as junit, "The whole point of Fit is to use HTML to speak the customer's language and fixtures to translate that language to code. "

http://jroller.com/njain/entry/is_fitnesse_ready_for_enterprise - Version control is #1 issue at that article

http://www.jamesshore.com/Blog/Does-It-Work-Are-We-Done.html Why functional test is important

How much resource should put in functional test? http://c2.com/cgi/wiki?TestFoodPyramid

(google search) (amazon search)


Fri Feb 29 02:35:39 HKT 2008 From /weblog/software+engineering/testing

junit antipattern


http://www.exubero.com/junit/antipatterns.html

use thread in junit - http://softwareintegrityblog.com[..]blog/2007/11/05/false-positives-in-junit

issues of try to test everything, we need to get the balance for everything, not junit specific - http://www.nearinfinity.com[..]ay?entry=unit_testing_avoiding_extremism

Hard to test something? Unreadable tests? Slow running tests? It takes too long to write a test? Some solution suggested - http://www.stephenchu.com[..]/last-d-in-tdd-means-more-than-just.html

Comment out test so that the code compile - http://martinfowler.com/bliki/TestCancer.html

A list of TDD antipattern - http://blog.james-carr.org/?p=44

And the long discussion using random in unittest - http://tech.groups.yahoo.com[..]rivendevelopment/message/20458?var=1&l=1
Here is an example of using random in unittest, it actually same for every new instance! - http://www.skizz.biz/archives/000568.html


(google search) (amazon search)



Fri Jan 11 01:13:47 HKT 2008 From /weblog/software+engineering/testing

classification


There is a lot of discussion about this blog - http://www.artima.com/weblogs/viewpost.jsp?thread=126923

Which talk about classification of functional test and unit test. Nice to read. You can also refer to the following article:

http://beust.com/weblog/archives/000319.html
http://www.magpiebrain.com/archives/2005/09/18/unit_tests

(google search) (amazon search)


Thu Jan 10 19:54:16 HKT 2008 From /weblog/software+engineering/testing

mock


Yet other discussion of Stubs, Fakes, and Mock Objects - http://vladimirlevin.blogspot.com/2007/11/stubs-fakes-mocks.html

While reviewing this article, Marty Andrews pointed out an important insight: there are two ways to use a mock object, either as a testing technique or as a design technique, and the intended use helps shape the available choices.

http://www.onjava.com/lpt/a/4526

Someone post some arguement that using mock probably a bad idea , which look like a endless arguement... - http://jroller.com[..]xRuiz?entry=mocks_for_concrete_class_can

Alberto Savoia on Testing the Untestable, raise a point that mocking make testing more portable, it probably true, but database setup may be not that difficult to port. - http://www.artima.com/forums/flat.jsp?forum=276&thread=213402

(google search) (amazon search)


Wed Jan 02 12:19:21 HKT 2008 From /weblog/software+engineering/testing

Release Checklist


Various discussion about the checklist: http://discuss.joelonsoftware.com/default.asp?joel.3.111480 . But I think practice CI is more important: http://www.martinfowler.com/articles/continuousIntegration.html

Joey discuss on beta testing... I feel he requirement is too high for small team - http://www.joelonsoftware.com/articles/BetaTest.html

More discussion - http://www.infoq.com/news/2007/12/agile-checklists and a checklist for SCRUM http://www.infoq.com/minibooks/scrum-checklists

(google search) (amazon search)


Wed Jan 02 00:43:12 HKT 2008 From /weblog/software+engineering/testing

research


TDD in academia: a brief review - http://shareandenjoy.saff.net[..]icle-new-millenium-has-seen-growing.html

Interesting idea, write the test and see if any code at internet passed the test - http://www.javaschubla.de/2007/eclipsefast/

(google search) (amazon search)


Mon Dec 31 16:52:02 HKT 2007 From /weblog/software+engineering/testing

debugger


Various discussion about debugger

Debuggers are a wasteful Timesink - http://www.artima.com/weblogs/viewpost.jsp?thread=23476
The Power of Debuggers - http://beust.com/weblog/archives/000055.html

And a lot of links - http://www.infoq.com/news/2007/10/are-ruby-debuggers-harmful

(google search) (amazon search)



Thu Oct 25 11:26:47 HKT 2007 From /weblog/software+engineering/testing

automatic test presentation


A presentation bascially say: "any start is a good start" - http://perl.plover.com/yak/testing/samples/

Short presentation illustrate many important concept of unit test - http://www.agitar.com/downloads/TheWayOfTestivus.pdf http://en.wikipedia.org/wiki/Testivus

Argument of not doing TDD will cost more - http://blog.objectmentor.com[..]ave-time-for-tdd-but-may-not-know-it-yet

Automated test or Test automated? - http://googletesting.blogspot.com[..]automating-tests-vs-test-automation.html

(google search) (amazon search)


Wed Sep 26 00:36:52 HKT 2007 From /weblog/software+engineering/testing

coverage


Getting The Most Test Coverage With The Least Test Code - http://parlezuml.com/blog/?postid=482 , Interesting question to ask, but I don't buy the arguement personally, because Most Test Coverage is not related to Most Effective Test in most case

(google search) (amazon search)




Thu May 03 15:43:48 HKT 2007 From /weblog/software+engineering/testing

javascript tester


An simple example of doing javascript unit test - http://jroller.com[..]ray?entry=testing_javascript_with_groovy However this approach is too fake for me and easy to miss many thing, IMHO putting test a real environment is better

A site for javascript testing http://www.testdrivenjavascript.com

Test time in javascript - http://googletesting.blogspot.com[..]avascript-simulating-time-in-jsunit.html

And this is an example of using JDK6 scripting framework for testing javascript, pretty interesting , but probably not reflecting IE/MOZ behaviour - http://technology.amis.nl/blog/?p=1869

(google search) (amazon search)



Fri Jan 12 10:40:28 HKT 2007 From /weblog/software+engineering/testing

Test base on Log


A tools that support test base on log output for legucy program - http://texttest.carmen.se/

And other similiar tools is vise - http://www.artima.com/forums/flat.jsp?forum=106&thread=171323

Both sound very useful for test legucy code

(google search) (amazon search)


Tue Jun 20 14:42:03 HKT 2006 From /weblog/software+engineering/testing

Customer attitude of testing


A nice message at agile mailing list, which point out that customer attitude will affect how the software engineering workflow a lot: http://groups.yahoo.com[..]gprog/message/7420?threaded=1&var=1&p=24

(google search) (amazon search)