Software Testing and Development Blog Posts
Subscribe to the full blog feed using RSS
Subscribe to the full blog feed using RSS
I’m always looking for simple ways that I can improve my Java programming. And SpotBugs, CheckStyle and PMD can help me do that.
There are many differences between JUnit 4 and 5, in terms of JUnit 5 having more capabilities and different ways of doing stuff.
But there are some very obvious differences between 4 and 5 in terms of: ignoring tests, running methods before and after methods and test classes, and exception asserting.
To generate JUnit HTML reports from maven builds we need to add the surefire plugin to generate the xml files and then the site and reporting plugins to create the html report.
I prefer to use either JUnit 4 or JUnit 5, but there may be moments when we want to use both. We can do that with JUnit 5 dependencies.
When using other people’s source code you might discover that you receive errors about java soure levels. These are easily fixed.
In The Evil Tester Show podcast episode 8 I described definitions of software testing and outlined my own. In this post I will deep dive a little bit more into that model.
In The Evil Tester Show podcast episode 8 I mentioned other people’s definitions of software testing and outlined my own. In this post I will deep dive a little bit more into the other definitions.
Turning off JavaScript is becoming more important than ever because so many sites are JavaScript heavy. Many sites use JavaScript as their protection mechanism to paywall content and prevent spam. Testing these without JavaScript enabled is important.
TLDR; Comparing implementations is not done to criticise, it is done to learn, and understand that different motivations and end goals create different code. Different models of the application, lead to different code. The programmer implements models of the domain, and behaviour, as code.
TLDR; I use Thread.sleep as a tactic, not a strategy, unless I’m simulating random user pauses, in which case my implementation of that abstraction will involve a sleep.
When do you use Thread.sleep?
I avoid Thread.sleep as much as possible when automating.