Giter Site home page Giter Site logo

Comments (8)

djasa avatar djasa commented on July 17, 2024 1

We can talk about this in the next update if that is something we should add perhaps as you say to the feature title, while the summary is collapsed.

I stumbled upon this when going through a pile of reports which didn't have obvious timestamp until opening and I wanted to know if I'm looking at something fresh or something from a long time ago, for which a single time stamp visible by default would be very helpful while not cluttering the design (IMO). OTOH keeping detailed info collapsed by default is OK.

from behave-html-pretty-formatter.

modehnal avatar modehnal commented on July 17, 2024 1

@djasa Would this be acceptable? It has the same format as the behave.ini definition so you can define whatever format you would like.
date_format_in_header

from behave-html-pretty-formatter.

fpokryvk avatar fpokryvk commented on July 17, 2024

This is all configurable in behave.ini, just change the following 2 values as you wish:

[behave.userdata]
...
# The '%' must be escaped in ini format.
behave.formatter.html-pretty.date_format = %%d-%%m-%%Y %%H:%%M:%%S
# Defines if the summary is expanded upon start.
behave.formatter.html-pretty.show_summary = false

from behave-html-pretty-formatter.

modehnal avatar modehnal commented on July 17, 2024

So the start/finish timestamps are not visible by default as that does not seems like an important part of the test report, but that is a personal opinion. We can talk about this in the next update if that is something we should add perhaps as you say to the feature title, while the summary is collapsed.

But in the meantime if you require the start date to be seen on first open of the report consider using option in the behave.ini will make sure the summary is always open:
behave.formatter.html-pretty.show_summary = true

For the date format please take a look at behave.ini.

You can define your desired date format in your projects. Which in your case would look like this:
behave.formatter.html-pretty.date_format = %%Y-%%m-%%d

from behave-html-pretty-formatter.

modehnal avatar modehnal commented on July 17, 2024

Closing the issue for now as the formatter provides a possibility to change date format and date appearance in the behave.ini file as you requested without any need to change something on the formatter side.

from behave-html-pretty-formatter.

modehnal avatar modehnal commented on July 17, 2024

I wanted to know if I'm looking at something fresh or something from a long time ago

That is indeed a good point and would be useful to others as well. I will look into it.

from behave-html-pretty-formatter.

modehnal avatar modehnal commented on July 17, 2024

Alright, the change is simple enough. It will be in the next released version. 07be943

from behave-html-pretty-formatter.

modehnal avatar modehnal commented on July 17, 2024

Added in #47

from behave-html-pretty-formatter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.