HtmlTestRunner icon indicating copy to clipboard operation
HtmlTestRunner copied to clipboard

Why my html report shows so simple, not colorful likes your ReadMe?Do I need to specify an html template?

Open UnknowZang opened this issue 4 years ago • 2 comments

  • HtmlTestRunner version: 1.2.1
  • Python version: 3.7
  • Operating System: windows / centos 7.6

Description

too simple, not colorful like ReadMe. it is onle white.

What I Did

    runner = HtmlTestRunner.HTMLTestRunner(
        output=test_edge_site.test_dir + '/output/unittest/html', combine_reports=True, report_name='test_detail',
        add_timestamp=False)
    runner.run(suite)
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

UnknowZang avatar Jun 30 '20 10:06 UnknowZang

pic?

mapleflow avatar Jul 01 '20 12:07 mapleflow

As far as I can see, it usually happens when you are behind the GFW and have unstable access to 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css' or 'https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js' which are necessary for rendering the htmls. Using your own template file may solve this problem.

sdetpearls avatar Aug 19 '20 09:08 sdetpearls