Closed davidlonghowick closed 3 years ago
Excellent catch! Do you know if it's possible to change the errorlist ordering by the DTE?
I've tested this and can confirm that the same behaviour occurs with VS2013. VS2013 simply just remembers the last sorting-setting that you have for the errorlist, and applies that to the list that gets returned.
@davidlonghowick If you can find a nice solution to this it would be appreciated.
I haven't managed to find any way to sort the data coming directly from the DTE, so I guess we need to apply the same sorting that visual studio does when clicking the "Description"-field.
This should be done on either the:
ErrorItems errorItems
or the
List<ErrorList.Error> errors
@davidlonghowick - I've done a fix, can you do a clone of the repo, compile the TcUnit-Runner and see whether it fixes the issue?
@davidlonghowick - I've done a fix, can you do a clone of the repo, compile the TcUnit-Runner and see whether it fixes the issue?
Tested and it appears resolved. Appreciate the quick response, currently using this on an Azure VM for a CI pipeline and really needed the unit testing running!
@davidlonghowick Great that it seems to fix the issue! I'll do some more testing and then do a formal release during the weekend. Thanks for reporting this issue!
Solved in 533a21a. Created new release (0.9.1).
TwinCAT projects created in Visual Studio versions newer than 2013 don't have default ErrorList order setting, which means that the ErrorList entries are not ordered in the expected format for TcUnit-runner to parse (TcUnitResultCollector ln 122-375).