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

[test] refactor serialization suite #4777

Merged
merged 4 commits into from
Jul 17, 2023

Commits on Apr 25, 2023

  1. [test] refactor serialization tests

    - combine item-separator with method tests into one
      `ser:item-separator-with-method`
    - simplify test cases that used eq in combination with assertXPath
    - make direct calls to function under test (serialize) in each test
    - extract fixtures to module variables
    - remove namespace from children of output:serialization-parameters
    - convert QNames keys to strings for exist-db specific options
    - convert string constructors to CDATA sections
    - make HTML5 test data real world examples
    - use unprefixed form of built-ins
    - fix formatting
    line-o committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    9ba648a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ab9afef View commit details
    Browse the repository at this point in the history
  3. [test] add tests with QName options

    eXist-db specific extensions to serialization options can also be set using the
    QName instead of plain strings.
    Add one test per option using the non-default value.
    line-o committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    72f4c94 View commit details
    Browse the repository at this point in the history
  4. [test] refactor serialize.xql

    The value for each serialization option is now paremeterized.
    line-o committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    6735560 View commit details
    Browse the repository at this point in the history