Debian Codegraph @

docs/plugins/eggdiscovery.rst

raw
1 ==========================
2 Loader: Egg Test discovery
3 ==========================
4
5
6 What is Egg Discovery
7 ---------------------
8
9 Sometimes Python Eggs are marked as zip-safe and they can be installed zipped,
10 instead of unzipped in an ``.egg`` folder. See http://peak.telecommunity.com/DevCenter/PythonEggs for more details.
11 The normal ``nose2.plugins.loader.discovery`` plugin ignores modules located inside zip files.
12
13 The Egg Discovery plugin allows nose2 to discover tests within these zipped egg files.
14
15 This plugin requires ``pkg_resources`` (from ``setuptools``) to work correctly.
16
17
18 Usage
19 -----
20
21 To activate the plugin, include the plugin module in the plugins list
22 in ``[unittest]`` section in a config file::
23
24 [unittest]
25 plugins = nose2.plugins.loader.eggdiscovery
26
27 Or pass the module with the :option:`--plugin` command-line option::
28
29 nose2 --plugin=nose2.plugins.loader.eggdiscovery module_in_egg
30
31
32 Reference
33 ---------
34
35 .. autoplugin :: nose2.plugins.loader.eggdiscovery.EggDiscoveryLoader