anshooarora / extentreports-csharp

Community version of Extent API for .NET has moved to https://github.com/extent-framework/
http://extentreports.com/
Other
47 stars 43 forks source link

Styles section of extent-config.xml is ignored. CSS is used instead #140

Open grzegorz-jarosz opened 6 years ago

grzegorz-jarosz commented 6 years ago

I couldn't get some custom styles to work. Putting them inside styles tags of extent-reports.xml config file didn't work. After some searching inside this plugin source files I noticed that "styles" doesn't seem to be used. What I found is that "css" is used there. So putting my styles inside "css" config did the trick:

<!-- custom styles -->
<css>
    <![CDATA[
        <!-- I've put my styles here -->
     ]]>
</css>`

So I report this, so everyone having this issue can solve it.

I can imagine two solutions to this issue. Either having the rest of the plugin read "styles" from config as well or updating reference extent-config.xml file to have "css" section there.

Edit: I forgot to specify version I was using. It was 3.1.3

foursyth commented 6 years ago

Thank you for taking time to research this hook. Version 4 supports both styles and CSS tags - to be backward compatible with version 2 and version 3 config xmls.