Drupal modules for browsing and managing Fedora-based digital repositories.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
vagrant 50481d8b3d aaaand tests 11 years ago
..
fixtures travis got angry 11 years ago
scripts accidental reversion 11 years ago
README.md aaaand tests 11 years ago
authtokens.test Carry through changes. 12 years ago
datastream_cache.test Fix some comments for Jordan. 11 years ago
datastream_validators.inc aaaand tests 11 years ago
datastream_versions.test Added datastream versions forms. 12 years ago
default.test_config.ini Created hooks and implemented them as part of the tuque wrapper classes. 12 years ago
derivatives.test Update some derivative tests and add a filter function to smarterly filter. 11 years ago
hooked_access.test Carry through changes. 12 years ago
hooks.test Add test for altering new datastreams in new objects... 12 years ago
ingest.test No longer auto login the admin user breaks other tests that expect the anon user to be logged in. 12 years ago
islandora_derivatives_test.info Updated with tests. 12 years ago
islandora_derivatives_test.module Change the testing function name. 11 years ago
islandora_hooked_access_test.info Add some basic tests for the hooked access callback. 12 years ago
islandora_hooked_access_test.module Merge pull request #382 from adam-vessey/7.x-constants 12 years ago
islandora_hooks_test.info Revived islandora_hooks_test module to get hook tests working 12 years ago
islandora_hooks_test.module Changed Parameter Type Hinting to only use the top level Abstract class 12 years ago
islandora_ingest_test.info Integration tests for ingest steps plus some fixes. 12 years ago
islandora_ingest_test.module Code style cleanup. 12 years ago
islandora_manage_permissions.test Carry through changes. 12 years ago
islandora_web_test_case.inc needs less if/then 11 years ago
travis.test_config.ini Added a config for travis-ci 12 years ago

README.md

OVERVIEW


You can define your own configurations specific to your environment by copying default.test_config.ini to test_config.ini, making your changes in the copied file. These test need write access to the system's $FEDORA_HOME/server/config directory as well as the filter-drupal.xml file.

DATASTREAM VALIDATION TESTS


The datastream validator included in the Islandora testing suite is able to generate tests procedurally based on the files in the folder 'fixtures/datastream_validator_files'. By default, this folder is empty. The unit tests for the validator pull the name of the file (before the extension) and use that to instantiate the correct ______DatastreamValidator class to test that file against (e.g. Image.jpg spins up an instance of the ImageDatastreamValidator class and checks the results).

You can test against multiple different encodings of the same filetype by giving each file a different set of extensions, e.g. MP3.vbr.mp3 and MP3.sbr.mp3 both test against the MP3 datastream validator, even though both are encoded differently.

For classes that require the third parameter (e.g. the TextDatastreamValidator), place an additional name.extension.ini file in the datastream_validator_files folder (e.g. the existing Text.txt in that folder is paired with Text.txt.ini). This .ini file should be structured like a PHP .ini file (e.g. according to the format used by http://http://ca1.php.net/parse_ini_file).The generated test will parse the .ini file as an array and pass it on to the third parameter.