FileComparison takes two files or two directories and compares them. The differences is presented as an HTML list, showing the structure (but only enough to show differences). This list includes links to the files concerned.
!|fitlibrary.CompareFilesFixture|
!3 Differing file contents
|check|''file''|testFiles/threeLines.txt|''same as''|testFiles/differingThreeLines.txt|!-threeLines.txt
- Files differ at byte position 9
- differingThreeLines.txt
-!|
!3 The two directories are equal
!|check|directory|testFiles/diry1|same as|testFiles/diry2|diry1|
!3 Differing directories due to different files
!|check|directory|testFiles/diry3|same as|testFiles/diry4|!-diry3-!|
!2 Absolute file names
''!-CompareFileFixture-!'' now handles absolute file names as well as relative file names. A file name is treated as absolute if it starts with "/" or has ":" as the second character. Examples of absolute file names:
* "/tmp/generatedFile"
* "C:\Documents and Settings\Me\My Documents\generatedDirectory".