M
M
Master_Dante2015-07-26 00:45:02
git
Master_Dante, 2015-07-26 00:45:02

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

1 answer(s)
S
Sergey, 2015-07-26
@Master_Dante

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 question

Ask a Question

731 491 924 answers to any question