George Anderson
2008-Mar-04 05:41 UTC
[rspec-users] Pretty story output for non-Rails project
I''m taking my first fledgling steps driving a new ruby (non-rails) project with BDD. I''ve got a (test) story working. However, when I run the story in TextMate (via command-r), the output is plain text. See: http://skitch.com/georgeanderson/8grg/run-examples How do I get the output to look pretty (formatted)? rspec-1.1.3 OS X 10.5.2 TextMate v1.5.7 (1455) Thanks, /g -- George Anderson BenevolentCode LLC O: (410) 461-7553 C: (410) 218-5185 george at benevolentcode.com
David Chelimsky
2008-Mar-04 06:19 UTC
[rspec-users] Pretty story output for non-Rails project
On Mon, Mar 3, 2008 at 11:41 PM, George Anderson <george at benevolentcode.com> wrote:> I''m taking my first fledgling steps driving a new ruby (non-rails) > project with BDD. I''ve got a (test) story working. However, when I > run the story in TextMate (via command-r), the output is plain text. > > See: http://skitch.com/georgeanderson/8grg/run-examples > > How do I get the output to look pretty (formatted)?There''s no textmate formatter for stories yet. In the mean time, you can do it on the command line with --format html and open the resulting file in a browser. Cheers, David> > rspec-1.1.3 > OS X 10.5.2 > TextMate v1.5.7 (1455) > > Thanks, > > /g > > -- > > George Anderson > > BenevolentCode LLC > O: (410) 461-7553 > C: (410) 218-5185 > > george at benevolentcode.com > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On Mar 3, 2008, at 10:19 PM, David Chelimsky wrote:> In the mean time, you > can do it on the command line with --format html and open the > resulting file in a browser.Er... stories? How do you format story output as html?
Aslak Hellesøy
2008-Mar-04 07:45 UTC
[rspec-users] Pretty story output for non-Rails project
Like David said. Not working for you? Aslak On Mar 4, 2008, at 8:03, "s.ross" <cwdinfo at gmail.com> wrote:> On Mar 3, 2008, at 10:19 PM, David Chelimsky wrote: > >> In the mean time, you >> can do it on the command line with --format html and open the >> resulting file in a browser. > > Er... stories? How do you format story output as html? > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users
On Tue, Mar 4, 2008 at 12:19 AM, David Chelimsky <dchelimsky at gmail.com> wrote:> On Mon, Mar 3, 2008 at 11:41 PM, George Anderson > <george at benevolentcode.com> wrote: > > I''m taking my first fledgling steps driving a new ruby (non-rails) > > project with BDD. I''ve got a (test) story working. However, when I > > run the story in TextMate (via command-r), the output is plain text. > > > > See: http://skitch.com/georgeanderson/8grg/run-examples > > > > How do I get the output to look pretty (formatted)? > > There''s no textmate formatter for stories yet. In the mean time, you > can do it on the command line with --format html and open the > resulting file in a browser. > > Cheers, > David >David, Is this something in trunk? all.rb does not except any arguments, and there is no argument to the run command for this. Also, the svn server seems to be offline this morning. Ed> > > > > > rspec-1.1.3 > > OS X 10.5.2 > > TextMate v1.5.7 (1455) > > > > Thanks, > > > > /g > > > > -- > > > > George Anderson > > > > BenevolentCode LLC > > O: (410) 461-7553 > > C: (410) 218-5185 > > > > george at benevolentcode.com > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- Ed Howland http://greenprogrammer.blogspot.com "The information transmitted is intended only for the person or entity to which it is addressed and may contain proprietary, confidential and/or legally privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers."
aslak hellesoy
2008-Mar-04 13:24 UTC
[rspec-users] Pretty story output for non-Rails project
On Tue, Mar 4, 2008 at 2:18 PM, Ed Howland <ed.howland at gmail.com> wrote:> On Tue, Mar 4, 2008 at 12:19 AM, David Chelimsky <dchelimsky at gmail.com> wrote: > > On Mon, Mar 3, 2008 at 11:41 PM, George Anderson > > <george at benevolentcode.com> wrote: > > > I''m taking my first fledgling steps driving a new ruby (non-rails) > > > project with BDD. I''ve got a (test) story working. However, when I > > > run the story in TextMate (via command-r), the output is plain text. > > > > > > See: http://skitch.com/georgeanderson/8grg/run-examples > > > > > > How do I get the output to look pretty (formatted)? > > > > There''s no textmate formatter for stories yet. In the mean time, you > > can do it on the command line with --format html and open the > > resulting file in a browser. > > > > Cheers, > > David > > > > David, > > Is this something in trunk? all.rb does not except any arguments, and > there is no argument to the run command for this. Also, the svn server > seems to be offline this morning. >This is in the latest release. Just pass --format html on the ocmmand line. ARGS is read by one of the internal files in RSpec - not all.rb. Try --help too. Aslak> > Ed > > > > > > > > > > > > rspec-1.1.3 > > > OS X 10.5.2 > > > TextMate v1.5.7 (1455) > > > > > > Thanks, > > > > > > /g > > > > > > -- > > > > > > George Anderson > > > > > > BenevolentCode LLC > > > O: (410) 461-7553 > > > C: (410) 218-5185 > > > > > > george at benevolentcode.com > > > _______________________________________________ > > > rspec-users mailing list > > > rspec-users at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rspec-users > > > > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > > > > > -- > Ed Howland > http://greenprogrammer.blogspot.com > "The information transmitted is intended only for the person or entity > to which it is addressed and may contain proprietary, confidential > and/or legally privileged material. Any review, retransmission, > dissemination or other use of, or taking of any action in reliance > upon, this information by persons or entities other than the intended > recipient is prohibited. If you received this in error, please contact > the sender and delete the material from all computers." > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On Tue, Mar 4, 2008 at 7:24 AM, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:> > This is in the latest release. Just pass --format html on the ocmmand > line. ARGS is read by one of the internal files in RSpec - not all.rb. > Try --help too. > > AslakThanks, Aslak. Seems I was consuming ARGV prematurely in my own story runner. The output seems a bit crude. I have to drop the output in public and copy the css there, or put it in vendors/plugins/rspec/story_server/prototype. Also, I can''t seem to get the summarized output like the example in there. Ed -- Ed Howland http://greenprogrammer.blogspot.com
aslak hellesoy
2008-Mar-04 15:24 UTC
[rspec-users] Pretty story output for non-Rails project
On Tue, Mar 4, 2008 at 3:32 PM, Ed Howland <ed.howland at gmail.com> wrote:> On Tue, Mar 4, 2008 at 7:24 AM, aslak hellesoy <aslak.hellesoy at gmail.com> wrote: > > > > > This is in the latest release. Just pass --format html on the ocmmand > > line. ARGS is read by one of the internal files in RSpec - not all.rb. > > Try --help too. > > > > Aslak > > Thanks, Aslak. Seems I was consuming ARGV prematurely in my own story runner. > > The output seems a bit crude. I have to drop the output in public and > copy the css there, or put it in > vendors/plugins/rspec/story_server/prototype. > > Also, I can''t seem to get the summarized output like the example in there. >Yeah, it''s only a start. Patches are welcome as usual. Aslak> Ed > > -- > > Ed Howland > http://greenprogrammer.blogspot.com > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On Mar 4, 2008, at 5:24 AM, aslak hellesoy wrote:> This is in the latest release. Just pass --format html on the ocmmand > line. ARGS is read by one of the internal files in RSpec - not all.rb. > Try --help too. > > AslakI must be dense: RSpec-1.1.3 (build 20080131122909) - BDD for Ruby ruby stories/all.rb --format html and this outputs text. Where would the html go?
aslak hellesoy
2008-Mar-04 17:26 UTC
[rspec-users] Pretty story output for non-Rails project
On Tue, Mar 4, 2008 at 6:11 PM, s.ross <cwdinfo at gmail.com> wrote:> On Mar 4, 2008, at 5:24 AM, aslak hellesoy wrote: > > > This is in the latest release. Just pass --format html on the ocmmand > > line. ARGS is read by one of the internal files in RSpec - not all.rb. > > Try --help too. > > > > Aslak > > I must be dense: > > RSpec-1.1.3 (build 20080131122909) - BDD for Ruby > > ruby stories/all.rb --format html > > and this outputs text. Where would the html go? >I forgot - this is an old bug - not working with rails, only "vanilla" http://rspec.lighthouseapp.com/projects/5645/tickets/113-13547-story-runner-html-formatted-output Aslak> > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On Mar 4, 2008, at 9:26 AM, aslak hellesoy wrote:> I forgot - this is an old bug - not working with rails, only "vanilla" > http://rspec.lighthouseapp.com/projects/5645/tickets/113-13547-story-runner-html-formatted-outputOk, I feel a little less dense now :)