-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more details to robot docs #583
Comments
Not sure if it's correct place or if it should be in it's own issue but we should probably at least somewhat standardize keyword description format. I'd also like if each description had requirements of when it can be used and maybe some side effects of using keyword e.g. whether keyword needs to be used inside Linux shell or during booting (e.g. after power on or reboot), whether using this keyword ends in reboot (especially if it's not easily deducible from description/name).
|
I totally agree. At this moment using the keywords pretty much requires first looking up how they work inside. As for this, I believe the only good fix would be to create a guideline somewhere in the OSFV repo, tell everyone to use it for new keywords and give someone the task of fixing the documentation for every existing keyword, test case and test suite according to the guidelines.
There is a robocop check for that, just that it is being skipped for now because... not all keywords have documentation
There are many more checks skipped there, most marked with something like |
Adding type annotations to keywords defined using RF is not supported right now with RF 7.0.1. There is an issue in their repository for this feature: robotframework/robotframework#3278. As for now we could just require to manually say in the documentation what types are considered valid for a given argument. |
I'm working on creating the documentation guidelines here: I have proposed a template for KW documentation. It's hard to not notice that it is a bit long compared to existing documentations. Writing complex in-code documentation could negatively affect the process of creating and maintaining the keywords. The documentation of test cases and test suites could probably also use some standarization and/or extension. I am not sure what we would wan't to include in them though. @mkopec Would you mind to share what you think? |
@philipandag There is keyword length limit of maybe 50 lines in our pre-commit? I'm not sure if it's
If it still does then we need to at least increase this limit or maybe add such a feature to robocop .
|
I am aware of that and also thought that it might pose a problem. Defining keywords and their documentation in Python would certainly not trigger this robocop check, what's more, defining type hints for arguments and return values is possible if the keyword is implemented in Python. Rewriting most keywords in Python wouldn't be a good idea though, so I guess we need to document the KWds in RF. Do you think such verbose documentation as in #637 i a good idea?
|
I guess it's better than no/bad documentation. Not sure how I'd feel when every keyword in e.g. The biggest problem is with indentation |
The problem you're addressing (if any)
The current version of the robot documentation does not provide all necessary information that may help to develop or debug tests.
Describe the solution you'd like
Add the following information to the robot documentation:
Where is the value to a user, and who might that user be?
Provide more relevant context for test developers.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: