This week's book giveaway is in the Open Source Projects forum.
We're giving away four copies of Eclipse Collections Categorically: Level up your programming game and have Donald Raab on-line!
See this thread for details.
  • 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:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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.
 
All of the following truths are shameless lies. But what about this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic