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

Fix issue 359 and 367 (serialization bugs) #375

Merged
merged 350 commits into from
Mar 14, 2019

Conversation

AirQuick
Copy link
Member

@AirQuick AirQuick commented Sep 24, 2018

This pull request derives from #374. So needs to be handled after that.


Fixes #359. Fixes #367.

The root cause of those bugs is that

  • There is no contract between mode="test:serialize" templates and their callers regarding whitespace-only text nodes.
  • The template callers do not expect whitespace-only text nodes when calculating $node-to-compare-with.

This pull request fixes the bugs by

  • clarifying what mode="test:serialize" expects regarding whitespace-only text nodes
  • skipping whitespace-only text nodes when calculating $node-to-compare-with

You can confirm the fixed result in xspec-serialize-result.html.

…185_cumulative

# Conflicts:
#	test/xspec-bat.cmd
#	test/xspec.bats
…tion_cumulative

# Conflicts:
#	test/xspec-bat.cmd
…rsion_cumulative

# Conflicts:
#	test/xspec-bat.cmd
…185_cumulative

# Conflicts:
#	test/xspec-bat.cmd
#	test/xspec.bats
…rsion_cumulative

# Conflicts:
#	test/xspec-bat.cmd
#	test/xspec.bats
…sult-prefixes

# Conflicts:
#	src/compiler/generate-xspec-tests.xsl
#	test/end-to-end/cases/expected/stylesheet/xspec-rule-result.html
#	test/end-to-end/cases/expected/xspec-rule-junit-norm.xml
#	test/end-to-end/cases/expected/xspec-three-dots-junit-norm.xml
#	test/generate-tests-utils.xspec
#	test/generate-xspec-tests.xspec
#	test/win-bats/collection.xml
#	test/xspec.bats
…lize

# Conflicts:
#	src/compiler/generate-xspec-tests.xsl
#	test/end-to-end/cases/expected/stylesheet/xspec-rule-result.html
#	test/end-to-end/cases/expected/xspec-rule-junit-norm.xml
#	test/end-to-end/cases/expected/xspec-three-dots-junit-norm.xml
#	test/generate-tests-utils.xspec
#	test/generate-xspec-tests.xspec
#	test/win-bats/collection.xml
#	test/xspec.bats
…ormat-xslt

# Conflicts:
#	src/compiler/generate-xspec-tests.xsl
#	test/end-to-end/cases/expected/stylesheet/xspec-rule-result.html
#	test/end-to-end/cases/expected/xspec-rule-junit-norm.xml
#	test/end-to-end/cases/expected/xspec-three-dots-junit-norm.xml
#	test/generate-tests-utils.xspec
#	test/generate-xspec-tests.xspec
#	test/win-bats/collection.xml
#	test/xspec.bats
…erialize

# Conflicts:
#	src/compiler/generate-xspec-tests.xsl
#	test/end-to-end/cases/expected/stylesheet/xspec-rule-result.html
#	test/end-to-end/cases/expected/xspec-rule-junit-norm.xml
#	test/end-to-end/cases/expected/xspec-three-dots-junit-norm.xml
#	test/generate-tests-utils.xspec
#	test/generate-xspec-tests.xspec
#	test/win-bats/collection.xml
#	test/xspec.bats
…359-367

# Conflicts:
#	src/compiler/generate-xspec-tests.xsl
#	test/end-to-end/cases/expected/stylesheet/xspec-rule-result.html
#	test/end-to-end/cases/expected/xspec-rule-junit-norm.xml
#	test/end-to-end/cases/expected/xspec-three-dots-junit-norm.xml
#	test/generate-tests-utils.xspec
#	test/generate-xspec-tests.xspec
#	test/win-bats/collection.xml
#	test/xspec.bats
# Conflicts:
#	src/reporter/coverage-report.xsl
#	src/reporter/format-xspec-report.xsl
@AirQuick AirQuick added this to the v1.3.0 milestone Feb 17, 2019
…result-naming-collision_label

# Conflicts:
#	bin/xspec.sh
#	java/com/jenitennison/xslt/tests/XSLTCoverageTraceListener.class
#	java/com/jenitennison/xslt/tests/XSLTCoverageTraceListener.java
#	test/end-to-end/processor/junit/_normalizer.xsl
#	test/end-to-end/processor/xml/_normalizer.xsl
#	test/win-bats/collection.xml
#	test/xspec-space_stylesheet.xspec
#	test/xspec.bats
…359-367

# Conflicts:
#	src/reporter/format-utils.xsl
#	src/reporter/format-xspec-report.xsl
#	test/end-to-end/cases/expected/stylesheet/xspec-serialize-junit.xml
#	test/end-to-end/cases/expected/stylesheet/xspec-serialize-result.html
#	test/end-to-end/cases/expected/stylesheet/xspec-serialize-result.xml
#	test/end-to-end/cases/xspec-serialize.xspec
@AirQuick AirQuick merged commit f6e6bf2 into xspec:master Mar 14, 2019
@AirQuick AirQuick deleted the fix_issue-359-367 branch March 14, 2019 00:41
@AirQuick
Copy link
Member Author

@cirulls
Merged this bug fix of serialization (i.e. how results are rendered in HTML report).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant