XylotrechusZ
�
���gT � � � d Z ddlmZ ddlmZ ddlZddlZddlZ ej e � Z
G d� de� Z G d� d� Z G d � d
ej � Z
y)a
This plugin bypasses the actual execution of tests, and instead just collects
test names. Fixtures are also bypassed, so running nosetests with the
collection plugin enabled should be very quick.
This plugin is useful in combination with the testid plugin (``--with-id``).
Run both together to get an indexed list of all tests, which will enable you to
run individual tests by index number.
This plugin is also useful for counting tests in a test suite, and making
people watching your demo think all of your tests pass.
� )�Plugin)�TestNc �* � e Zd ZdZdZdZd� Zd� Zd� Zy)�CollectOnlyzB
Collect and output test names only, don't run any tests.
zcollect-only�collect_onlyc � � |j dd| j |j d� d| j � z �� y)z&Register commandline options.
z--collect-only�
store_true�NOSE_COLLECT_ONLYz&Enable collect-only: %s [COLLECT_ONLY])�action�dest�default�helpN)�
add_option� enableOpt�getr )�self�parser�envs �C/opt/hc_python/lib/python3.12/site-packages/nose/plugins/collect.py�optionszCollectOnly.options sB � � ���*�!-�#�~�~�"%�'�'�*=�">�G��9�9�;� (� � )� c �b � t j d� t | j � |_ y)z8Install collect-only suite class in TestLoader.
zPreparing test loaderN)�log�debug�TestSuiteFactory�conf�
suiteClass)r �loaders r �prepareTestLoaderzCollectOnly.prepareTestLoader'