Artifacts Associated With Ticket 2130388
Ticket change [50278892d1] (rid 125922) by nijtmans on 2008-09-26 15:38:04:
- assignee initialized to: "nijtmans"
- cmimetype initialized to: "text/plain"
- comment initialized to:
When tests fail, tcltest outputs something like: ---- Result was: abc ---- Result should have been (exact matching): def ==== foo-1.1 FAILED When the two strings being compared are very long, this becomes unreadable. junit has the feature that in this case, the first and last characters from both strings, as far as they are equal are stripped and replaced with "..." This way, you can see quickly which part of the string is different, and what the difference is. This feature I would like to see in tcltest as well. So, it could look like: ---- Result was: ...foobar ... ---- Result should have been (exact matching): ...fooBar ... ==== foo-1.1 FAILED Therefore I made the following implementation (see attached diff.txt file). If minimally the first 8 characters are equal, the equal part is replaced by "..." followed by the last 3 equal characters. The last part of the string is handled equivalently. A lot of variations are possible, but I would like some feedback/review before committing it. Regards, Jan Nijtmans - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nijtmans"
- subsystem initialized to: "34. tcltest Package"
- title initialized to: "smart truncation of long lines in tcltest output"
- type initialized to: "RFE"
Add attachment "diff.txt" [a840ab258d] (rid 98947) by nijtmans on 2008-09-26 22:38:04.
Ticket change [98a7b9883e] (rid 110647) by nijtmans on 2008-09-26 22:38:05:
- icomment:
File Added - 294995: diff.txt
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [b6a62812ae] (rid 125457) by dkf on 2008-09-27 00:44:41:
- assignee changed to: "dgp"
Ticket change [e695c08be8] (rid 104313) by nijtmans on 2008-09-28 04:07:48:
- icomment:
Don, thanks for taking this. However, realizing that this patch only works well for exact matching (not glob or regexp), it should be seen as first attempt for this feature. And a clear investigation what exact junit does would be good as well.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [f541318b07] (rid 137012) by jan.nijtmans on 2014-02-21 19:11:26:
- submitter changed to: "jan.nijtmans"