-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fake should be able to split a MSBuild-project into a test and implementation project #4
Comments
I don't know fake's functionality, so bare with me on that. However, I'd recommend to split the feature into smaller chunks and implement filtering first. In the context of a release build, the benefit of having specifications packaged is rather small. I wouldn't drop the idea entirely though, just postpone it. IMHO it's good enough for a first shot to just filter out the specs using conventions. Conventions may differ for different spec. frameworks, so filter criteria needs to be adjustable. Once the filter (for files and test dll's) is done, you soon will recon the need for a "boarding" build. But for the sake of simplicity, filter would satisfy a lot! This feature would be one more great reason to switch over to fake. I'll surely have a look! Thanks! |
I agree with Ilker - there's no need to elaborate ;-) |
Interesting. I've never thought of the need for this before. Why aren't you already using separate projects? |
Hi Ryan, we had an interesting discussion about side-by-side specifications at the .NET OpenSpace in Karlsruhe. The idea is to put specs, test data and implementation next to each other since the specs are documentation for the implementation. By using a tool like http://mokosh.co.uk/vscommands/ we are able to group the implementation with the specs (see http://gist.github.com/457248). But of course we don't want to deploy the tests. By automatically removing all spec files and test framework references we can easily build a release. What do you think? Regards, |
I love it. I had thought about that at one point, but I've now gotten so used to having completely separate folder structures/projects for tests/specs. I'd love them to be together again, though. Great idea! |
First version in 1.33.0 released |
Consider a project with side-by-side specification:
Name: MyProject.csproj
Dependency on NUnit.Framework.dll
Class1.cs
Test.Class1.Something.cs
Test.Class1.Whatever.cs
Class2.cs
Test.Class2.Something.cs
This side-by-side specification is good for development, but for a release build we want to split this into two separate projects like this:
Name: MyProject.csproj
Class1.cs
Class2.cs
Name: Test.MyProject.csproj
Dependency on NUnit.Framework.dll
Dependency on MyProject.csproj
Test.Class1.Something.cs
Test.Class1.Whatever.cs
Test.Class2.Something.cs
The splitting should work for all testprojects and based on file name conventions.
The text was updated successfully, but these errors were encountered: