Seth Vargo 8/29/2016

RSpec Example Filtering for Multiple Version Testing

Read Original

The article details a solution for testing a Ruby client library (HashiCorp Vault) against multiple API versions. It explains how to use RSpec example metadata (e.g., `vault: ">= 0.5.3"`) to filter and run tests conditionally based on the upstream service version, avoiding cluttered conditional logic in test code and enabling clean CI matrix builds.

RSpec Example Filtering for Multiple Version Testing

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week