As it is currently, in trunk, --failures and --examples except a text file, each line containing the name of a spec. I''m wondering: Would a a patch to use YAML (instead or as well as) plain text be welcomed? I''m thinking of a yaml file like the following: spec_file_1: file: spec/person_spec.rb specs: - should have first name - should provide email address spec_file_2: file: spec/client_spec.rb specs: - should have meeting on monday - should drink on friday Any thoughts? Scott
David Chelimsky
2007-Apr-10 21:12 UTC
[rspec-users] using YAML for --failures and --examples
On 4/10/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:> > As it is currently, in trunk, --failures and --examples except a text > file, each line containing the name of a spec. > > I''m wondering: Would a a patch to use YAML (instead or as well as) > plain text be welcomed? I''m thinking of a yaml file like the following: > > spec_file_1: > file: spec/person_spec.rb > specs: > - should have first name > - should provide email address > > spec_file_2: > file: spec/client_spec.rb > specs: > - should have meeting on monday > - should drink on friday > > > Any thoughts?What benefit would this provide?> > Scott > > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On Apr 10, 2007, at 5:12 PM, David Chelimsky wrote:> On 4/10/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: >> >> As it is currently, in trunk, --failures and --examples except a text >> file, each line containing the name of a spec. >> >> I''m wondering: Would a a patch to use YAML (instead or as well as) >> plain text be welcomed? I''m thinking of a yaml file like the >> following: >> >> spec_file_1: >> file: spec/person_spec.rb >> specs: >> - should have first name >> - should provide email address >> >> spec_file_2: >> file: spec/client_spec.rb >> specs: >> - should have meeting on monday >> - should drink on friday >> >> >> Any thoughts? > > What benefit would this provide?It would only provide a benefit in a large spec suite, and as long as each spec file contains more than one describe/context block. Scott
aslak hellesoy
2007-Apr-11 15:16 UTC
[rspec-users] using YAML for --failures and --examples
On 4/11/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:> > On Apr 10, 2007, at 5:12 PM, David Chelimsky wrote: > > > On 4/10/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: > >> > >> As it is currently, in trunk, --failures and --examples except a text > >> file, each line containing the name of a spec. > >> > >> I''m wondering: Would a a patch to use YAML (instead or as well as) > >> plain text be welcomed? I''m thinking of a yaml file like the > >> following: > >> > >> spec_file_1: > >> file: spec/person_spec.rb > >> specs: > >> - should have first name > >> - should provide email address > >> > >> spec_file_2: > >> file: spec/client_spec.rb > >> specs: > >> - should have meeting on monday > >> - should drink on friday > >> > >> > >> Any thoughts? > > > > What benefit would this provide? > > It would only provide a benefit in a large spec suite, and as long as > each spec file contains more than one describe/context block. >What would we achieve with YAML that we can''t do with plain text?> Scott > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On Apr 11, 2007, at 11:16 AM, aslak hellesoy wrote:> On 4/11/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: >> >> On Apr 10, 2007, at 5:12 PM, David Chelimsky wrote: >> >>> On 4/10/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: >>>> >>>> As it is currently, in trunk, --failures and --examples except a >>>> text >>>> file, each line containing the name of a spec. >>>> >>>> I''m wondering: Would a a patch to use YAML (instead or as well as) >>>> plain text be welcomed? I''m thinking of a yaml file like the >>>> following: >>>> >>>> spec_file_1: >>>> file: spec/person_spec.rb >>>> specs: >>>> - should have first name >>>> - should provide email address >>>> >>>> spec_file_2: >>>> file: spec/client_spec.rb >>>> specs: >>>> - should have meeting on monday >>>> - should drink on friday >>>> >>>> >>>> Any thoughts? >>> >>> What benefit would this provide? >> >> It would only provide a benefit in a large spec suite, and as long as >> each spec file contains more than one describe/context block. >> > > What would we achieve with YAML that we can''t do with plain text?It could also be in plain text. YAML is just generally more readable. Scott
aslak hellesoy
2007-Apr-11 15:40 UTC
[rspec-users] using YAML for --failures and --examples
On 4/11/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:> > On Apr 11, 2007, at 11:16 AM, aslak hellesoy wrote: > > > On 4/11/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: > >> > >> On Apr 10, 2007, at 5:12 PM, David Chelimsky wrote: > >> > >>> On 4/10/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: > >>>> > >>>> As it is currently, in trunk, --failures and --examples except a > >>>> text > >>>> file, each line containing the name of a spec. > >>>> > >>>> I''m wondering: Would a a patch to use YAML (instead or as well as) > >>>> plain text be welcomed? I''m thinking of a yaml file like the > >>>> following: > >>>> > >>>> spec_file_1: > >>>> file: spec/person_spec.rb > >>>> specs: > >>>> - should have first name > >>>> - should provide email address > >>>> > >>>> spec_file_2: > >>>> file: spec/client_spec.rb > >>>> specs: > >>>> - should have meeting on monday > >>>> - should drink on friday > >>>> > >>>> > >>>> Any thoughts? > >>> > >>> What benefit would this provide? > >> > >> It would only provide a benefit in a large spec suite, and as long as > >> each spec file contains more than one describe/context block. > >> > > > > What would we achieve with YAML that we can''t do with plain text? > > It could also be in plain text. YAML is just generally more readable. >The file is not meant to be read by humans, but by RSpec. And if you decide to read it, I would argue that plain text is *much* easier to read than YAML. Aslak> > > Scott > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >