Januar 2012 Archives

The normal project layout, generated by the scaffolding for Pyramid projects, generates a project structure like this:

project/
            package/
                          tests.py (or tests/*)

In conjunction with Jenkins, it turns out that nose’s plugin for Cobertura-style output fails to discover the test modules properly. Instead of saying

`$ nosetests --with-xcover`

one needs to also specify the configuration file:

`$ nosetests -c development.ini  --with-xcover`

I am using zc.buildout together with a virtualenv to generate my Plone instances. It turns out that Zope requires the Python Profile be installed. However, under Debian, the relevant package, python-profiler has made it to non-free instead of main, due to the licensing of that package. As a result, you only discover that testing doesn’t work until Zope tries to import the profiler, and falls over.

In order to get things to run, you need to do the following:

# Add non-free to the set of repositories that you want to use. Eg.:

  deb http://ftp.debian.org/debian stable main

would have to become

  deb http://ftp.de.debian.org/debian stable main non-free

# Run apt-get update (obviously). # Now you can apt-get install python-profiler, and you should be all set.

About this Archive

This page is an archive of entries from Januar 2012 listed from newest to oldest.

Dezember 2011 is the previous archive.

Februar 2012 is the next archive.

Find recent content on the main index or look in the archives to find all content.