frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Generate tests from GitHub pull requests

4•Aamir21•2h ago
I’ve been experimenting with something interesting.

AI coding tools generate code very quickly, but they almost never generate full end to end test coverage. they create a ton of tests mostly unit and intergations but real user scenarios are missing. In many repos we looked at, the ratio of new code vs small number of high quality e2e tests dropped dramatically once teams started using Copilot-style tools or is left for testers as a separate job.

So I tried a different approach.

the system reads a pull request and:

• analyzes changed files • identifies uncovered logic paths - using dependency graph (one repo or multi-repo) • Understand the context via user story or requirements (given as a comment in PR) • generates test scenarios • produces e2e automated tests tied to the PR

in addition if a user can connect with their CMS, or TMS then it can be pulled into as well. (internally i use graphRAG but that is for another post)

Example workflow:

1. Push a PR 2. System reads diff + linked Jira ticket 3. Generates missing tests and coverage report

In early experiments the system consistently found edge cases that developers missed.

Example output:

Code Reference| Requirement ID | Requirement / Acceptance Criteria |Test Type Test ID | Test Description |Status

src/api/auth.js:45-78 | GITHUB-234 / JIRA-API-102 | API should return 400 for invalid token| Integration| IT-01 | Validate response for invalid token Pass

Curious how others are thinking about this kind of traceability. I am a developer too so i am sensitive to only show this to developer and only developer can make it visible to other folks otherwise he can just take the corrective action.

Generate tests from GitHub pull requests

4•Aamir21•2h ago•0 comments

AI, Human Cognition and Knowledge Collapse – Daren Acemoglu

3•aanet•3h ago•2 comments

Ask HN: What's your biggest pain point when joining a new developer team?

4•KevStatic•5h ago•7 comments

Ask HN: Got cancer, a new job,new boss in less than a year What do I do now?

18•Goleniewski•14h ago•16 comments

I traced $2B in nonprofit grants for Meta and Age Verification lobbying

70•theseusares•18h ago•17 comments

Ask HN: Is there prior art for this rich text data model?

3•chrisecker•6h ago•2 comments

I'm a project manager, to the engineers: how replaceable do you think my job is?

9•ferociousmadman•13h ago•17 comments

Ask HN: What Are You Working On? (March 2026)

289•david927•5d ago•1122 comments

Ask HN: Why have co-ops never played a major role in tech?

7•AbstractH24•12h ago•7 comments

Tell HN: Apple development certificate server seems down?

109•strongpigeon•3d ago•39 comments

Instagram Ending Encrypted DMs

4•01-_-•6h ago•1 comments

X is selling existing users' handles

196•hac•2d ago•91 comments

Enabling Media Router by default undermines Brave's privacy claims

4•noguff•21h ago•2 comments

Ask HN: How to be alone?

687•sillysaurusx•5d ago•560 comments

Looking for Partner to Build Agent Memory (Zig/Erlang)

6•kendallgclark•1d ago•5 comments

Ask HN: Is Claude down again?

86•coderbants•2d ago•72 comments

Ask HN: Remember Fidonet?

121•ukkare•3d ago•69 comments

Ask HN: Please restrict new accounts from posting

716•Oras•5d ago•508 comments

Ask HN: Does anyone here use Discord as their work chat tool?

2•Poomba•20h ago•7 comments

Ask HN: Most beautiful personal blog UI you have ever seen?

150•ms7892•5d ago•55 comments

Tell HN: I'm 60 years old. Claude Code has re-ignited a passion

1076•shannoncc•1w ago•984 comments

Claude 4.6 Opus can recite Linux's list.h

23•itzmetanjim•1d ago•4 comments

Ask HN: How do you cope with the broken rythm of agentic coding?

14•pauletienney•1d ago•7 comments

AI is supercharging fake work

12•rxm233•1d ago•3 comments

Ask HN: Can I repurpose a Bluetooth voice remote as input device for a PC?

15•albert_e•5d ago•20 comments

Ask HN: Why is my submission not visible if I am not logged in?

3•beepbooptheory•1d ago•6 comments

Ask HN: Which DNS based ad blocker do you suggest?

3•SoftwareEn2•1d ago•13 comments

The Strait of Hormuz: A systems engineering view on the $20k drone threat

3•BeyondTheMap•1d ago•3 comments

LazyFire – a lazygit-style terminal UI for Firebase Firestore

4•egosurffing•1d ago•1 comments

What is the strongest open source model for coding against Opus 4.6?

3•eeko_systems•1d ago•2 comments