Guidance on debugging integration tests #135
Replies: 1 comment
-
Adding this section sounds like a great idea @Jorge-Rodriguez ! Would be really helpful for us and new folks. I'll think about the structure of the doc later, added to my TODO. I usually don't debug much (your tasks are usually much more technically complex then mine). If you have time you could explain most possible scenarios and the methods you mentioned when they are applicable for the scenarios and explain how they can help (with short examples, maybe). My vision is several possible scenarios with the tools and short debugging algorithms. From simple things to more complex. Say
I think it makes sense to create a separate md called, say, TEST_DEBUGGING.md or something else. Then we could put the reference in the other guides. I think we should keep it as laconic as possible and put references to the detailed guidelines of the mentioned tools, so if a reader wishes, they can dig into it. I do like the idea:) |
Beta Was this translation helpful? Give feedback.
-
We don't have any section in our guides on how to debug failing tests. Here's what I do:
ANSIBLE_KEEP_REMOTE_FILES
.pause
task right after the test case to be debugged, with a timeout long enough to allow me to run a debugger.@Andersson007 @bmalynovytch what's your approach in this case? How should we document a procedure to handle this workflow?
Beta Was this translation helpful? Give feedback.
All reactions