61d7b4a58d
To run all available tests its enough to call $ phpunit from the root workspace directory; the default phpunit configuration resides in phpunit.xml. A bootstrap script sets some default paths and can be extended later on with other useful stuff. Each test class' path should mimic the name and path of the source class, only that the test class gets an additional "Test" appended so PHPUnit can find it automatically. The data directory can be used in a flat manner; for tests that need test data a separate directory containing these files should be added, and the directory should be named after the test class itself. The first test which uses the new infrastructure is a test for the rewritten diff parser (closes issue 627).
14 lines
374 B
Diff
14 lines
374 B
Diff
#
|
|
# old_revision [1f31865f7c91525e96aa7615e660303ca04c708f]
|
|
#
|
|
# patch "a"
|
|
# from [9decd90bc2eedb78c74d5059a6bb6244dd2d0562]
|
|
# to [03cfd743661f07975fa2f1220c5194cbaff48451]
|
|
#
|
|
============================================================
|
|
--- a 9decd90bc2eedb78c74d5059a6bb6244dd2d0562
|
|
+++ a 03cfd743661f07975fa2f1220c5194cbaff48451
|
|
@@ -1,2 +1 @@ abc
|
|
abc
|
|
-abc
|