tomjadams/instinct-github-import

Add newlines between context output in brief runner

Closed this issue · 1 comments

Using the following script

------------------->8-------------------
// require(url:'http://code.google.com/p/instinct', jar:'instinct-0.1.4.jar')
// require(url:'http://geekscape.org/static/boost.html', jar:'boost-982.jar')
import com.googlecode.instinct.marker.annotate.*
import com.googlecode.instinct.runner.TextContextRunner
import com.googlecode.instinct.internal.core.ContextClassImpl

//@Context
class A_Default_Storer {
   def storer

   @BeforeSpecification
   void setUp() {
       storer = new Storer()
   }

   private checkPersistAndReverse(value, reverseValue) {
       storer.put(value)
       assert value == storer.get()
       assert reverseValue == storer.getReverse()
   }

   @Specification
   def should_Reverse_Numbers() {
       checkPersistAndReverse 123.456, -123.456
   }

   @Specification
   def should_Reverse_Strings() {
       checkPersistAndReverse 'hello', 'olleh'
   }

   @Specification
   def should_Reverse_Lists() {
       checkPersistAndReverse([1, 3, 5], [5, 3, 1])
   }
}

new TextContextRunner().run(new ContextClassImpl(A_Default_Storer))
------------------->8-------------------

I would expect TextContextRunner to create the new ContextClassImpl()
for me so that the internal class isn't visible, or at least provide
that as an option.

The output is:
A_Default_Storer
- should_Reverse_Lists- should_Reverse_Numbers- should_Reverse_Strings

I would expect NEW_LINEs after each result message.

Original issue reported on code.google.com by tomjad...@gmail.com on 30 May 2007 at 9:33

Fixed in trunk.

Original comment by tomjad...@gmail.com on 5 Jun 2007 at 10:24

  • Changed state: Fixed