nose-devs / nose

nose is nicer testing for python
http://readthedocs.org/docs/nose/en/latest/
1.36k stars 395 forks source link

Nose does not collect tests from extension modules #106

Open jpellerin opened 12 years ago

jpellerin commented 12 years ago

What steps will reproduce the problem?

  1. writing an extension module with test functions and test classes
  2. using --include to nosetests to have nose select extension modules

What is the expected output? What do you see instead? That it runs the tests inside the extension module, it doesn't.

What version of the product are you using? On what operating system? Using nose 0.10.4, on Ubuntu 9.10.

Google Code Info: Issue #: 327 Author: markflor...@gmail.com Created On: 2010-03-21T13:36:13.000Z Closed On:

jpellerin commented 12 years ago

It would be really awesome if this were implemented. The killer app IMO would be using Cython (or Pyrex) to write unit tests for C/C++ code without having to write any wrappers. Guess I'll just have to fall back on unittest for now.

Google Code Info: Author: jeff.lau...@gmail.com Created On: 2011-05-13T01:32:48.000Z

jpellerin commented 12 years ago

This should be possible by how nose imports a module to discover tests. Can you attach a module and test case to reproduce the problem?

Google Code Info: Author: kumar.mcmillan Created On: 2011-05-13T15:36:50.000Z

johnyf commented 8 years ago

Does this issue affect the plugin for coverage.py when collecting coverage measurements for Cython modules?

This may be relevant to: https://github.com/cython/cython/issues/1508.