User Tools

Site Tools


newdevs:code:unit-tests

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
newdevs:code:unit-tests [2020/02/12 15:01] – [Unit Tests] tmccannanewdevs:code:unit-tests [2023/01/19 14:19] tmccanna
Line 2: Line 2:
 ====== Unit Tests ====== ====== Unit Tests ======
  
-When new code is submitted to the Evergreen community for testing and approval, that code should either include step-by-step instructions on how to test bug fixes or automated unit tests to assist in validating new features or significant changes.+When new code is submitted to the Evergreen community for testing and approval, that code should either include step-by-step instructions on how to test bug fixes or automated unit tests to assist in validating new features or significant changes. A unit test is typically designed to test a single action (for example, testing that a new database row is created after a form is submitted)
  
 Guidance on writing step-by-step testing instructions, as well as guidance on creating automated unit tests for Angular, Angular JS, Perl, pgTAP, and C code changes are available here: Guidance on writing step-by-step testing instructions, as well as guidance on creating automated unit tests for Angular, Angular JS, Perl, pgTAP, and C code changes are available here:
  
 **[[:dev:contributing:qa|QA Requirements for Evergreen Code Contributions]]** **[[:dev:contributing:qa|QA Requirements for Evergreen Code Contributions]]**
 +
 +An example of a unit test created by Jane Sandberg during one of our new Developer meetings is available here:
 +
 +**[[https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/sandbergja/lp1857060_tests_for_979_isbns|Test for ISBNs with 979 Prefix]]**
 +
 +===== Things to add to this page: =====
 +
 +  * Work is being done to deprecate Protractor and replace it with Nightwatch: https://bugs.launchpad.net/evergreen/+bug/1989195
 +
  
  
  
  
newdevs/code/unit-tests.txt · Last modified: 2023/07/18 15:41 by scl

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.