What git branch should I commit unit tests to? -
i'm following ever-popular git workflow described here.
one thing doesn't discuss how handle unit testing. let's write code , commit develop. want write test it, don't want in develop history, i'd keep tests separate when @ git log see changes main code. however, if commit test separate test branch, i'll have merge develop/test , forth constantly, resulting in ridiculous amount of merge commit clutter.
how manage unit testing in git repository?
unit tests part of source tree: evolve code evolves, , feature branches have own unit tests evolve features evolve. there's no reason keep them in separate branch.
note git log accepts path parameter, if want avoid seeing test-only log entries, can filtering @ point. typically keep src , testsrc source folders separate , adjacent, can see changes 1 or other specifying git log src or git log testsrc.
Comments
Post a Comment