Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Bad Programming Practices 101: Testing Prerequisites

 
Ranch Hand
Posts: 316
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Karl! I've been looking at the book's previews and they're great. I especially love the sense of humor.

I've done some programming, but I am an absolute beginner when it comes to testing. Do you have any recommendations on the best way to learn the prerequisites for the testing chapter?

Thanks!
 
Author
Posts: 13
5
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Paul,

Prerequisite 1: Understand the basic concepts of unit and integration testing.

It's important to understand what software testing tries to achieve, and how unit and integration testing help toward that. Read about testing in theory (i.e. independent of any particular language) and understand things like black box vs white box, equivalence partitioning, validation vs verification, and the contrast between proving a program correct and empirically testing it. Any good software engineering book will discuss these.

Prerequisite 2: Be able to write basic test cases using frameworks like JUnit.

This is actually quite straightforward. If you can write some code, write a test class that tests at least one method, and run the test class so that it executes correctly, you meet this prerequisite. Most IDEs make this very simple by building JUnit into the IDE. Try it out in your favourite IDE.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic