Thomas Sundberg

August 6, 2016

Creating technical debt is like gaining weight

Filed under: Programming, Technical debt — Tags: — Thomas Sundberg @ 14:58

This post is available at http://www.thinkcode.se/blog/2016/08/06/creating-technical-debt-is-like-gaining-weight

August 4, 2016

Gatling – a tool for load testing

Filed under: Load testing, Scala, Test Automation — Tags: , — Thomas Sundberg @ 17:02

This post is available at http://www.thinkcode.se/blog/2016/08/04/gatling-a-tool-for-load-testing

July 25, 2016

The Right Tool for the Job

Filed under: BDD, Cucumber, Programming, Test Automation — Tags: , — Thomas Sundberg @ 22:06

This post is available at http://www.thinkcode.se/blog/2016/07/25/the-right-tool-for-the-job

June 22, 2016

Cucumber Anti-Patterns

Filed under: BDD, Cucumber — Tags: — Thomas Sundberg @ 06:20

This post is available at http://www.thinkcode.se/blog/2016/06/22/cucumber-antipatterns

April 18, 2016

Hamcrest, JUnit, Mockito, IntelliJ IDEA, Gradle, and java.lang.NoSuchMethodError: org.hamcrest.Matcher.describeMismatch

Filed under: Gradle, JUnit, Mockito, TDD — Tags: , — Thomas Sundberg @ 21:52

This post has been migrated to http://www.thinkcode.se/blog/2016/04/18/hamcrest-junit-mockito-intellij-idea-gradle-and-javalangnosuchmethoderror-orghamcrestmatcherdescribemismatch

Ever included Mockito in your project and lost the nice feedback from Hamcrest? And only when running your unit tests from IntelliJ IDEA? Instead of a message describing what you should fix, you see java.lang.NoSuchMethodError: org.hamcrest.Matcher.describeMismatch

I have. More than once and been very frustrated. These are tools I like. Not getting good messages upsets me.

(more…)

April 2, 2016

Cucumber regular expression cheat sheet

Filed under: Cucumber, Programming — Tags: — Thomas Sundberg @ 15:30

This post has been migrated to http://www.thinkcode.se/blog/2016/04/02/cucumber-regular-expression-cheat-sheet

If you are like me, then you will feel a lump in your stomach when you realize that you need a regular expression. I think that the saying “If you have a problem that requires a regular expression, then you have two problems” is very appropriate most of the time.

It turns out that you need a some regular expressions when you are working with Cucumber. In this case, they are usually not very complicated.

(more…)

March 26, 2016

Where should you use Behaviour Driven Development, BDD?

Filed under: BDD, Cucumber — Tags: , , — Thomas Sundberg @ 20:07

This post has been migrated to http://www.thinkcode.se/blog/2016/03/26/where-should-you-use-behaviour-driven-development-bdd

When I was at the European Testing Conference 2016 in Bucharest, a colleague asked me about my thoughts on they should use Behaviour Driven Development, BDD. I didn’t get a good chance to elaborate on my view so I decided that I should write this instead.

(more…)

March 25, 2016

Dependencies between tests

Filed under: Programming — Thomas Sundberg @ 20:07

This post has been migrated to http://www.thinkcode.se/blog/2016/03/25/dependencies-between-tests

A test must be independent. That is, a test should never depend on the result of another test.

If you run two tests in a specific order, you should expect the same result as if you run them in the reverse order.

(more…)

February 16, 2016

Comments are deodorant for your code

Filed under: Clean Code, Programming — Tags: , , — Thomas Sundberg @ 20:53

This post has been migrated to http://www.thinkcode.se/blog/2016/02/16/comments-are-deodorant-for-your-code

Writing comments in a program is often considered a good habit. I hear people talking about code as “good and well commented”. This always makes me skeptic. What do people mean with “well commented”? It turns out, they often mean that every method has a lot of comments.

(more…)

January 14, 2016

Separation of concern when using Selenium

Filed under: Java, Selenium, Test Automation — Tags: , — Thomas Sundberg @ 20:07

This post has been migrated to http://www.thinkcode.se/blog/2016/01/14/separation-of-concern-when-using-selenium

A lot of people want to automate testing of their web applications. This is definitely a good thing. But it happens that they focus more on the tooling than the testing.

(more…)

Older Posts »

Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 85 other followers