-
Notifications
You must be signed in to change notification settings - Fork 10
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
Alternatives for colon replacement, which presently alters all testnames and history #72
Comments
@abelbraaksma Thank you for your ideas. Solution 2 looks nice from my point of view. I will add variables and their descriptions to readme file. |
I just notice that that character doesn't render on Chrome on Android. Though I doubt many people run TC from Android. (2) is easy to do, I guess, though for the long term I'd opt for solution (1). Not sure if it's hard or easy to implement though. Thanks for looking into this :). |
We are using TeamCity in the following scenario: I am aware of the |
@Vorval0, this replacement is already active in the current TC listener. If you don't have problems now, you won't get problems later. This proposal is about making the default more predictable,it currently is the string |
Btw, the bug is with TC, which uses the colon as separator. Only when you have colons in the test name, TC screws up and reports it wrongly (see linked big report). Without the listener fixing this, you would get wrong data from the TC api anyway. It has nothing to do with NUnit, a name is a name, this doesn't affect that. If your current setup works, you probably don't have colons in your test names. If you don't have colons, the TC listener won't change anything. |
I'm aware of the resolved issue #68, but I'm not sure this should have gone live without a fair warning ahead, as in TeamCity, where this is typically used, this can have quite a visible impact and it effects the counting of tests (it shouldn't, but afaik TC + NUnit is not capable of distinguishing equal-named tests).
We have now three possible versions:
'?'
, leading also to duplicates, very good that this is resolved nowtest replaceWith(':')
andtest replaceWith(' ')
to become equal names<colon>
(v1.0.7)<colon>
, sometimes it is<colon
. Not sure why, even in the same test name (if there is more than one colon)I realize that there is no easy way out of this unless TeamCity fixes this, but since this was already reported to TC in 2012, and nothing has changed, I doubt it has much priority.
To keep the exact name, however, that link provides a workaround that goes a long way in preventing duplicates:
[
and]
(or any other bracket)When a test has the name "xml:base", in namespace
Tests.Base
and the assembly has the nameTests.NUnit.Xml
, this is reported asand if this changes into:
then TC has no problem with it anymore.
ː
, which isU+02D0
(MODIFIED LETTER TRIANGULAR COLON) as default character, this is available in most fonts and looks just like a normal colon, but does not have the rendering issues. The chance of conflicts after replacing are very slim, which makes it a good candidate (other colon-like candidates like U+FE55, use fixed-width, which renders rather ugly)Last nitbit: perhaps these and other environment variables could get a public place where their meaning is explained? Searching for
TEAMCITY_COLON_REPLACEMENT
yields literally nothing on any search engine.The text was updated successfully, but these errors were encountered: