apertium / apertium-regtest

Regression testing system for Apertium language data and translators
https://wiki.apertium.org/wiki/Apertium-regtest
GNU General Public License v3.0
1 stars 0 forks source link

single test focus / IDE-mode #20

Open unhammer opened 1 year ago

unhammer commented 1 year ago

I use a script to recompile and re-run on save, looks like

Peek 12-12-2022 14-28.webm

but for Most People I think it'd be really nice to have something like that in regtest – regtest already kind of does this, you can change files and click re-run corpus and see the new output. But when working on transfer (in particular) I often like to zoom in on one sentence and see the full analysis tree as well as the generated output and final translation all in one go, every time I click save.

Regtest could have a 🔍 button on each input sentence, and on click you are shown a page for just that sentence, looking a bit like apertium-viewer, but preferably with a fairly big <div> for the -tree output :)

There could be a button to re-run tests for that sentence, but even more magical would be a "recompile-and-rerun-on-change" button (like dev/r does). If this is easiest to do with entr rather than an external python lib for inotify, IMO it'd be fine if that one feature depended on having entr installed.

TinoDidriksen commented 1 year ago

So a combination of https://github.com/GrammarSoft/cg3ide and apertium-viewer. I may do that - beats having to add the same functionality into CG-3 IDE.

TinoDidriksen commented 1 year ago

GitHub and Gitlab's web IDEs are both based on VS Code. The other big web IDE - https://theia-ide.org/ - supports VS Code extensions. Looks like it would be smartest to extend VS Code to do all we want.

Le sigh, https://code.visualstudio.com/api/extension-capabilities/overview#restrictions - VS Code extensions cannot do what I want.

TinoDidriksen commented 1 year ago

https://theia-ide.org/docs/extensions/ may be the solution.