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

FileNotFoundError: [Errno 2] No such file or directory: report_template.html #2

Closed
ArturSpirin opened this issue Dec 14, 2018 · 0 comments
Assignees
Labels
bug Something isn't working
Projects

Comments

@ArturSpirin
Copy link
Owner

  1. Python version python --version >> All
  2. Test Junkie version pip show test_junkie >> 0.4a0
  3. Command used, if running via terminal >> N/A
  4. Smallest code snippet that can reproduce the issue
    Any suites that are executed with the html_report flag
@Suite()
class Example:

    @test()
    def a(self):
        pass

    @test()
    def b(self):
        pass

runner = Runner([Example], html_report="path/to/report.html")
runner.run()

Expected behaviour

Should parse out the default html template and create a new html report at path/to/report.html

Actual behaviour

The default HTML template, used to create the report, is actually not getting distributed with the Python package thus the error such as

Traceback (most recent call last):
  File "C:/Users/aspir/Desktop/test.py", line 30, in <module>
    runner.run()
  File "C:\Python36\lib\site-packages\test_junkie\runner.py", line 257, in run
    self.__create_html_report(reporter)
  File "C:\Python36\lib\site-packages\test_junkie\runner.py", line 117, in __create_html_report
    reporter.generate_html_report(self.__kwargs.get("html_report"))
  File "C:\Python36\lib\site-packages\test_junkie\reporter\reporter.py", line 36, in generate_html_report
    with open(self.html_template, "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Python36\\lib\\site-packages\\test_junkie\\reporter\\report_template.html'
@ArturSpirin ArturSpirin added the bug Something isn't working label Dec 14, 2018
@ArturSpirin ArturSpirin self-assigned this Dec 14, 2018
@ArturSpirin ArturSpirin added this to Done in Bugs Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Bugs
  
Done
Development

No branches or pull requests

1 participant