Answer the question
In order to leave comments, you need to log in
Can branches be used for unit tests?
I've been using GIT for a while now. And I wanted to ask about the advisability of using a separate branch for unit tests in the repository with the main code. Or is a separate repository usually created for testing? I ask because there is a gh-pages branch on GitHub, for pages...
Answer the question
In order to leave comments, you need to log in
they can, but the tests must lie with the code. Moreover, for each branch, they may differ depending on the differences in the functionality of each branch.
And the gh-pages branch is needed only in order not to produce a separate repository for this case. You can deploy only one version.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question