question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request: Show `set` data tables in doc strings

See original GitHub issue

It would be helpful if data tables supplied as an argument to the set keyword were shown in the doc string for that step. Ideally it would show the values as evaluated, but even having them in their variable/template form would be an improvement as currently no information is retained about what was set:

And set updateComponentTypeJson
        | path                     | value                                                          |
        | componentTypeName        | uniqueComponentTypeName                                        |
        | componentTypeDescription | updateComponentTypeJson.componentTypeDescription + ' ' +  uuid |
        | componentTypeId          | createdComponentTypeId                                         |

Here is the associated step in the .json report:

{
            "name": "set updateComponentTypeJson",
            "result": {
              "duration": 107114900,
              "status": "passed"
            },
            "match": {
              "location": "karate",
              "arguments": []
            },
            "keyword": "And",
            "line": 39
          },

I’d love to see something like this added to this step:

            "doc_string": {
              "content_type": "",
              "value": "        | path                     | value                     |\n        | componentTypeName        | "My unique type name"     |\n        | componentTypeDescription | "My description ABCDEFGH" |\n        | componentTypeId          | 1337                      |",
              "line": 39
            }

Thanks for your work on Karate and your consideration on this feature request.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
treyturnercommented, Jan 26, 2020

Thanks, I will try and get to this this week.

1reaction
ptrthomascommented, Jan 24, 2020

fine, I guess I have to find the time to create a cucumber project or easier may be to get a karate version before 0.9.0 to make sure we are compatible with 3rd party reports like the one below: image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Docstrings Tutorial : Examples & Format for Pydoc ...
See Python Docstrings. Learn about the different types of docstrings & various docstring formats like Sphinx, Numpy, and Pydoc with examples now.
Read more >
Python Docstrings (With Examples) - Programiz
Python docstrings are the string literals that appear right after the definition of a function, method, class, or module. Let's take an example....
Read more >
Python Docstrings - GeeksforGeeks
Docstrings in Classes. Let us take an example to show how to write docstrings for a class and its methods. help is used...
Read more >
Manual - DataTables
As such, this documentation covers details from how to install DataTables on your site in the first instance, explaining how it can source...
Read more >
Package 'data.table' - R Project
frame. key. Character vector of one or more column names which is passed to setkey. It may be a single comma separated string...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found