Skip to content

chore(tools): migrate frontmatter tests to ShellSpec#2529

Merged
Automaat merged 1 commit intomasterfrom
chore/shellspec-frontmatter-tests
Nov 26, 2025
Merged

chore(tools): migrate frontmatter tests to ShellSpec#2529
Automaat merged 1 commit intomasterfrom
chore/shellspec-frontmatter-tests

Conversation

@Automaat
Copy link
Contributor

Motivation

Standardize test tooling - use ShellSpec for all tool tests.

Implementation information

Replace custom test runner test-validate-frontmatter.sh with ShellSpec tests in spec/validate_frontmatter_spec.sh, matching the pattern used for check-version-urls tests.

Supporting documentation

Related: #2526

Replace custom test runner with ShellSpec for consistency
with other tool tests (check-version-urls).

Signed-off-by: Marcin Skalski <skalskimarcin33@gmail.com>
@Automaat Automaat requested a review from a team as a code owner November 26, 2025 08:11
@Automaat Automaat requested review from Copilot, jijiechen and lobkovilya and removed request for a team November 26, 2025 08:11
@netlify
Copy link

netlify bot commented Nov 26, 2025

Deploy Preview for kuma ready!

Name Link
🔨 Latest commit a3c40d9
🔍 Latest deploy log https://app.netlify.com/projects/kuma/deploys/6926b633e8334f0008cfa01a
😎 Deploy Preview https://deploy-preview-2529--kuma.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 87 (🟢 up 16 from production)
Accessibility: 90 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the frontmatter validation tests from a custom bash test runner to the ShellSpec testing framework, aligning with the project's standardized testing approach for shell scripts.

Key changes:

  • Removes custom test runner test-validate-frontmatter.sh with inline fixture creation and validation logic
  • Adds ShellSpec test suite spec/validate_frontmatter_spec.sh with comprehensive coverage and git integration
  • Enhances test coverage with path exclusion tests for /generated/ and /raw/ directories

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tools/test-validate-frontmatter.sh Deleted custom test runner that validated frontmatter logic without git integration
tools/spec/validate_frontmatter_spec.sh New ShellSpec test suite that tests the actual script in a git context with comprehensive coverage

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Automaat Automaat merged commit 21c25b7 into master Nov 26, 2025
26 checks passed
@Automaat Automaat deleted the chore/shellspec-frontmatter-tests branch November 26, 2025 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants