vendredi 24 juillet 2015

How do I run unit tests on my Python code in Buildout?

I have a Python project which is managed by zc.buildout.

My buildout.cfg file looks like this:

[buildout]
parts = python_section ipython_section
develop = .
eggs = redditsubscraper
versions = versions

[versions]

[python_section]
recipe = zc.recipe.egg
interpreter = python
eggs = ${buildout:eggs}

[ipython_section]
recipe = zc.recipe.egg:scripts
eggs = ${buildout:eggs}
    ipython
scripts = ipython

I'd like to add a bin/test script for running unit tests on my library.

How can I add this script? Is there a recipe that I need which will enable me to run bin/test and have my unit tests run?

Aucun commentaire:

Enregistrer un commentaire