Coder Social home page Coder Social logo

jackton1 / book-tdd-web-dev-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hjwp/book-tdd-web-dev-python

0.0 2.0 0.0 39.08 MB

Book - TDD web dev with Python

License: Other

Makefile 0.30% HTML 3.61% Python 87.18% Shell 2.76% CSS 1.83% JavaScript 0.79% Batchfile 2.56% XSLT 0.96%

book-tdd-web-dev-python's Introduction

Test-Driven Web Development With Python, the book.

License

The sources for this book are published under the Creative Commons Attribution Non-Commercial No-Derivs license (CC-BY-NC-ND).

I wouldn't recommend using this version to read the book. Head over to www.obeythetestinggoat.com when you can access a nicely formatted version of the full thing, still free and under CC license. And you'll also be able to buy an ebook or print version if you feel like it.

These sources are being made available for the purposes of curiosity (others writing books may be interested in the test suite for example) and collaboration (typo-fixes by pull request are very much encouraged).

Building the book as HTML

  • install asciidoc
  • make build will build each chapter as its own html file
  • make book.html will create a single file
  • make chapter_05.html, eg, will build chapter 5

Running the tests

  • Pre-requisites for the test suite:

    mkvirtualenv --python=python3 tddbook pip install -r requirements.txt git submodule update --init

  • Full test suite:

    make test

  • To test an individual chapter, eg:

    make test_chapter_06

  • Unit tests (tests for the tests for the tests in the testing book)

    ./run_test_tests.sh

Building the the tutorial handout

There may be licensing issues associated with running tutorials based on this book without explicit permission from my publishers. Please get in touch with me first if you do want to run one. Don't worry, it's always been fine in the past, and I'm not intending to charge anything!

The handout lives on a branch, which basically strips out everything but code listings and commands, from chapters 1-6:

git checkout workshop_handout
make book.html

Then open book.html in Firefox, and hit "Save as" to save a version with a .html extension and an associated directory for images. Then zip those two up together.

book-tdd-web-dev-python's People

Contributors

andreacrotti avatar dangitoreilly avatar hackermatthew avatar hjwp avatar karaebrahim avatar kristenorm avatar mbeijen avatar meghanorm avatar slynchoreilly avatar tartley avatar wasabigeek avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.