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

Can the test number be available as a variable? #15

Open
bexelbie opened this issue Jun 25, 2015 · 2 comments
Open

Can the test number be available as a variable? #15

bexelbie opened this issue Jun 25, 2015 · 2 comments

Comments

@bexelbie
Copy link

This way I could have info messages like:

echo "$TEST_NUMBER: testing foo"
assert something something

echo "$TEST_NUMBER: testing bar"
assert something something

@lehmannro
Copy link
Owner

Sure, and inofficially the test number is already available as $tests_ran. From what I can tell it seems like you actually want some support for test descriptions though. I'd favor adding a test_desc function or some such to assert.sh so that it could be properly hidden when running tests in non-verbose mode.

@bexelbie
Copy link
Author

bexelbie commented Jul 7, 2015

test_desc would be nice, but at a minimum having a $test_number that corresponded to the outputs test number would be nice. I am trying to avoid having to carry a private variable for this or continually having to calculate $tests_ran +1

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