Yelp / fuzz-lightyear

A pytest-inspired, DAST framework, capable of identifying vulnerabilities in a distributed, micro-service ecosystem through chaos engineering testing and stateful, Swagger fuzzing.
Other
212 stars 26 forks source link

Gracefully handling case of no tests run #55

Closed domanchi closed 4 years ago

domanchi commented 4 years ago

This fixes this traceback:

Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/nail/home/aaronloo/pg/msg_pages/fuzzing/main.py", line 100, in <module>
    main()
  File "/nail/home/aaronloo/pg/msg_pages/fuzzing/main.py", line 96, in main
    return run_fuzz_lightyear(sys.argv[1:])
  File "/nail/home/aaronloo/pg/msg_pages/virtualenv_run/lib/python3.6/site-packages/fuzz_lightyear/main.py", line 47, in main
    outputter.show_results()
  File "/nail/home/aaronloo/pg/msg_pages/virtualenv_run/lib/python3.6/site-packages/fuzz_lightyear/output/interface.py", line 108, in show_results
    datetime.now() - self.start_time,
  File "/nail/home/aaronloo/pg/msg_pages/virtualenv_run/lib/python3.6/site-packages/fuzz_lightyear/output/formatter.py", line 155, in format_summary
    color,
UnboundLocalError: local variable 'color' referenced before assignment
OiCMudkips commented 4 years ago

Haha, I just hit this. lgtm.