tabbedwriter

tabbedwriter Developer's Guide

 

Table of Contents

Overview

Simple app. Probably ought to be somewhere in the std python distribution.

Architecture

TabbedWriter is an inheritable class, and might be used that way (giving self.indent, etc.). However, more likely is to use it as a standalone object. See default_wr as an example.

Edit Cycle

Use unittest-based regression testing, where pass/fail is tested via comparing the test output to a known good "oracle".

  1. cd to test dir. Edit go_ scripts as needed for local conditions.
  2. Add test to basic_tests.py
  3. Run go_test. The new case may fail on compile or run errors. Edit as needed.
  4. Rerun and examine resulting test_... file in testdata dir. Edit code as needed until test output looks right.
  5. At this point the test will still fail due to missing oracle for comparison. Run "approve (name of test)" to promote test output to oracle.
  6. Run again, to get pass.

 
Creator: Harry George
Updated/Created: 2004-10-30