Skip to content

Add rspec and some basic tests#27

Merged
systemed merged 3 commits intosystemed:masterfrom
gravitystorm:rspec
Nov 28, 2025
Merged

Add rspec and some basic tests#27
systemed merged 3 commits intosystemed:masterfrom
gravitystorm:rspec

Conversation

@gravitystorm
Copy link
Collaborator

This PR adds rspec, along with two very basic tests (i.e. the shortest valid stylesheet, and the basic stylesheet used in the README). This PR also ensures that rspec is run using Github actions.

It also adds the rubocop-rspec plugin, which I find very useful when writing specs.

This isn't intended to be a comprehensive test suite, more just something to catch any subtle coding mistakes during PR reviews. I can see us adding more tests in future to cover certain edge cases or new features, or if we're refactoring something specific. Also, I can also see us rethinking the way we handle source and target stylesheets, perhaps taking inspiration from the carto test suite for full stylesheet input and output. But for now I think this PR is sufficient to get started.

@systemed systemed merged commit 77f85c0 into systemed:master Nov 28, 2025
2 checks passed
@systemed
Copy link
Owner

Thank you!

@gravitystorm gravitystorm deleted the rspec branch November 28, 2025 17:22
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.

2 participants