News for hackers. Stuff that matters.

Show HN: Step CI – open-source lightweight alternative to Checkly

https://github.com/stepci/stepci

In our last post, we showed that there is an easy way to generate automated tests for Rest APIs from your specification.

Since the last release, we have added some new features:

  - Generate tests from your API spec in the CLI
  - Run tests against gRPC APIs automatically
  - Get request and response information when your tests fail
  - Generate fake data and use them in the requests
  - Bring your own test data (from .csv)
  - More intuitive CLI interface
We built this because we wanted a simple, developer-friendly way to automate API testing without relying on cloud solutions. You can integrate it with Docker, GitHub Actions and Node. Your tests can have multiple steps, with shared context between them. Lastly, you can use it as a library and in combination with other testing tools like Jest, Ava, Mocha (and soon Insomnia).

If you want to step out of locked-in cloud solutions, give our tool a try.

( 14 comments | 5 points | on HN )
Re:Show HN: Step CI – open-source lightweight alternative to... by spyremeown on Friday November 04, 2022 @11:29AM (#33468336)
This looks pretty nice! I had to do a bunch of mocking and magic to mock servers and clients for testing gRPC endpoints, and I think something like this would make it a lot simpler.
Re:Show HN: Step CI – open-source lightweight alternative to... by ushakov on Friday November 04, 2022 @12:16PM (#33469144)
Thanks. Let us know how it goes! We'd be very glad if our tool would be helpful for your use-case
Re:Show HN: Step CI – open-source lightweight alternative to... by SeriousM on Friday November 04, 2022 @11:33AM (#33468421)
Are there any plans to have a vscode extension for the intellisense?
Re:Show HN: Step CI – open-source lightweight alternative to... by ushakov on Friday November 04, 2022 @12:13PM (#33469099)
Great idea! We have it in the backlog
Re:Show HN: Step CI – open-source lightweight alternative to... by noka on Friday November 04, 2022 @01:31PM (#33470544)
This looks really interesting! As a senior software engineer it looks much cleaner and simple than what I worked with, PMed you on LinkedIn with some questions :)
Re:Show HN: Step CI – open-source lightweight alternative to... by tnolet on Friday November 04, 2022 @01:35PM (#33470646)
Just wanted to hop in here as founder of Checkly that I think this is awesome. Coded API checks, or checks living in your codebase make total sense. I'm also kinda humbled as I launched Checkly as an indie hacker couple years back and later went VC route. Being mentioned by name by an alternative is kinda really cool! Good luck StepCI team and let's make the web (and the APIs) more reliable!
Re:Show HN: Step CI – open-source lightweight alternative to... by ushakov on Friday November 04, 2022 @02:48PM (#33471810)
Nice to meet you Tim. Checkly is an awesome tool and thank you for your comment!

API monitoring is a very crowded space. Our approach is similar to Hashicorp with tools like Terraform, both philosophically (being open-source) and UX-wise (configuration as code).

Our users can benefit from being able to self-host it and customise it according to their own needs

Re:Show HN: Step CI – open-source lightweight alternative to... by tnolet on Friday November 04, 2022 @03:59PM (#33472898)
Hey! Yes, very crowded! But also ripe for change as me and you are doing. Very excited to see how people will use Step CI, Checkly and whoever else wants to join this mission.
Re:Show HN: Step CI – open-source lightweight alternative to... by etewiah on Friday November 04, 2022 @05:14PM (#33473853)
Kudos to you for your approach to competition!!
Re:Show HN: Step CI – open-source lightweight alternative to... by mattatkeyboard on Friday November 04, 2022 @02:02PM (#33471185)
I really like the captures features.

It lets you follow a semantic API path through multiple API calls.

https://github.com/stepci/stepci/blob/main/examples/captures...

Re:Show HN: Step CI – open-source lightweight alternative to... by mousetree on Friday November 04, 2022 @02:55PM (#33471894)
Congrats on the launch. I'm excited to try this out.

Some questions:

1. Is it possible to include headers at the workflow-level. I can't determine whether this is possible from reading the docs. Use case: include Authorization header for all tests/steps

2. Is it possible to run some command or query before a workflow/test/step. Use case: obtaining auth tokens

Re:Show HN: Step CI – open-source lightweight alternative to... by ushakov on Saturday November 05, 2022 @06:04AM (#33479852)
We're so glad, you are!

1. Currently not and auth is a tricky subject

2. Not at the moment, but we have a proposal to allow custom scripts: https://github.com/stepci/stepci/discussions/47

Also, can I ask you what authentication system you use?

Re:Show HN: Step CI – open-source lightweight alternative to... by boundlessdreamz on Saturday November 05, 2022 @02:03AM (#33478423)
This is awesome!

Also how did you embed the workflow editor/results in the homepage?

Re:Show HN: Step CI – open-source lightweight alternative to... by ushakov on Saturday November 05, 2022 @05:46AM (#33479730)
Thanks!

My colleague has mentioned in the post that the tool can be used as a library. The CLI and the Online Playground are just clients built on top of the library

Have a look at our docs: https://docs.stepci.com/guides/using-library.html