automatic unmute, after marking a test as fixed, is not working
Hi!
Several days ago, I discovered the mute and investigation features in Teamcity for me. So I'm playing around with it and try to understand it. I also read the documentation, but still have some unanswered questions. If I understand it correct, there are three ways to unmute a muted test: manually, automatically on a specific date or automatically when the test is fixed. For the first two, I have no questions and it also working on my CI. But for the third option I don't understand when a test is counting as fixed. As soon as it is marked as fixed manually? After the test has one successful run? Or is it a bug and should be fixed (or is already in a newer version than I use)?
The Teamcity version I'm using is 2017.1 (build 46533).
Many thanks in advance,
Maxim
Please sign in to leave a comment.
Hi Maxim,
I've been trying the "automatically when test is fixed" in 2017.1.1 and it seems to work just fine when a new build with the passing test happens. If you fix it manually, you also select what happens with the investigation, so that should definitely work.
Could you expand on what exact issue you are facing?
Hello Denis,
this is what I did:
1. I wrote a broken test, so the associated build fails in TeamCity.
2. I marked this test as muted with the option "automatically being unmuted when it's fixed”.
3. I start a second build run (without any changes) and the build was successful with a muted test.
4. I fixed the test and did a third build run, which was successful without muted test.
At this point I expect, that the test will be marked as fixed, but it’s not. It is still in the list of muted test.
Did I do anything wrong or is my understanding of this feature wrong?
Hi Maxim,
I would say that's the procedure and how it should work. I did exactly the same thing but it worked for me. Unmuting the tests can take a bit but should normally happen within a few seconds. Could you check the "teamcity-activities.log" file for a message that after the timestamp contains "test_unmute" and see whether an unmute event for that test was registered when it passed?