Hacker News new | ask | show | jobs
by solidasparagus 558 days ago
How is that different than tests? Or is it just that the tests aren't used as context when creating the app?
1 comments

It's a test in the sense that it's meant to validate functionality. You're correct there.

The endpoints we poke at are provided as context when creating the application.

Our approach evolved to be more liberal in what was required to pass. So instead of looking for an HTML element with id="foo" we accept a 200 HTTP response code. It's subtle but had a huge improvement in the end user experience.

Citing the article and helix tests:

      tests:
        - name: addition_test
          steps:
            - prompt: "What is 2 + 2?"
              expected_output: "4"
We would change expected_output to be "integer" or "not an error".