You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Include first logical line of keyword documentation in log #2491
As mentioned in #1009, documentation of keywords is not fully displayed in generated test output. It would be desirable to also fully include keyword documentation (i.e. multiline documentation) in the same manner as it is done with test case documentation.
Example:
*** Keywords ***
Sign In
[Arguments] ${username}=${default_username} ${password}=${default_password}
[Documentation] Loggt den Benutzer mit Name _username_ und Passwort _password_ ein. Werden _username_ oder _password_
... nicht angegeben, werden die Anmeldedaten des Demo-Benutzers benutzt. Dieses Keyword schlägt fehl
... wenn vor dem Login das Login-Formular nicht vorhanden ist und nach dem Login das Logout-Formular
... nicht vorhanden ist.
The screenshot is right now missing the second and further lines of documentation:
Not showing full keyword documentation is by design. It would increase log file size too much. Currently we only include the first row of the docs in logs, but that could be changed so that we show the first paragraph. The would include everything in the example above, but omit the second paragraph in this example:
*** Keywords ***Example [Documentation] Only the first line in shown in logs nowadays. Possibly we could ... change that and show the whole first paragraph, including this second line. ... ... Here we are in the second paragraph. This wouldn't be shown in logs anyway.
Even this change is somewhat backwards incompatible can can increase log sizes, so I wouldn't like to add it in a minor release.
I have a Neutral position about this. I rarely need long documentation on logs. If the proposed change does not impact much log size or delay in processing or reading, then go for it.
Sorry for the delay, folks. I would welcome @pekkaklarck's proposal.
Besides that: what seems most important to me is that the documentation reflects the actual behavior. I created the issue because I found the behavior to be an error as I did not find any mentioning of the different display truncation per log/output path.
changed the title [-]Include full keyword documentation in log/report[/-][+]Include first logical line of keyword documentation in log[/+]on Jan 9, 2017
Activity
pekkaklarck commentedon Dec 9, 2016
Not showing full keyword documentation is by design. It would increase log file size too much. Currently we only include the first row of the docs in logs, but that could be changed so that we show the first paragraph. The would include everything in the example above, but omit the second paragraph in this example:
Even this change is somewhat backwards incompatible can can increase log sizes, so I wouldn't like to add it in a minor release.
pekkaklarck commentedon Dec 22, 2016
How do you @xanadiu like my proposal above? Any comments from others?
HelioGuilherme66 commentedon Dec 22, 2016
I have a Neutral position about this. I rarely need long documentation on logs. If the proposed change does not impact much log size or delay in processing or reading, then go for it.
xanadiu commentedon Jan 9, 2017
Sorry for the delay, folks. I would welcome @pekkaklarck's proposal.
Besides that: what seems most important to me is that the documentation reflects the actual behavior. I created the issue because I found the behavior to be an error as I did not find any mentioning of the different display truncation per log/output path.
[-]Include full keyword documentation in log/report[/-][+]Include first logical line of keyword documentation in log[/+]pekkaklarck commentedon Jan 9, 2017
Showing the whole first logical line ought to be safe. Lets do it.