When TeamCityTestSuiteBlock or TeamCityFlowWriter instances are disposed, a check is made if no child suites/tests/flows are open. If there are open children, an exception is thrown. The exception message is not very descriptive, e.g.:
Some child test suite writers were not disposed.
System.InvalidOperationException
at JetBrains.TeamCity.ServiceMessages.Write.Special.Impl.Writer.TeamCityTestSuiteBlock.DisposeImpl()
at JetBrains.TeamCity.ServiceMessages.Write.Special.Impl.Writer.BaseDisposableWriter`1.Dispose()
at JetBrains.TeamCity.ServiceMessages.Write.Special.Impl.TeamCityWriterImpl.Dispose()
...
which is not very useful to diagnose the problem.
The proposal
The proposal is to add open suite / test / flow names to the exception message.
The problem
When
TeamCityTestSuiteBlock
orTeamCityFlowWriter
instances are disposed, a check is made if no child suites/tests/flows are open. If there are open children, an exception is thrown. The exception message is not very descriptive, e.g.:which is not very useful to diagnose the problem.
The proposal
The proposal is to add open suite / test / flow names to the exception message.