Nate Eagleson
dabf4d86d9
Do not crash when a repo has a detached HEAD
...
Instead, we select a default branch - master by default, but the default
branch can be configured using config.ini.
Note that if the default branch does not exist in a repo, that should
not cause any issues.
Also adds phpunit to composer.json's require-dev section.
2013-02-15 07:16:38 -05:00
Klaus Silveira
2625beb393
Fixed failing tests due to trailing backslash in URL
2013-01-17 14:41:25 -02:00
Nate Eagleson
1f8f321037
Fix tests (and this time I tested it).
...
Admittedly, I tested it by modifying composer.json to include phpunit
but then did not commit that change, so it's vaguely possible an older
phpunit would find a way to fail.
I think we should be good, though.
2012-12-20 22:22:47 -05:00
Nate Eagleson
9dfca14f31
Attempt to fix test for repo without master branch.
...
Without a working test environment, it's hard to be confident it will
succeed, but it's certainly a step closer to correct.
2012-12-13 23:21:30 -05:00
Nate Eagleson
0fa349476a
Use checked-out branch as default branch.
...
Previously assumed 'master' was the default branch, when master may not
exist at all.
2012-12-13 15:41:52 -05:00
Christian Schorn
11e662c707
Coding style - camelCase for variables
2012-10-31 19:32:00 +01:00
Christian Schorn
2b43be92b3
Add unit tests for nested repository
2012-10-31 19:09:29 +01:00
Christian Schorn
54e2621333
Added nested repository to fixtures.
2012-10-31 18:49:49 +01:00
Christian Schorn
655ee6b85a
Make unit tests use new configuration constructor
2012-10-31 18:21:52 +01:00
Denys Chmeliuk
a2ec4ae2cb
Added suport for branches with slashes '/' in name
2012-10-26 13:38:48 +03:00
Klaus Silveira
e17ffee12d
Updating GitList to use Gitter
2012-09-11 11:55:03 -03:00
Sebastiaan Stok
607e01ccec
Fixed failing tests on none-Windows OS
2012-08-31 11:52:51 +02:00
Sebastiaan Stok
19feb0d87e
Randomize temp-dir and ignore IOException in tests
...
If the file pointer is not closed or some other program (like TGitcache.exe) is reading the file
the tests don't fail anymore.
2012-08-31 11:36:30 +02:00
Sebastiaan Stok
1afeaea987
Fixed unresolvable TMP dir on Windows
2012-08-31 10:15:46 +02:00
Klaus Silveira
06ec0d2924
Increasing functional test code coverage
2012-08-07 03:36:30 -03:00
Klaus Silveira
58664fefca
Better coverage for the repository page test
2012-07-26 03:50:59 -03:00
Klaus Silveira
3d2c212da4
New functional test suite
2012-07-26 03:43:02 -03:00
Klaus Silveira
11b869f28e
First functional test for interface
2012-07-25 11:46:20 -03:00