inspectit-ocelot icon indicating copy to clipboard operation
inspectit-ocelot copied to clipboard

[Feature] - Automated testing for Syntax Highlighter

Open aaronweissler opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. Right now the syntax highlighting is only tested by looking at known configuration files or creating test files in the UI for specific cases, this is a bit cumbersome and prone to missing errors.

Describe the solution you'd like The InspectitOcelotHighlightRules are tested automatically and if any parts of a sample yml-File are tokenized incorrectly, you get notified.

Official tests in ace editor project could probably be used as guidance, https://github.com/ajaxorg/ace/tree/master/lib/ace/mode/_test.

We would need a sample file that covers all possible situations.

aaronweissler avatar Mar 22 '22 13:03 aaronweissler