User Tools

Site Tools


dev:contributing:qa

This is an old revision of the document!


QA Requirements for Evergreen Code Contributions

Types of Tests

Perl Unit Tests

Perl unit tests exercise Perl functions which can be executed without a running Evergreen system. They are built using Perl's http://perldoc.perl.org/Test/More.html

Files are kept in the Evergreen repository under Open-ILS/src/perlmods/t/.

For a simple example, see Open-ILS/src/perlmods/t/01-OpenILS-Application.t. Of note is the following section of code which tests a Perl function in the AppUtils.pm module:

is(                                                                            
    OpenILS::Application::AppUtils::entityize(0, 'èöçÇÈÀ'),                    
    'èöçÇÈÀ',                                    
    'entityize: diacritics'                                                    
); 
dev/contributing/qa.1422032333.txt.gz · Last modified: 2022/02/10 13:34 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.