pythagora
pythagora-demo-lodash
pythagora | pythagora-demo-lodash | |
---|---|---|
37 | 8 | |
1,515 | 5 | |
2.4% | - | |
7.8 | 5.3 | |
3 days ago | 11 months ago | |
JavaScript | JavaScript | |
Apache License 2.0 | GNU General Public License v3.0 or later |
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.
pythagora-demo-lodash
-
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)
Re types of bugs, I'm assuming you're talking about Lodash bugs. I've made a fork and added the bugs in the readme - https://github.com/Pythagora-io/pythagora-demo-lodash
Not sure if I understand - how do you mean? Btw, you can see all generated tests in the lodash demo repo - https://github.com/Pythagora-io/pythagora-demo-lodash. Also, tests in Pythagora itself are all generated by itself.
'Not sure about your other tests, but at least one of the failures in your pick() tests is a result of an incorrect call signature. https://github.com/Pythagora-io/pythagora-demo-lodash/pull/1
-
How to kickstart automated test suite when there are 0 tests written and the codebase is already huge
If you’re curious to check these out yourself, we’ve forked the Lodash repository and added the tests generated by Pythagora. Feel free to explore them here.
-
CLI tool that writes unit tests with GPT-4 - with one command it gets a codebase from 0 to 90% code coverage (for Lodash repo, it created ~1500 tests with 90% coverage and found 13 bugs)
However, after testing on a couple of different repos, it seems that GPT is able to find edge cases which are quite hard to think of. This way, the generated tests actually found bugs right away. TBH, I was quite blown away by this. Here is a lodash demo repo that I forked and generated tests with Pythagora. It took 4 hours to finish but the results are quite amazing:
-
I created a CLI tool that writes unit tests with GPT-4 (with one command, it created ~1500 tests for Lodash and found 13 bugs)
However, it seems that tests that GPT creates cover edge cases that are quite impressive (check out the tests in the demo lodash repo I linked). I think that generating tests with GPT might have a bigger value than we think.
What are some alternatives?
mern-ecommerce - :balloon: Fullstack MERN Ecommerce Application
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.
change-case - Convert strings between camelCase, PascalCase, Capital Case, snake_case and more
js-proper-url-join - Like path.join but for a URL
api
nanoevents - Simple and tiny (107 bytes) event emitter library for JavaScript
mitt - 🥊 Tiny 200 byte functional event emitter / pubsub.
kn-backend - Knative backend using Deno as a runtime
awesome-tiny-js - 🤏 A collection of tiny JS libraries (under 2 kB) to put your bundle on a diet
lefthook - Fast and powerful Git hooks manager for any type of projects.
keploy - Test generation for Developers. Generate tests and stubs for your application that actually work!