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

Change the AuthenticationTest log file name to indicate result #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rcritten
Copy link
Contributor

Also include the number of clients and threads in the filename.

This makes it easier to find success/failure and with the tuning
of clients vs threads.

Also include the number of clients and threads and whether all
the authentications succeeded in the filename.

This makes it easier to find success/failure and with the tuning
of clients vs threads.
total_threads,
total_successes
total_successes,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, if msg is fails, it will be shown alongside the successes (from total_successes). We could add a conditional so that fails are only shown if there were any, or to be consistent we can just show fails always and for a successful run it would show as 0fails (total_threads - total_succeses).

So it would behave like:
10 threads, 10 successes: 0fails
10 threads, 6 successes: 4fails
10 threads, 0 successes: 10fails

What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having something unique to regex on to find the successes when doing ranges of tests is handy. I guess 0fails could be that thing but just looking for success is simpler IMHO.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that works too. But then we can remove the msg variable and just put "successes" on the string.

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

Successfully merging this pull request may close these issues.

2 participants