RETIRED, further work has moved to Debian project infrastructure
Go to file
2015-12-14 01:37:23 -02:00
steadymark New release: 0.7.3 2015-12-14 01:37:23 -02:00
tests support to bootfile and new release 2013-10-25 15:24:39 -04:00
.gitignore Adding py3k support 2013-01-13 19:56:51 -05:00
.release automating releases 2015-02-11 23:28:02 -05:00
.travis.yml making test scope global 2014-02-02 08:08:23 -05:00
COPYING first commit 2012-07-30 12:16:05 -04:00
Makefile automating releases 2015-02-11 23:28:02 -05:00
README.md New release: 0.7.3 2015-12-14 01:37:23 -02:00
requirements.txt using rednose 2015-02-11 23:26:34 -05:00
setup.py New release: 0.7.3 2015-12-14 01:37:23 -02:00
tox.ini Adding py3k support 2013-01-13 19:56:51 -05:00

Steady Mark

version 0.7.3 Build Status instanc.es Badge meme

Turning your github readme files into python test suites since 2012

Steady Mark was created for python developers that love Github and markdown.

How it works:

Write your documentation using github-flavored markdown, surround your snippets with python code blocks and steadymark will automatically find and run them, if there is a header preceeding your python snippet it will be used as title for your test.

Advantages:

  • Add test coverage to your app/library while documenting it
  • Never have old malfunctional examples on your project's main page in github
  • It uses misaka which is a python-binding of sundown, the markdown engine that github uses in itself

Example

unicode.lower transforms string into lowercase

from sure import expect
assert expect(u"Gabriel Falcao".lower()).equals(u"gabriel falcao")

python can add numbers

assert (2 + 2) == 4, 'oops baby'

Start using steady mark now!

This is the code for the example above, copy and paste in you python project right now and start keeping your documentation up-to-date with the code.

# My project name
`version 0.1`

## unicode.lower transforms string into lowercase

```python
assert "LOWERCaSe".lower() == "lowercase"
```

## python can add numbers

```python
assert (2 + 2) == 5, 'oops baby'
```

Just run with:

$ steadymark README.md

loading a python file before running tests

you can tell steadymark to load a "boot" file before running the tests, it's very useful for hooking up sure or HTTPretty

Steadymark is on version 0.7.3

>>> from sure import expect
>>> from steadymark import version
>>> assert expect(version).should.equal("0.7.3")