#423 √ invalid
Brian Ford

Add guard reporting and verification to MSpec

Reported by Brian Ford | March 17th, 2008 @ 01:57 PM | in 1.0

1. Add reporting for guards to output something like this (purely hypothetical output):

Specs guarded with 'compliant_on :jruby, :rubinius':

Class#method1 does this
Class#method2 does that

In this mode, the specs guarded are merely recorded and reported. No verification of expected pass/fail is done.

2. Add verification for guard to output something like this:

Specs guarded with 'compliant_on :jruby' and expected to PASS:

Class#method1 does this (VERIFY FAILED)
Class#method2 does this

In this mode, each guard has an expected outcome based on the arguments to the guard and the implementation running the specs. Only specs that would be executed on the implementation are verified and reported. In other words, if the implementation is :jruby, a spec guarded with 'compliant_on :rubinius do ... end' would not be executed or verified.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Tags