-
Notifications
You must be signed in to change notification settings - Fork 33
Improve parsing of test files to locate functions #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve parsing of test files to locate functions #52
Conversation
Minor: made bash script shorter and more readable
To avoid issues like uartois#49 with # at the end of a line, made comments in a single line.
Update README to show how to leverage gocov test ./...
Fix some small README typos. Thanks @kernle32dll
I didn't actually mean to submit this - force of habit creating pull requests after pushing kicked in. This was written for our own internal use but feel free to use if it is helpful. It works around a number of issues we were having with parsing of test files. |
@reubent Thanks you for your contribution ! |
Thanks @reubent for your contrib. It will probably fix some issues for other users of the plugin too (e.g. #49). Would it be possible to make your PR against the maintenance branch instead of master? The maintenance branch contains the 1.2.X releases code while the master branch contains code for the next major release. It would be nice too if you could prevent pom.xml to be changed in the PR :). |
Hi @reubent @danielleberre |
Thanks @Tvli for pointing that out.
|
I resolved the conflicts in reubent-fix_test_parsing branch. Please check that everything is fine (we may want to create a new PR from that branch). @Tvli your test case has been added in the file test_test.go, and the test case now breaks. So we can improve the PR with your specific testcase. @thibaultfalque the build is successful while there are failing test cases, as such the CI is not very useful right now for PR ... |
Hey @danielleberre The test case looks good to me. Thanks 👍 |
Hi @danielleberre
To be more exact:
so the "suite" can be any alias people want to use to represent the struct within the function's scope. I guess you probably want to find the Test function name after the first |
@Tvli Thanks for the explanation. I added a new test case and fixed now properly the REGEXP. |
No description provided.