S.Lott -- Software Architect
  • Other Articles
  • Publications
  • S.Lott Biography

TDRE - Test Driven Reverse Engineering Case Study

Date Tue 14 February 2012 Tags unit testing / test-driven reverse engineering / #python

Background

Read up on compass variation or declination. For example, this NOAA site provides some useful information.

Mariners use the magnetic variation to compute the difference between True north (i.e., aligned with the grid on the chart) and Magnetic north (i.e., aligned with the compass.)

The essential use …

more ...

Test-Driven Reverse Engineering (TDRE)

Date Tue 19 April 2011 Tags unit testing / #python / reverse engineering / test-driven reverse engineering

Another case study on TDRE.

Provided: 2,938 lines of Python code which process a handful of large files to create a number of outputs. [Details can't be disclosed.]

Objective: Refactor to distinguish between the overall sequence of transformational steps and the details of each individual step.

Observations

The code …

more ...

Unit Test Coverage

Date Wed 25 February 2009 Tags architecture / software design / unit testing / test-driven reverse engineering

Unit test coverage is a politically sensitive issue.

If you don't like (or want) unit testing, you set the threshold really high. 100% code coverage, or worse, 100% logic path coverage. Since these goals are difficult to achieve, the whole unit testing business can be made to go away.

If …

more ...

Conflating Test and Debug

Date Tue 02 December 2008 Tags architecture / software design / unit testing / test-driven reverse engineering

Check out this StackOverflow "question": Does anyone have metrics on the utility of formal Unit Testing? . While -- technically -- it does have a question, it's more of a rant against formal unit testing than a proper question.

Here's the conflation comment. "I've worked with developers who never caught any errors in …

more ...

Tooling to Build Test Cases

Date Sat 30 August 2008 Tags architecture / software design / unit testing / test-driven reverse engineering

Here's a recipe for transforming a pile of similarly-formatted source spreadsheets into a suite of unittest test cases.

Some Use Cases

  1. The subject matter experts will tinker with the spreadsheets. They'll invent new cases, revise old cases, retract cases. You'll be regenerating the test suite constantly.
  2. The subject matter experts …
more ...

The Joy of Unit Testing

Date Thu 28 August 2008 Tags architecture / software design / unit testing / test-driven reverse engineering

The customer sent a screen grab from an accounting desktop application with a couple of rows highlighted. They claim that the application I reverse engineered from C and rewrote in Java didn't work for this one case.

Step 1. Get clarification on the screen grab information. The data labels don't …

more ...

Risk-Based Testing

Date Fri 22 August 2008 Tags software design / unit testing / test-driven reverse engineering

First, read Bach's Heuristic Risk-Based Testing . Clear and simple.

Then, read Amland and Garborgsv Risk-Based Testing and Metrics . Not so clear -- probability gets folded in, confusing the issue. Also check out Schaefer's Risk-Based Testing . Probabilities are waved around like they're important. They aren't.

Risk management shouldn’t be confused with …

more ...

Consequences of Reverse Engineering

Date Thu 13 March 2008 Tags architecture / software design / unit testing / test-driven reverse engineering

Here's one recent example of a significant bug.

The code said A is not NULL OrElse A != " ", which doesn't do anything useful. If A has non-NULL data, this is true. The second part of the clause (A != " ") is only evaluated if A is NULL. If A is NULL, no other …

more ...

I Thought It Was Just Me

Date Sat 05 January 2008 Tags architecture / software design / unit testing / test-driven reverse engineering

See Scott Ambler's article in Dr. Dobb's Journal , "Scaling Test-Driven Development ".

Recently, I'd seen some notes in SD Times on a similar theme, and blogged that in Not Quite Following the Book .

Ambler's point seems to be the same as Coplien's: "High-level architecture sketches created during your Iteration 0 envisioning …

more ...

Not Quite Following the Book

Date Fri 07 December 2007 Tags architecture / software design / unit testing / test-driven reverse engineering

I can't find all of the Better Software Magazine articles on the Sticky Minds web site, so I can't provide a permalink. But look for "A Story About User Stories and Test Driven Development". It's good stuff, weighing out the good and bad features of "by-the-book" TDD.

Dr. Dobb's Journal …

more ...

  • «
  • 1
  • 2
  • 3
  • »
  • Social

    • Mastodon
    • Github
    • StackOverflow
    • LinkedIn
    • O'Reilly
    • Amazon
  • Categories

    • Architecture & Design
    • Books
    • FOSS
    • Management
    • News
    • Python
    • Technologies
  • Links

    • Pelican
    • Python.org
    • Jinja2
  • Archive

    • February 2024 (1)
    • January 2018 (1)
    • February 2014 (1)
    • June 2013 (3)
    • May 2013 (2)
    • April 2013 (1)
    • June 2012 (1)
    • February 2012 (1)
    • April 2011 (1)
    • February 2009 (1)
    • December 2008 (1)
    • August 2008 (3)
    • March 2008 (1)
    • January 2008 (1)
    • December 2007 (1)
    • November 2007 (1)
    • October 2007 (2)
    • September 2007 (1)

© 2024 S.Lott · Powered by pelican-bootstrap3, Pelican, Bootstrap

Back to top