Comments (8)
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.
@djasa Would this be acceptable? It has the same format as the behave.ini definition so you can define whatever format you would like.
from behave-html-pretty-formatter.
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.
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.
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.
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.
Alright, the change is simple enough. It will be in the next released version. 07be943
from behave-html-pretty-formatter.
Added in #47
from behave-html-pretty-formatter.
Related Issues (20)
- Embeded links have no space between with pretty_output=False HOT 1
- Remember expand/collapse state in URL hash
- Simplify contrast toggle
- Try to make sure the generated page is valid xml HOT 4
- Add atexit decorator HOT 29
- Bug: wrong status assignment HOT 5
- Choose the extension of a downloadable file HOT 2
- Embed large text data xz-compressed
- Create embed with unique ID
- Replace invalid data when embeding text files.
- Cumulative HTML report for multiple features HOT 18
- How to embed multiple screenshots into Behave html report using behave-html-pretty-formatter HOT 4
- Improve project structure HOT 1
- Custom setting to expand or collapse the default reporting scenarios HOT 4
- Adding a button to toggle between dark/light mode HOT 1
- Remove duplicated section from README for behave.ini file
- How to get only the latest run of same scenario ? HOT 21
- Add global summary to the HTML report when running multiple features in the same test execution HOT 4
- Logging without context.embed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from behave-html-pretty-formatter.