[Nitro] Nitro/OG spec convention/organization questions
Mark Van De Vyver
mvyver at gmail.com
Mon Sep 3 02:57:29 EDT 2007
> > nk we should maybe consider a directory structure:
> > ./spec
> > ./spec/developer
> This is not the directory structure currently used. At the moment the specs
> are residing in the 'test' direrectory. The
> test directory closely matches the contents of the lib directory. One
> example will make things cleae:
OK I think this is the layout Arne mentioned. He thought it was out
of favor. It seems not?
I'll replicate the source tree location for any test/spec I submit -
unless I hear other wise.
> > Next, should spec files correspond to the file name containing the
> > code they spec, or the class/module name? If you think the file name,
> > then what should be done with directory structures? Or should there be
> > no such ties that bind?
> see the above example.
> > Related to the last issue: should file naming be <...>_spec.rb, or
> > without the _spec extension?
> no _spec extension.
> > Finally, if anyone specs an example or a benchmark should these be in
> > separate directories?
> dunno why you would like to test a benchmark.
More information about the Nitro-general