forked from qt-creator/qt-creator
Git: Add auto tests for CloneWizardPage
Change-Id: I6b186731eba56a70ce799f17fdf538bb674a5439 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
André Hartmann
parent
1f1eb5e4ba
commit
c30856e657
@@ -154,3 +154,16 @@ QStringList CloneWizardPage::branches(const QString &repository, int *current)
|
||||
}
|
||||
|
||||
} // namespace Git
|
||||
|
||||
#ifdef WITH_TESTS
|
||||
#include <QTest>
|
||||
|
||||
void Git::CloneWizardPage::testDirectoryFromRepository()
|
||||
{
|
||||
QFETCH(QString, repository);
|
||||
QFETCH(QString, localDirectory);
|
||||
|
||||
QEXPECT_FAIL("ssh with port", "QTCREATORBUG-12651", Abort);
|
||||
QCOMPARE(directoryFromRepository(repository), localDirectory);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user