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

Print out thread context switches when a test fails #8

Open
upthewaterspout opened this issue Oct 1, 2018 · 1 comment
Open

Print out thread context switches when a test fails #8

upthewaterspout opened this issue Oct 1, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@upthewaterspout
Copy link
Owner

There is not a lot of debugging information a user gets when a test fails right now.

One useful piece of information would be when we switched from one thread to another.

We could record the class and line number of each decision in the DecisionTree. Then if a test fails, we could take the current DecisionTree and print out all of its parents where the decision switched us from one thread to the other, including the class and line number where that happened.

@upthewaterspout upthewaterspout added the enhancement New feature or request label Oct 1, 2018
upthewaterspout added a commit that referenced this issue Oct 2, 2018
Printing out the places where a thread switches context if a test
failures.

This task is not quite done, because not all line numbers are
instrumented yet - just field access. We should record all line numbers
a test visits so that we print the most accurate line number when there
is a context switch.
@upthewaterspout
Copy link
Owner Author

This is now partially done, but only field accesses record line numbers. We should record every line number. We may also want to include the event that triggered a context switch in the debugging output - was it a field access, or a wait/notify, etc.

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

No branches or pull requests

1 participant