Debugging Docker with IntelliJ IDEA

Update: This post is now available at a new location:
https://blog.ngeor.com/2017/03/26/debugging-docker-with-intellij-idea.html

In this post we’ll create a small Java application, run it inside a Docker container, and use IntelliJ IDEA to debug. The source code is available here. This is a rather large post, so take your time.

Continue reading Debugging Docker with IntelliJ IDEA

Advertisements

Linting with Checkstyle

Update: This post is now available at a new location:
https://blog.ngeor.com/2017/03/12/linting-with-checkstyle.html

Code is going to be written once but read many times. A consistent coding style across the entire code base is important to increase readability and maintainability. Luckily, there are tools that can help to define and enforce such styling rules. From mere cosmetics up to nasty code smells, static code analysis can help increase the quality of your code. I wrote some posts on static code analysis in JavaScript a bit more than a year ago (which in the JavaScript world means the tools are now different, ESLint instead of JSCS/JSHint). In this post we’ll see the Checkstyle tool in the Java world, how to use it with TeamCity and IntelliJ and finally a few words about SonarQube.

Continue reading Linting with Checkstyle

Functional Testing – Dealing with failed tests

Update: This post is now available at a new location:
https://blog.ngeor.com/2016/07/23/functional-testing-dealing-with-failed-tests.html

In the previous post, we wrote some functional tests and we encountered our first failing test. Let’s see how we can go about investigating these failures, both on a developer machine and during continuous integration. Continue reading Functional Testing – Dealing with failed tests