Getting started with TDD - A practical introduction
The following presentation is a module from the 'Testing and Test-Driven Development for Java Developers' Course. It goes through a worked introduction to TDD theory and practices. Enjoy!
Add a commentData-driven tests with JUnit 4 and Excel
One nice feature in JUnit 4 is that of Parameterized Tests, which let you do data-driven testing in JUnit with a minimum of fuss. It's easy enough, and very useful, to set up basic data-driven tests by defining your test data directly in your Java class. But what if you want to get your test data from somewhere else? In this article, we look at how to obtain test data from an Excel spreadsheet.
Add a commentTest-Driven Development with Legacy code - an introduction
Test-Driven Development, or TDD, is often quoted as an essential Agile best practice, and so it is. It works wonders on green-fields projects and new code bases where you can start afresh and ensure that all your code is both easily testable and well tested. But what about legacy code? (By legacy code, I mean any code that does not have a comprehensive set of automated tests, so you might be writing legacy code as we speak). For most of us, most of the code we will ever work on will not have originally been our own work. And, unfortunately for the software industry, only a small fraction of code can really boast comprehensive unit and integration tests. How can techniques like Test-Driven Development make our work as developers more productive and less frustrating?
Add a commentParameterized web tests with Maven and Selenium
Selenium is a popular web testing framework, well known for the Selenium IDE, which lets you record and replay web tests in the form of HTML files. However, that is not my preferred way of using Selenium. In fact, I much prefer using tools like Selenium for Acceptance Test-Driven Development. The high-level Selenium API is great for writing executable acceptance tests. This approach also works well with easyb, but in this article, for simplicity's sake, we'll just be sticking to plain old JUnit-driven acceptance tests.
Add a commentA new Java Power Tools Newsletter is out!
A new Java Power Tools Newsletter is out! In this issue, we look at the three circles of developer web testing.
Add a comment








