Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Expecty
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
stephanos  
View profile  
 More options Oct 21 2012, 9:36 am
From: stephanos <stephan.beh...@gmail.com>
Date: Sun, 21 Oct 2012 06:36:23 -0700 (PDT)
Local: Sun, Oct 21 2012 9:36 am
Subject: Expecty

Hi,

I was wondering if there are any plans to leverage the new macro features
to do something like expecty <https://github.com/pniederw/expecty>:

expect {
  person.name == "Fred"
  person.age * 2 == 84
  person.say("Hi", "from", "Expecty!") == "Hi from Expecty!"}

Cheers
Stephan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
etorreborre  
View profile  
 More options Oct 21 2012, 6:11 pm
From: etorreborre <etorrebo...@gmail.com>
Date: Sun, 21 Oct 2012 15:11:58 -0700 (PDT)
Local: Sun, Oct 21 2012 6:11 pm
Subject: Re: Expecty

Hi Stephanos,

I actually plan to start working on 2.10 related features when it's
officially out (more for lack of time than anything else) and Expecty is an
interesting feature indeed.

You should be able to start using it now because when something fails
Expecty throws an AssertionError that should be caught by specs2 (hmm, I
might to make a slight change for this to be properly supported though, so
that those "errors" are interpreted as specs2 "failures").

However, in the future I'll probably do a slightly different integration
than the one using "expect" blocks because their functionality (fail the
whole block after the first assertion fails or report all failures)
overlaps with existing specs2 functionality (see the AllThrownExpectations
trait). Also I have to integrate Expecty's reporting to the "be_==" matcher.

So this is quite some work and I need to get up to speed with the
macro/reflection framework first!

Eric.

PS: also, I wonder how useful Expecty is in practice, with real-world data
which can be quite verbose to display sometimes


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »