Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error when running a test suite that is not saved to the database #155

Closed
1 of 3 tasks
joewiz opened this issue Mar 12, 2017 · 0 comments
Closed
1 of 3 tasks
Assignees

Comments

@joewiz
Copy link
Member

joewiz commented Mar 12, 2017

Copying and pasting a test, such as https://gist.github.com/olvidalo/1f0a7aa7edbd134a93d05eecc1fdaad6, into a new eXide window and running the XQuery > Run as text command yields the following error:

Server Error
/db/apps/eXide/modules/run-test.xqlexerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: test:suite($functions as function+) item()*. Expected cardinality: one or more, got 0. [at line 15, column 27, source: /db/apps/eXide/modules/run-test.xql]
In function: test:suite(function+) [15:16:jar:file:/Applications/eXist-db.app/Contents/Resources/eXist-db/exist.jar!/org/exist/xquery/lib/xqsuite/xqsuite.xql]

Further investigation showed that this feature requires that the query be saved in the database in order to work.

Proposal:

  • Provide a more helpful error message about needing to save the query to the database before it can be run
  • Add this to the release notes
  • Include in next release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant