Intermediate and Advanced Software Carpentry
latest
  • Day 1
    • Idiomatic Python
    • Structuring, Testing, and Maintaining Python Programs
    • Testing Your Software
    • An Extended Introduction to the nose Unit Testing Framework
  • Day 2
  • Day 3
Intermediate and Advanced Software Carpentry
  • Docs »
  • Day 1
  • Edit on GitHub

Day 1ΒΆ

Contents:

  • Idiomatic Python
    • Some basic data types
    • List comprehensions
    • Building your own types
    • Iterators
    • Generators
    • assert
    • Conclusions
  • Structuring, Testing, and Maintaining Python Programs
    • Programming for reusability
    • Modules and scripts
    • Packages
    • A short digression: naming and formatting
    • Another short digression: docstrings
    • Sharing data between code
    • Scoping: a digression
    • Back to sharing data
    • How modules are loaded (and when code is executed)
    • PYTHONPATH, and finding packages & modules during development
    • setup.py and distutils: the old fashioned way of installing Python packages
    • setup.py, eggs, and easy_install: the new fangled way of installing Python packages
  • Testing Your Software
    • An introduction to testing concepts
    • The doctest module
    • Unit tests with unittest
    • Testing with nose
    • Code coverage analysis
    • Adding tests to an existing project
    • Concluding thoughts on automated testing
  • An Extended Introduction to the nose Unit Testing Framework
    • What are unit tests?
    • Why use a framework? (and why nose?)
    • A few simple examples
    • A somewhat more complete guide to test discovery and execution
    • The nose command line
    • Running doctests in nose
    • The ‘attrib’ plug-in – selectively running subsets of tests
    • Running nose programmatically
    • Writing plug-ins – a simple guide
    • nose caveats – let the buyer beware, occasionally
    • Credits
Next Previous

© Copyright 2012, C. Titus Brown. Revision af81ac87.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
Downloads
pdf
htmlzip
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.