background preloader

Waldoph

Facebook Twitter

Waldo Paredes

Enhancement

Some crucial advice about how to live with less — a lot less. Graham Hill used to live a luxurious lifestyle, but one day he realised that all the things he owned were consuming all his energy and time.

Some crucial advice about how to live with less — a lot less

We thought we’d share some of his thoughts with you — they really helped open our eyes about something very important. Take a look. ’I live in a 420-square-foot studio. I sleep in a bed that folds down from the wall. I have six dress shirts. I have come a long way from the life I had in the late ’90s, when, flush with cash from an Internet start-up sale, I had a giant house crammed with stuff — electronics and cars and appliances and gadgets. Somehow this stuff ended up running my life, or a lot of it; the things I consumed ended up consuming me. We live in a world of surfeit stuff, of big-box stores and 24-hour online shopping opportunities. There isn’t any indication that any of these things makes anyone any happier; in fact it seems the reverse may be true. My success and the things it bought quickly changed from novel to normal. It got worse.

Testing stuff

Statement, Branch, and Path Coverage Testing in Java. Statement, Branch, and Path Coverage Testing in Java Pages: 1, 2 Both tests verify the requirement (output equals input) and they generate 100 percent branch coverage.

Statement, Branch, and Path Coverage Testing in Java

But, even with 100 percent branch coverage, the tests missed finding the bug. And again, the manager may believe that testing is complete and that this method is ready for production. A savvy developer recognizes that you're missing some of the possible paths through the method under test. The example above hasn't tested the TRUE-FALSE-TRUE or FALSE-TRUE-TRUE paths, and you can check those by adding two more tests.

There are only three decisions in this method, so testing all eight possible paths is easy. So, achieving 100 percent statement and 100 percent branch coverage may not be adequate, and testing every possible path exhaustively is probably not feasible for a complex method either. Basis Path Coverage A path represents the flow of execution from the start of a method to its exit. Figure 4. Creating Test Data Summary.

WebDriver

FEST: Fixtures for Easy Software Testing - Mocks Aren't Stubs. The term 'Mock Objects' has become a popular one to describe special case objects that mimic real objects for testing.

Mocks Aren't Stubs

Most language environments now have frameworks that make it easy to create mock objects. What's often not realized, however, is that mock objects are but one form of special case test object, one that enables a different style of testing. In this article I'll explain how mock objects work, how they encourage testing based on behavior verification, and how the community around them uses them to develop a different style of testing. I first came across the term "mock object" a few years ago in the Extreme Programming (XP) community.

Since then I've run into mock objects more and more. But as often as not I see mock objects described poorly. This difference is actually two separate differences. Regular Tests I'll begin by illustrating the two styles with a simple example. These two behaviors imply a couple of tests, these look like pretty conventional JUnit tests.