Skip to content
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

[doc] doesn't support printing variables #6

Open
jsherman256 opened this issue Oct 28, 2015 · 4 comments
Open

[doc] doesn't support printing variables #6

jsherman256 opened this issue Oct 28, 2015 · 4 comments

Comments

@jsherman256
Copy link

I prefer the format of [doc] over the format of [progress] for printing out values that are important to test cases (especially when debugging). However, the variable is printed out as a string literal "${var}" rather than printing the content of ${var}

@hawk
Copy link
Owner

hawk commented Oct 29, 2015

The main purpose with the doc tags are to provide a (static) overview of
what the purpose is with the various test cases. A simplified test spec.

Supporting variables in the doc tags would make the "test spec" quite ugly
as most of the variables would only be set while executing the tests. That
is they are not set when the script is preprocessed to extract the doc tags.

I think a better idea is to allow newlines and tabs in the progress tags.

/Håkan
On Oct 29, 2015 12:13 AM, "jsherman256" [email protected] wrote:

I prefer the format of [doc] over the format of [progress] for printing
out values that are important to test cases (especially when debugging).
However, the variable is printed out as a string literal "${var}" rather
than printing the content of ${var}


Reply to this email directly or view it on GitHub
#6.

@hawk
Copy link
Owner

hawk commented Oct 30, 2015

An alternate approach is to use the "tail" (or "t" for short) command in
the debugger. (The debugger is normally enabled and reads commands from
stdin. Just enter a command and hit enter.) With the "tail" command it is
possible to display the contents of lux various log files. By default the
event log is displayed. This is quite useful when a test script is stuck
somewhere and you want to determine what it has done and what it is waiting
for. Hitting enter an extra time repeats the previous command. In case of
the "tail" command the first invokation prints out the last 10 lines.
Hitting enter once more prints out the last 20 etc.

/Håkan

On Thu, Oct 29, 2015 at 8:43 AM, Håkan Mattsson [email protected]
wrote:

The main purpose with the doc tags are to provide a (static) overview of
what the purpose is with the various test cases. A simplified test spec.

Supporting variables in the doc tags would make the "test spec" quite ugly
as most of the variables would only be set while executing the tests. That
is they are not set when the script is preprocessed to extract the doc tags.

I think a better idea is to allow newlines and tabs in the progress tags.

/Håkan
On Oct 29, 2015 12:13 AM, "jsherman256" [email protected] wrote:

I prefer the format of [doc] over the format of [progress] for printing
out values that are important to test cases (especially when debugging).
However, the variable is printed out as a string literal "${var}" rather
than printing the content of ${var}


Reply to this email directly or view it on GitHub
#6.

@hawk
Copy link
Owner

hawk commented Oct 30, 2015

The debugger is also enabled when you use the more compact TAP printout
(enabled with "lux -t"). I our Jenkins runs we use "lux -t" to shrink the
output on stdout a bit.

/Håkan

On Fri, Oct 30, 2015 at 11:01 AM, Håkan Mattsson [email protected]
wrote:

An alternate approach is to use the "tail" (or "t" for short) command in
the debugger. (The debugger is normally enabled and reads commands from
stdin. Just enter a command and hit enter.) With the "tail" command it is
possible to display the contents of lux various log files. By default the
event log is displayed. This is quite useful when a test script is stuck
somewhere and you want to determine what it has done and what it is waiting
for. Hitting enter an extra time repeats the previous command. In case of
the "tail" command the first invokation prints out the last 10 lines.
Hitting enter once more prints out the last 20 etc.

/Håkan

On Thu, Oct 29, 2015 at 8:43 AM, Håkan Mattsson [email protected]
wrote:

The main purpose with the doc tags are to provide a (static) overview of
what the purpose is with the various test cases. A simplified test spec.

Supporting variables in the doc tags would make the "test spec" quite
ugly as most of the variables would only be set while executing the tests.
That is they are not set when the script is preprocessed to extract the doc
tags.

I think a better idea is to allow newlines and tabs in the progress tags.

/Håkan
On Oct 29, 2015 12:13 AM, "jsherman256" [email protected] wrote:

I prefer the format of [doc] over the format of [progress] for printing
out values that are important to test cases (especially when debugging).
However, the variable is printed out as a string literal "${var}" rather
than printing the content of ${var}


Reply to this email directly or view it on GitHub
#6.

@hawk
Copy link
Owner

hawk commented Oct 30, 2015

Now (1.9.5) you can have newlines and tabs in the [progress] command.

/Håkan

On Fri, Oct 30, 2015 at 11:06 AM, Håkan Mattsson [email protected]
wrote:

The debugger is also enabled when you use the more compact TAP printout
(enabled with "lux -t"). I our Jenkins runs we use "lux -t" to shrink the
output on stdout a bit.

/Håkan

On Fri, Oct 30, 2015 at 11:01 AM, Håkan Mattsson [email protected]
wrote:

An alternate approach is to use the "tail" (or "t" for short) command in
the debugger. (The debugger is normally enabled and reads commands from
stdin. Just enter a command and hit enter.) With the "tail" command it is
possible to display the contents of lux various log files. By default the
event log is displayed. This is quite useful when a test script is stuck
somewhere and you want to determine what it has done and what it is waiting
for. Hitting enter an extra time repeats the previous command. In case of
the "tail" command the first invokation prints out the last 10 lines.
Hitting enter once more prints out the last 20 etc.

/Håkan

On Thu, Oct 29, 2015 at 8:43 AM, Håkan Mattsson [email protected]
wrote:

The main purpose with the doc tags are to provide a (static) overview of
what the purpose is with the various test cases. A simplified test spec.

Supporting variables in the doc tags would make the "test spec" quite
ugly as most of the variables would only be set while executing the tests.
That is they are not set when the script is preprocessed to extract the doc
tags.

I think a better idea is to allow newlines and tabs in the progress tags.

/Håkan
On Oct 29, 2015 12:13 AM, "jsherman256" [email protected]
wrote:

I prefer the format of [doc] over the format of [progress] for printing
out values that are important to test cases (especially when debugging).
However, the variable is printed out as a string literal "${var}" rather
than printing the content of ${var}


Reply to this email directly or view it on GitHub
#6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants