This repository is for code samples that appear in the XSpectacles blog.
Each post corresponds to a subfolder under src/
.
- 6 Tips for Embedding JSON in XSpec Tests
- Adaptable Code Reuse in XSpec, Part 1: Value Templates
- Adaptable Code Reuse in XSpec, Part 2: XPath Matching
- But the Diffs Look the Same
- Code Reuse at the File Level in XSpec
- Code Reuse in XSpec: How to Use x:like
- Comparing Attributes Selectively in XSpec 3.0
- Content Outside the Selection in XSpec
- Fixing Surprise Spaces in XSpec Actual Result
- Inheritance as a Form of Reuse in XSpec
- Multiple Cases in One XSpec Scenario
- One-or-More Ways to Foil Empty-Sequence Surprises in XSpec
- Saying "Almost Valid" or "Beyond Valid" in XSpec Tests for Schematron
- Saying "Not Yet" in XSpec
- Saying "Whatever" in XSpec: How, Why, When
- Testing a Thin-Wrapper XSLT Template Without Excessive Repetition
- Testing an XPath Function Library with XSpec 3.0
- Testing Boolean-Valued Functions: An XSpec Blooper with Easy Fixes
- Testing Explicit Whitespace in XSpec
- Testing Preformatted or Codelike Text in XSpec
- Testing Schematron Messages with XSpec 3.0
- Testing Schematron Patterns in Isolation
- (NEW!) Text Nodes and Locations in XSpec Tests for Schematron
- The Equality Check that's Neither True Nor False
- Ways to Access XSLT Result in XSpec Testing: Dot Versus Result Variable