Posts tagged with ‘software quality’
Paper: Patterns for Introducing a Superclass for Test Classes
kinow @ Sep 25, 2012 17:58:09Tweet
It is a conference on pattern languages of programming. About six months ago I saw a tweet by Eduardo Guerra asking if anyone had some cases where certain patterns were applied. It was a big coincidence, since I was working on Apache Commons Functor and some Jenkins plugins, both projects with cases that could be used in his paper.
So I joined Guerra and gave my small contribution to the paper that has been accepted for this edition of SugarLoafPlop. Guerra also went there to give a talk and participate in an open discussion about several papers, including ours. I simply love when these things happen, it was great work with Guerra, and even better for being able to use Open Source examples in our paper.
Testing shell code and producing TAP using Jenkins?
kinow @ Dec 30, 2011 22:41:40Tweet
Definitely reading Hacker News before going to bed is a bad idea :-) Same goes for Reddit. So, I found a link about Bats, a tool to execute tests in Shell and output TAP - Test Anything Protocol. Then I thought; why not ask the author to include Bats under the list of Producers in testanything.org?
But you know what? Why not execute execute locally first to check if that’s working… moreover, why not use Jenkins TAP Plug-in and see what happens?
Here’s what is necessary.
- Jenkins (duh)
- tap plug-in
- git plug-in
- Bats git repository URL
- Baden Baden Red Ale beer (it’s Friday, almost new years’ eve, c’mon)
( Read more … )
TDC 2011 Goiânia
kinow @ Oct 31, 2011 13:20:33Tweet
Here are the slides used in TDC 2011 - Goiânia. The same slides were used in the Testing and in the Java tracks, though with different titles. The only difference is the demo, that had more details in the latter track.
Practical test doubles: adding stubs to TestLink Java API
kinow @ Oct 23, 2011 22:10:02Tweet
“Test Double is a generic term for any case where you replace a production object for testing purposes” . There are different types of Test Doubles: Dummy, Fake, Stubs, Spies and Mocks. In this post we will see a practical example of adding stubs to TestLink Java API.
Stubs are objects that return canned answers to calls during tests . This is useful specially when you have a system that communicates with different resources such as databases, web services, XML-RPC services and so on.
TestLink Java API is a small Java project created to act as an interface between TestLink XML-RPC API and a client program written in Java.
( Read more … )
kinow @ Sep 07, 2011 00:36:11Tweet
Unfortunately I missed JCertif last weekend. My visa was in Brazzaville but I couldn’t board in a flight from Johannesburg to Congo without it. Max Bonbhel kindly tried to fax me the visa, but the last flight to Congo closed and I had to come back to Brazil sooner. :-(
Here is the slides that I was going to use there. Hope you take some time to read about TAP, SubUnit and other test protocols. There are two special points to pay attention to, one single format and extensibility.
With a single format for your test results, you won’t need to write many different parsers, one for each distinct format. Extensibility refers to the fact that using formats like xUnit (like JUnit) or TestNG XML you are limited to the XML schema.
Many projects are aiming automation in different levels. Executing automated tests can lead to situations where you need to have information like the database used, JDK version, screen shots taken during some tests, exception stack traces, etc. TAP and SubUnit provide manners to extend your test result and inform to a test consumer (the tool that reads your test output) about such information.