WIP: Add testify support #130
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
NeonXP/nvim-dap-go!130
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "flatplate/add-testify-support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds support for running tests in testify suites.
Basically each test is a method on a suite struct, and the suite is run from a regular test function.
Issues
Basically it looks for a method_declaration where the struct matches
^.*TestSuiteand a test function that has something likesuite.Run(_, [new(@struct_name), &@struct_name{}])Then runs the test with
"test_name/method_name"I also have two variants, one has the test defined before the method, the other one has the method defined before the test. I couldn't get it to match the tests after otherwise.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.