Closed ggrossetie closed 4 years ago
I think it's because I'm using:
This line was actually ported from the PlantUML extension (JavaScript) to the Kroki extension (JavaScript) to the Ruby extension :sweat_smile:
Should we write Ruby tests to test the extension in this repository?
Thanks for reporting and fixing this!
In the best of worlds I would like to see
Adding the Kroki extension to asciidoctor-extensions-lab would be a start, but I'm afraid that this doesn't have continuous integration tests set up.
... to answer your original question:
Keeping only JUnit tests around would reduce the complexity of the project in terms or technologies/concepts used IMHO. I'd accept the downside that tests run more slowly and take more lines to write.
Therefore I'd rather have JUnit tests in this project; either as integration tests that the extension is loaded properly, or as a tests to cover its functionality while there are no ruby tests around in a separate project.
I am happy to discuss this opinion.
This is fixed in release 0.30.18. The new release of the plugin is available from GitHub releases and the IntelliJ AsciiDoc EAP repository. It will be available from the regular repository later today.
Adding the Kroki extension to asciidoctor-extensions-lab would be a start, but I'm afraid that this doesn't have continuous integration tests set up.
I think it should have its own repository with a tests suite.
the Kroki Ruby extension for Asciidoctor to have its own project to become visible outside the IntelliJ plugin and get the adaption it deserves. This project would be 100% Ruby based, including ruby based tests (something for the future)
👍
a JUnit based integration test for Kroki within this project (that we already have today)
We should add a test when Kroki is enabled and the diagram block has subs
: https://github.com/asciidoctor/asciidoctor-intellij-plugin/blob/cc7f6378b25cc0b57c085eb9c0983719f9bf9814/src/test/java/org/asciidoc/intellij/AsciiDocTest.java#L128
Sample document
Stack trace
AsciiDoc Plugin Version:
0.30.16
IDE Name and Version: