Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When no tests selected to run, cafe-parallel output to a report fails with uncaught exception #60

Open
dgou opened this issue Oct 19, 2017 · 0 comments

Comments

@dgou
Copy link

dgou commented Oct 19, 2017

Here is the failed run, with report options specified where the tag doesn't find any tests:

$ cafe-parallel test.config my.test.class.here -P class -w 4 --result xml --result-directory ./results.xml -t regression


Utilizing the pathos multiprocess library. This feature is experimental


    ( (
     ) )
  .........
  |       |___
  |       |_  |
  |  :-)  |_| |
  |       |___|
  |_______|
=== CAFE Runner ===
======================================================================================================================================================
Percolated Configuration
------------------------------------------------------------------------------------------------------------------------------------------------------
BREWING FROM: ....: ...
ENGINE CONFIG FILE: ...
TEST CONFIG FILE..: ...
DATA DIRECTORY....: ...
LOG PATH..........: ...
======================================================================================================================================================
Traceback (most recent call last):
  File "/Users/dgou/.virtual_envs/c1db5d67f3c7533e/bin/cafe-parallel", line 11, in <module>
    load_entry_point('opencafe==0.3.2', 'console_scripts', 'cafe-parallel')()
  File "/Users/dgou/.virtual_envs/c1db5d67f3c7533e/lib/python2.7/site-packages/cafe/drivers/unittest/runner_parallel.py", line 284, in entry_point
    exit(runner.run())
  File "/Users/dgou/.virtual_envs/c1db5d67f3c7533e/lib/python2.7/site-packages/cafe/drivers/unittest/runner_parallel.py", line 122, in run
    results=results)
  File "/Users/dgou/.virtual_envs/c1db5d67f3c7533e/lib/python2.7/site-packages/cafe/drivers/unittest/runner_parallel.py", line 202, in compile_results
    reporter = Reporter(result_parser, all_results)
UnboundLocalError: local variable 'result_parser' referenced before assignment

Here is a run without report options specified:

$ cafe-parallel test.config my.test.class.here -P class -w 4 -t regression


Utilizing the pathos multiprocess library. This feature is experimental


    ( (
     ) )
  .........
  |       |___
  |       |_  |
  |  :-)  |_| |
  |       |___|
  |_______|
=== CAFE Runner ===
======================================================================================================================================================
Percolated Configuration
------------------------------------------------------------------------------------------------------------------------------------------------------
BREWING FROM: ....: ...
ENGINE CONFIG FILE: ...
TEST CONFIG FILE..: ...
DATA DIRECTORY....: ...
LOG PATH..........: ...
======================================================================================================================================================
----------------------------------------------------------------------
Ran 0 tests in 0.004s
Generated datasets in 0.073s
Total runtime 0.076s

PASSED ======================================================================================================================================================
Detailed logs: ...
------------------------------------------------------------------------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant