inkjet icon indicating copy to clipboard operation
inkjet copied to clipboard

Create snippet integration tests for all languages

Open Colonial-Dev opened this issue 2 years ago • 2 comments

What it says on the tin. For all supported languages, highlight a snippet to HTML and manually verify that highlighting is working as expected.

Colonial-Dev avatar Nov 08 '23 02:11 Colonial-Dev

Hey @Colonial-Dev do you have some idea how to implement this? Can I help somehow?

leandrocp avatar Apr 29 '24 16:04 leandrocp

I had a local branch with some basic work done. The general idea was to collect examples for each supported language, then write an integration test (or something) that fed each example through an HTML highlighter and into one mega-file so the output could be easily verified by eye.

It kinda fell by the wayside due to academic commitments :sweat_smile: Thanks for reminding me!

If you'd still like to help - I can do the grunt work of gathering all the samples. If you could implement the highlight_all_snippets function in tests/snippets.rs, that would be a huge help! It should be on the sample_testing branch that I just published.

(I think the debug formatting of the enum should be sufficient for the file name.)

Colonial-Dev avatar Apr 29 '24 16:04 Colonial-Dev

Resolved by 1d512bb

Colonial-Dev avatar Sep 13 '24 01:09 Colonial-Dev