You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current source-based distribution of the testing framework leads to large discrepancies between various testing strategies available for new analyzers. The following is a list of specific changes made to the source by the StyleCop Analyzers project which can be considered for incorporation here during the work to distribute the test infrastructure as a shared library (#20).
📝 This list only includes changes through 2 November 2017.
One of the remaining significant challenges is writing test inputs and outputs as strings, and then relating positions within those strings to the expected diagnostics positions. Johan has done substantial work to improve this experience.
The main limiting factor with the assertions library (last time I reviewed) is it doesn't support all of the testing features analyzer libraries may need. There is also a usability concern related to the use of Unicode arrows as delimiters. Specific limitations which should be considered and addressed if possible are:
Overlapping diagnostic spans
Diagnostics with different IDs reported within a single test
Assertions relating to specific messages and/or severities reported with diagnostics
The text was updated successfully, but these errors were encountered:
@jmarolf No problem. It will be really nice to get all of this in a shared library. On multiple occasions even I've had trouble starting a new analyzer project due to the differences between approaches. It will be really nice to unify everything so I can stop having to worry about synchronizing concepts everywhere.
The current source-based distribution of the testing framework leads to large discrepancies between various testing strategies available for new analyzers. The following is a list of specific changes made to the source by the StyleCop Analyzers project which can be considered for incorporation here during the work to distribute the test infrastructure as a shared library (#20).
📝 This list only includes changes through 2 November 2017.
Features added by StyleCop Analyzers
Features added by @JohanLarsson:
One of the remaining significant challenges is writing test inputs and outputs as strings, and then relating positions within those strings to the expected diagnostics positions. Johan has done substantial work to improve this experience.
The main limiting factor with the assertions library (last time I reviewed) is it doesn't support all of the testing features analyzer libraries may need. There is also a usability concern related to the use of Unicode arrows as delimiters. Specific limitations which should be considered and addressed if possible are:
The text was updated successfully, but these errors were encountered: