Hacker GitHub

← All repos

hitchdev/hitchstory

View on GitHub ↗ ★ 104 Python

Type-safe YAML integration tests. Tests that write your docs. Tests that rewrite themselves.

24 mentions on Hacker News by 6 people: 1 story, 23 comments · first 2018-12-13 · latest 2024-10-18

Mentions per year 24 mentions · busiest year 2023 (14)
20082026
  1. …Example: https://hitchdev.com/hitchstory/using/behavior/run-single-na... Source: https://github.com/hitchdev/hitchstory/blob/master/hitch/sto... See also the explanation of self-rewriting tests: https://hitchdev.com/hitchstory/why/rewrite/
    comment by Terretta · 2024-10-18 · in Unit tests as documentation
  2. …example I built to exhibit the framework actually does this. Here's an example: https://github.com/hitchdev/hitchstory/blob/master/examples/... It records a video while running the test and then at the end runs it through FFMPEG to make a
    comment by hitchstory · 2024-07-09 · in Docs as code (2017)
  3. …framework around the ability to build these tests and then generate documentation from them. E.g. https://github.com/hitchdev/hitchstory/blob/master/examples%... which generates https://github.com/hitchdev/hitchstory/blob/master/examples%..…
    comment by hitchstory · 2024-06-26 · in Documentation Driven Development (2022)
  4. I built something like this too: https://github.com/hitchdev/hitchstory/blob/master/examples%...
  5. …"docs are tests and tests are docs" approach with integration testing when I created this library: https://github.com/hitchdev/hitchstory I realized at some point that a test and a how-to guide can and probably should actually be the same…
    comment by hitchstory · 2024-02-13 · in Non-code contributions to open source
  6. I have created a project for easily writing this type of test with YAML: https://github.com/hitchdev/hitchstory I dont think that this type of task is really appropriate for an LLM though. It is better to use hard, prewritten abstractions…
  7. …product, you won't know for certain. Test it and test it again. If you want to automate this, see: https://github.com/hitchdev/hitchstory It is not a common approach, but generating how-to docs from tests can be almost unreasonably…
    comment by hitchstory · 2023-12-28 · in Docs Deserve More Respect
  8. …I built this testing framework based upon autogenerating good how-to or reference docs from tests: https://github.com/hitchdev/hitchstory (the website example has screenshots generated by playwright, the REST API example has real tested…
    comment by hitchstory · 2023-12-14 · in Should you add screenshots to documentation?
  9. …to their projects run into a brick wall though - usually for one of the above reasons. I built https://github.com/hitchdev/hitchstory as an alternative that has straightforward syntax (YAML), very strict type safety (StrictYAML), low…
  10. …YAML integration tests. They autogenerate how-to markdown documents via a jinja2 template: https://github.com/hitchdev/hitchstory (there are a few toy examples listed there) Depending on the app the docs might also embed artefacts…
  11. I built this because I had the same idea: https://github.com/hitchdev/hitchstory If your specification is self rewriting, can be tested and can be used to generate docs then maintenance costs plummet.
    comment by hitchstory · 2023-09-11 · in Beyond OpenAPI
  12. …I used this among other things to build some model integration tests which exhibit best practices: https://github.com/hitchdev/hitchstory/tree/master/examples/... I considered using tmpfs but since I wanted to cache the entire database…
  13. …people generate evergreen markdown documentation from annotated type-safe YAML integration tests: https://github.com/hitchdev/hitchstory
  14. Like this https://github.com/hitchdev/hitchstory ?
    comment by MoreQARespect · 2023-07-11 · in Docs as Code at Linode (2020)
  15. …app screenshots) to generate readable how-to/tutorial docs which are guaranteed to stay up to date. https://github.com/hitchdev/hitchstory This isn't a new idea, but I find that people are often skeptical because there's a history of…
    comment by hitchstory · 2023-06-12 · in The Surprising Power of Documentation
  16. …has all of the benefits, fixes those 4 problems and doesnt suffer from traditional "YAML" problems: https://github.com/hitchdev/hitchstory I call this "BDD with meat".
  17. Sounds like we had the same idea: https://github.com/hitchdev/hitchstory Like you I also dont want to go back. Declarative tests are the future.
  18. If you like pytest and BDD I'd encourage you to check out my pytest library: https://github.com/hitchdev/hitchstory With it you can write integration tests with typesafe YAML which double as user friendly documentation. It also has…
  19. …in docs autogenerated from tests. Especially with artrfacts embedded. They like tuff like this: https://github.com/hitchdev/hitchstory/blob/master/examples/... And can be persuaded to look at the (YAML) source. Gherkin isnt really a…
    comment by hitchstory · 2023-05-16 · in A guidance language for controlling LLMs
  20. Here's an example of it in action to run integration tests: https://github.com/hitchdev/hitchstory/tree/master/examples In e.g. the website example, the parent podman container does everything from running the integration tests to…
  21. I wrote a specification-test framework that does this: https://github.com/hitchdev/hitchstory Project with README that is partially generated from the code samples in the tests: https://github.com/crdoconnor/strictyaml with the README…
    comment by pydry · 2020-11-27 · in Readme Driven Development (2010)
  22. This is more or less the structure I followed with this testing framework: https://github.com/hitchdev/hitchstory The whole idea being that you don't want the story to be turing complete (there are no loops or conditionals with a story),…
    comment by pydry · 2020-08-31 · in Yml Coding
  23. This is kind of what I have been doing with this testing framework: https://github.com/hitchdev/hitchstory It's designed so that you can write tests that are the basis of the "how to" documentation - with a small script and some jinja2 you…