Skip to content

bugfix: detect _test files as test refs - #5

Merged
Atmosfearful merged 1 commit into
acai-sh:mainfrom
toreluntang:toreluntang/bugfix/recognize-go-test
May 5, 2026
Merged

bugfix: detect _test files as test refs#5
Atmosfearful merged 1 commit into
acai-sh:mainfrom
toreluntang:toreluntang/bugfix/recognize-go-test

Conversation

@toreluntang

Copy link
Copy Markdown
Contributor

Recognize underscore-delimited test filenames in isTestPath so Go-style *_test.go files are counted as test refs.

Fix:
/(^|.)(test|spec).[^.]+$/i
to
/(^|[._])(test|spec).[^.]+$/i

@toreluntang

Copy link
Copy Markdown
Contributor Author

Hi @Atmosfearful

I read your blog post yesterday and it really resonated with my current experience on spec driven development and agentic workflows.
I made a test project and noticed that Test coverage wasn't being populated even if test were added.
image

I think this PR should fix it

@Atmosfearful

Copy link
Copy Markdown
Contributor

Thanks for the PR!

@Atmosfearful
Atmosfearful merged commit 3a5c05c into acai-sh:main May 5, 2026
2 checks passed
@Atmosfearful

Copy link
Copy Markdown
Contributor

Will cut a release when I get back to stable internet, currently on the road. May need to clarify the spec as well regarding which patterns should be supported :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants