Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
my thoughts on grouping #bdd items using #vscommands - any other ideas?
+- FooSpecs.cs
BarSpecs.cs (with common Bar related IBehaviorConfigs)
+- when_bar_has_this.cs
+- when_bar_has_that.cs
FooSpecs.cs (with common Foo related IBehaviorConfigs)
+- when_foo_does_this.cs
+- when_foo_does_that.cs

This comment has been minimized.

Copy link

@ChristianDeger ChristianDeger commented Jun 29, 2010

At the moment I would favour:

+- BarSpecs.cs

and optionally

+- BarThisSpecs.cs
+- BarThatSpecs.cs
+- BarOtherSpecs.cs

Because the grouping is only visible in VS, there should be some coherence in the file system.


This comment has been minimized.

Copy link

@agross agross commented Jun 29, 2010

I tried it with when_foo.cs a couple of years ago and failed due to unwieldy long file names (plus, duplication of context names in the file name and the context class). The *Specs.cs convention also makes it easier to set all files containing specs to have zero bytes later in the release build.


This comment has been minimized.

Copy link
Owner Author

@AlexZeitler AlexZeitler commented Jun 29, 2010

Thanks guys, sounds reasonable to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment