pythagora
vcr
pythagora | vcr | |
---|---|---|
37 | 20 | |
1,515 | 5,751 | |
2.4% | 0.2% | |
7.8 | 6.4 | |
3 days ago | about 2 months ago | |
JavaScript | Ruby | |
Apache License 2.0 | Hippocratic License 2.1 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pythagora
-
AI Chat Applications with the Metacognition Approach: Tree of Thoughts (ToT)
Product which you can try - https://github.com/Pythagora-io/pythagora, check also video - Open-Source AI Agent Can Build FULL STACK Apps (FREE “Devin” Alternative) (youtube.com)
-
How to kickstart automated test suite when there are 0 tests written and the codebase is already huge
P.S. If you found this post helpful, it would mean a lot to me if you starred the Pythagora Github repo and if you try Pythagora out, please let us know how it went on [email protected].
- Show HN: CLI tool that writes unit tests for Node.js apps with GPT-4
-
I created a CLI tool that writes unit tests with GPT-4 (with one command, I created tests for Lodash repo with 90% code coverage and found 13 bugs)
Thanks, yes, it can, we actually started off with integration tests. Take a look at the integration tests README. They work by recording server activity (db queries, 3rd party API requests, etc.) during the processing of an API request.
- Pythagora creates automated tests for you by analysing server activity
-
I created a dev tool that uses GPT-4 to generate integration tests in Jest by tracking server activity
Recently, I open sourced Pythagora - a dev tool that tracks the server activity and creates integration tests from it. However, many people said that they wanted to analyze better what is inside the tests and to use tests as code documentation. So, I used GPT-4 to export Pythagora tests (which are basically JSON files that contain all captured data) to Jest code which can be reviewed and used for documentation.
-
45 ways to break an API server (negative tests with examples)
I'm working on Pythagora, an open source tool that writes automated integration tests by itself (well, with a bit of help from GPT-4) without you, the dev, having to write a single line of code. Basically, you can get from 0 to 80% code code coverage within 30 minutes (video).
-
What project are you currently working on?
Hey! I'm working on Pythagora (https://github.com/Pythagora-io/pythagora) - it's an open source tool that creates automated integration tests by analyzing server activity without you having to write a single line of code.
-
How Pythagora Reduces Debugging Time and Supercharges Your Development Workflow
Pythagora is an NPM package designed to create automated tests for your Node.js applications by analyzing server activity. It records all requests to your app's endpoints, along with responses and server actions, such as Mongo and Redis queries. Pythagora during testing simulates the server conditions from the time when the request was captured, allowing for consistent and accurate testing across different environments.
-
Creating integration tests for a backend legacy codebase
Finally, if you read this far and would like to support us, please consider starring the Pythagora Github repository here – it would mean the world to us.
vcr
-
Creating integration tests for a backend legacy codebase
Basically, it's a record/replay tool, similar to VCR for Ruby, but on steroids and powered by AI (khm GPT khm).
-
I isolated the entire codebase from external data sources and made a generator of automated tests
I don't think it's right to say "pythagora generates integration tests". It's more of a "replay manual tests as fixtured unit tests," which makes it similar to (but more powerful than) VCR for Ruby HTTP. What I've always wanted for these kinds of "request recorders" is a way to re-validate the test fixtures over time.
-
Write SDK “base” in Rust, wrap in other languages?
For example, they might expect to be able to mock calls to your API with something like VCR or Responses.
-
How to unit test your database interactions with Docker
I also started from the same starting point but then discovered and started using VCR for creating http stubs - https://github.com/vcr/vcr. It allowed me to write against more realistic and complex test scenarios but didn't support databases.
-
When to mock and what to mock in a Web API?
If you had bit more complex workflows or less time - you could start using a VCR library to mock out API interactions and then continue with your dockerised DBs.
-
Ask HN: When an API is down, what do you usually do?
I generally will use vcr[0] or something similar to record requests and then I write tests and code against that.
3rd parties go down, it happens. In general a system that is dependent on a third party should have some non exceptional behavior when that happens.
So if I’m not setup with vcr, and 3rd party is down- I would on the behavior for what happens when it’s down.
[0] https://github.com/vcr/vcr
-
Are there any testing frameworks to intercept HTTP and Database calls?
With external APIs, you can also make use of a gem like VCR. I prefer mocks (plus unit tests around the actual deserialization of the response) to VCR in most cases, but the end result is about the same.
-
Configure VCR with RSpec
A way to avoid this is using the VCR gem.
-
Testing Dependencies: Fake It While You Make It
We'll use a tool called vcr to capture real HTTP requests and responses, storing and using them from then on. VCR's language and terminology leans heavily into its real-world analogue. If you don't know what a VCR is, it's a box we used to hook up to TVs to watch movies before DVD players. If you don't know what a DVD player is, it's a box we used to hook up to TVs to watch movies before streaming.
-
New grad job as Quality Engineer and seeing only negativity about it
[1] https://github.com/vcr/vcr
What are some alternatives?
mern-ecommerce - :balloon: Fullstack MERN Ecommerce Application
Parallel Tests - Ruby: 2 CPUs = 2x Testing Speed for RSpec, Test::Unit and Cucumber
fastkafka - FastKafka is a powerful and easy-to-use Python library for building asynchronous web services that interact with Kafka topics. Built on top of Pydantic, AIOKafka and AsyncAPI, FastKafka simplifies the process of writing producers and consumers for Kafka topics.
Knapsack - Knapsack splits tests evenly across parallel CI nodes to run fast CI build and save you time.
change-case - Convert strings between camelCase, PascalCase, Capital Case, snake_case and more
Spring - Rails application preloader
js-proper-url-join - Like path.join but for a URL
timecop - A gem providing "time travel", "time freezing", and "time acceleration" capabilities, making it simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call.
api
Ruby-JMeter - A Ruby based DSL for building JMeter test plans
pythagora-demo-lodash - A modern JavaScript utility library delivering modularity, performance, & extras.
httparty - :tada: Makes http fun again!