-
Notifications
You must be signed in to change notification settings - Fork 16
Code Snippet Testing #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I guess we'll need snippet testing in the |
There's a thread about some automated testing that was occurring in the ECK docs too here: https://elastic.slack.com/archives/C05PP2LEC1X/p1741273388324539 |
Current state of play for elasticsearch snippets:
To restore the existing snippet testing framework to the elasticsearch repo, we'll need the @elastic/es-delivery team to update the parsing logic to parse As @szabosteve mentioned elsewhere this probably just requires some minimal updates to the MDX logic added for a previous docs migration test. |
I've started work on making the markdown docs work with snippet testing for Elasticsearch using the markdown from elastic/elasticsearch#124283. I'm not familiar with how this stuff works, so am learning as I go. I discovered an issue related to the fact that the docs content was also re-organized as part of the markdown conversion. See this This is the new location of that content. It's been merged with other content/snippets in a new file. This results in the following error message when trying to run the tests:
So, moving these snippets around is basically like taking test cases out of their test suites and putting them into other ones, it doesn't really work. Not sure what the solution is or just how big the impact is at the moment, just wanted to get a note here as it's close to the end of my day. |
Summary
Support the ability to test code snippets.
See https://github.com/elastic/elasticsearch/tree/main/docs#test-code-snippets for more information.
Related issue that describes functionality in Asciidoc system: elastic/docs#2867
Partially related to #7.
The text was updated successfully, but these errors were encountered: