This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #627 from rhdunn/test-report-setup-teardown-errors
Fix #573 Report exceptions in the setup/teardown logic to the test framework.
- Loading branch information
Showing
1 changed file
with
60 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f11f595
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi - removing the suite-setup & suite-teardown from the test-ignore-list on line 60 causes the suite-setup/suite-teardown to be run as a unit test where the explicit list of tests is not provided (line 143). This is not apparent from the UI as the UI passes the comma separated list of tests but may be apparent when running from roxy (e.g. ml sit test) if the setup/teardown runs mid-way a suite.
let $test-ignore-list := ("setup.xqy", "teardown.xqy", "suite-setup.xqy", "suite-teardown.xqy")
Example:
GET https://itgsydapd654.macbank:8062/test/default.xqy?func=run&suite=[suite]&tests=a-test1.sjs,z-test2.sjs&runsuiteteardown=true&runteardown=true
Tests = suite-setup.xqy, a-test1.sjs, z-test2.sjs, suite-teardown.xqy
GET https://itgsydapd654.macbank:8062/test/default.xqy?func=run&suite=[suite]&runsuiteteardown=true&runteardown=true
Tests = suite-setup.xqy, a-test1.sjs, suite-setup.xqy, suite-teardown.xqy, z-test2.sjs, suite-teardown.xqy