Test Path

TwitterFacebook
Get flash to fully experience Pearltrees

Oxen Software Studio: CodePro AnalytiX first impression

I'm evaluating CodePro AnalytiX in order to use it in a project. We're currently using Checkstyle . At first sight, it seems that CodePro AnalytiX is more strict and validates more topics. However, I'm just trying the default configuration. It suggest you always overriding toString() method. http://blog.oxenstudio.com.ar/2010/12/codepro-analytix-first-impression.html
http://www.aldana-online.de/2010/11/14/top-4-software-metrics-antipatterns/ November 14th, 2010 · 1 Comment Metrics are a way to quantify a specific view of a system. They occur in several areas like in source-code (e.g. LOC), process (e.g. number of production issues) or business (e.g. website page-views). Followings lists my “most-favorite” Metrics Antipatterns. 1.

Manuel Aldana &#8212 Top 4 Software-Metrics Antipatterns

Less Than Dot - Blog - Unit Testing Costs Too Much - Twice The Code = Value?

Last week I had the pleasure of presenting at a .Net Code Camp on the topic of Unit Testing. A key theme of the session was barriers to adoption and the values we can achieve using this tool. The main barrier to my adoption of Unit Testing was the idea that writing twice as much code would increase the value of my work. http://blogs.lessthandot.com/index.php/DesktopDev/GeneralPurposeLanguages/unit-testing-costs-too-much-twice-the-co

JUnit Kung Fu: Getting More Out of Your Unit Tests

JUnit is the de facto standard in Java testing. Yet many advanced JUnit features are little known and poorly understood. This session reviews some lesser-known features of JUnit, along with a few associated libraries, that can make your unit tests more powerful, expressive, and fun. The session is intended for Java developers, lead developers, and architects trying to introduce good testing practices into their teams. Attendees will learn about: http://www.wakaleo.com/resources/presentations/287-junit-kung-fu-getting-more-out-of-your-unit-tests
Mockito - Pros, Cons, and Best Practices It's been almost 4 years since I wrote a blog post called " EasyMock - Pros, Cons, and Best Practices , and a lot has happened since. You don't hear about EasyMock much any more, and Mockito seems to have replaced it in mindshare. And for good reason: it is better. http://hamletdarcy.blogspot.com/2010/09/mockito-pros-cons-and-best-practices.html

Mockito - Pros, Cons, and Best Practices

http://opensource.adobe.com/wiki/display/flexpmd/FlexPMD A report is produced describing the violations of a given rule set. FlexPMD includes a rule set that is broad ranging and continually growing. It is also straightforward to create new rules and users are encouraged to do so.

FlexPMD - Flex PMD - Adobe Open Source

Comments, Assertions and Unit Tests

We Recommend These Resources See " Commenting the Code ". This posting tickled my fancy because it addressed the central issue of "what requires comments outside Python docstrings". All functions, classes, modules and packages require docstrings. http://www.dzone.com/links/r/comments_assertions_and_unit_tests.html
We Recommend These Resources Easyb is a powerful and elegent Behaviour-Driven Development (BDD) tool based on Groovy. It excels at being light-weight, highly readable, and easy to use. Lately, I have been using it with great success in combination with Selenium 2/WebDriver Page Objects for the automation of acceptance and regression web tests (ATDD). I'll discuss that in a future blog. But in this article, I want to give a sneak preview about a particularly nice feature due out in the next release. http://www.dzone.com/links/r/exampledriven_testing_with_easyb.html

Example-driven Testing With Easyb

http://www.java-tv.com/2010/09/21/get-higher-with-scalatest/ This video presents ScalaTest , a new testing tool that will let you work at a higher level than JUnit and TestNG. You’ll learn about high-level features of Scala such as traits and self-types, implicit conversions and parameters, functions and closures, and internal DSLs, and see how ScalaTest exploits these features to help you work more productively. You’ll see how you can reduce the lines of test code you write by half and more, how to mix Scala into your existing JUnit or TestNG infrastructure, and how to use Scala in various testing styles, including unit testing, behavior-driven development, integration and acceptance testing, and high-level property-based testing.

Get Higher with ScalaTest | Java Software Development Videos and Tutorials Directory

We Recommend These Resources Software testing traditionally has been separated between unit testing – testing classes in isolation – and integration testing – testing across all layers. Whereas unit testing is the domain of developers, integration testing is the domain of analysts. Moreover, most of the time, those tests are not automated and are painfully reexecuted by hand each time they are needed. http://java.dzone.com/articles/automate-your-integration

Automate Your Integration Tests | Javalobby

Pruebas de rendimiento

Pruebas Unitarias

Pruebas Funcionales

We Recommend These Resources Today, I was looking at the maven dependencies of one of my projects and found a jar called apache-log4j-extras. I fired the maven dependency:tree command to find out where this jar was getting picked up from. I found out that this jar was referred from a third party jar. I decided to take a look at the classes inside this jar and found an interesting class called SoundAppender . SoundAppender is a Log4J appender which play an audio clip created using Applet.newAudioClip when an logging event is received.

Do You Know Log4j SoundAppender?

In his 2001 must-read book, Effective Java , Joshua Bloch said in one item “Favor immutability”. Java theory and practice: To mutate or not to mutate? provides an excellent overview of what this means and why it matters. It states: Obviously this behaviour isn’t desirable, which leads to the practice of defensive copying , a practice familiar to any C programmer. Each time this getter is called a temporary copy is created so the internal state of the class isn’t violated.

Mutability, Arrays and the Cost of Temporary Objects in Java ~ C for Coding

Don’t TOUCH that debugger, you moron, READ the exception stack

We Recommend These Resources There is a tendency to reach the debugger for every error that you run, but in most cases, it is the exception (and the exception stack) that provides enough to solve the problem in 99% of the cases. Case in point, I made some changes to Uber Prof and run the tests.
We Recommend These Resources Have you ever been significantly impeded by bad code? (Uncle) Bob Martin , the CEO of Object Mentor, asked this question at the NDC 2010 conference this year in his first of two major presentations on the subjects of testing and code cleanliness.

How to Clean Your Java Functions and Arguments

When a programmer sees a chunk of code he tends to evaluate it in a rather intuitive manner and to qualify it as “elegant” or not. This is quite easy, because it’s subjective and nobody knows what exactly elegant means. However behind this there is a powerful mathematical approach of measuring a program effectiveness. It’s a pity that most of the developers still think of the big O notation as something from the university classes, but unusual in the practice and they barely use it their job. But before describing the big O notation, let me start from something really simple.

Which is the Fastest Program?