<p>In my limited experience with them executable requirements (i.e. specifying all requirements as broken automated tests) have proven to be amazingly successful.  I've worked on one project in which we placed a heavy emphasis on creating high-level automated tests which exercised all the functionality of a given use case/user story.  It was really amazing to me how much easier development became after we began this practice.  Implementing features became so much easier after writing a test and we were able to make major architectural changes to the system with all the confidence in the world that everything still worked the same as it did yesterday.</p>

<p>The biggest problem we ran into was that the tools for managing these types of tests aren't very good.  We used Fitnesse quite a bit and as a result I now hate the Fit framework.</p>

<p>I'd like to know 1) if anyone else has experience developing using this type of test-driven requirement definition and 2) what tools you all used to facilitate this.</p>

[{'answer_id': 13038, 'author': 'Jon Ericson', 'author_id': 1438, 'author_profile': 'https://Stackoverflow.com/users/1438', 'pm_score': 1, 'selected': False, 'text': '<p>My experience is limited to personal projects and found much the same advantages you mentioned.  I recommend <a href="http://metacpan.org/pod/Test::Simple::Tutorial" rel="nofollow noreferrer">http://metacpan.org/pod/Test::Simple::Tutorial</a> which was my inspiration for trying out testing-based development.  The perl testing modules seem pretty useful and flexible, though I have nothing to compare them to.</p>\n\n<p>I also believe tests are vital for the maintenance period of a project.  If you have good tests to begin with, it saves a lot of time and mistakes later on.  I wish I had put more work into tests on my current project. </p>\n'}, {'answer_id': 24443, 'author': 'James A. Rosen', 'author_id': 1190, 'author_profile': 'https://Stackoverflow.com/users/1190', 'pm_score': 1, 'selected': False, 'text': '<p>I\'ve found that using <a href="http://blog.mauricecodik.com/2005/10/ruby-meta-programming-software.html" rel="nofollow noreferrer">contracts</a> is a great approach.  Metaprogramming contracts are generally lower-level than the types of integration tests you describe, but the two are certainly not mutually exclusive.  I find contracts help keep documentation, implementation, and testing all in sync -- this is a major problem of TDD (not that it isn\'t a problem in non-TDD).</p>\n'}, {'answer_id': 38327, 'author': 'Cory Foy', 'author_id': 4083, 'author_profile': 'https://Stackoverflow.com/users/4083', 'pm_score': 3, 'selected': False, 'text': '<p>The primary tool I\'ve also used was FitNesse. I\'ve used it at several companies, with very good results. We did have test cases numbering in the many thousands, and we had to be very disciplined in how we organized and used them.</p>\n\n<p>I\'ve tried some other tools, including writing my own DSL (domain-specific language) and using things like RSpec. I really like RSpec, but it is certainly more of a developer tool than a business one. </p>\n\n<p>I know Rick Mugridge has been working on a tool called ZiBreve (<a href="http://www.zibreve.com/visit.php?page=index" rel="nofollow noreferrer"><a href="http://www.zibreve.com/visit.php?page=index" rel="nofollow noreferrer">http://www.zibreve.com/visit.php?page=index</a></a>) which is supposed to have stronger refactoring support. I haven\'t used it myself, but I know Rick and have talked to him several times. I know there was discussion at Agile 2008 on some different ways to deal with the Fitnesse tests in general.</p>\n\n<p>Other than that, I haven\'t seen a lot of good tools out there. Even tools like WinRunner are fine for QA type tests, but for exploratory testing of requirements by the business, FitNesse or a custom DSL seem to be the ways to go right now.</p>\n'}, {'answer_id': 73303, 'author': 'kzotin', 'author_id': 12021, 'author_profile': 'https://Stackoverflow.com/users/12021', 'pm_score': 1, 'selected': False, 'text': '<p>I\'ve tried Fitnesse and its really awful (particularly integration with SVN). \nAnd our company develop similar open-source tool with fit engine: <a href="http://sourceforge.net/projects/fitpro" rel="nofollow noreferrer">FitPro</a></p>\n\n<p>Another brilliant tool I\'ve used is <a href="http://www.concordion.org/" rel="nofollow noreferrer">Concordion</a>. It has the only disadvantage - requrements in html format</p>\n'}, {'answer_id': 177868, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': '<p>You might want to take look at Robot Framework (<a href="http://robotframework.org" rel="nofollow noreferrer">http://robotframework.org</a>). It\'s FIT-like but hopefully easier to integrate to different testing tools, version control and continuous integration. Different abstraction levels in the test data also make it easier to maintain the data, and when the separate <a href="http://code.google.com/p/robotframework-ride/" rel="nofollow noreferrer">test data editor</a> gets more mature maintenance gets even easier. The <a href="http://code.google.com/p/robotframework/wiki/QuickStartGuide" rel="nofollow noreferrer">quick start guide</a> introduces the most important features of the framework and acts also as an executable demo.</p>\n'}, {'answer_id': 1097953, 'author': 'SAKIROGLU Koray', 'author_id': 130909, 'author_profile': 'https://Stackoverflow.com/users/130909', 'pm_score': 2, 'selected': False, 'text': '<p>I\'ve had to use, test and set up both fitnesse and one of it\'s competitor, <a href="http://www.greenpeppersoftware.com/en/" rel="nofollow noreferrer">GreenPepper </a> for my work, and what I can say is :</p>\n\n<p>GreenPepper is a confluence plugin (confluence is an enterprise wiki from atlassian) and have many of the things you need in an "enterprise" level tool with little to no additional work required :</p>\n\n<ul>\n<li>Better user friendly -rich text- wiki\nsyntax (makes it easier to work with\nfor non technical people)</li>\n<li>It integrates very well with many\ndevelopment tools : Eclipse, VB,\nmaven2 and Nant plugin, I tested most\nand was very pleased.</li>\n<li>User and access rights are managed by\nconfluence, which is to say it\'s good\nand make uses of database of your\nlikin (which might be mandatory\ndepending on where you work)</li>\n<li>Many other functionalities that might\nor might not be required : ssl support, remote execution (install the wiki on unix, execute on windows if you are working on a C# project, or reverse)</li>\n<li>Looks way better :D</li>\n</ul>\n\n<p>Big downs for GreenPepper are : Configuration is quite <strong>hard</strong> and documentation is <strong>poor</strong> (although they seem to be working on it and they answer quite fast on their forum) and also it is <strong>not free</strong>, you have to pay for both confluence and GreenPepper, which might add up to quite a lot.</p>\n\n<p>Fitnesse is very basic in my opinion, very easy to set up, it works but that\'s it, you can use some of the fitnesse plugins developed by the open source community, and even some Fit plugins, such as the Eclipse plugin (build the skeletton of the fixture from a fitnesse test file, provided it\'s in a .fit extension, very usefull). Integration is not ideal, authentification and access rights management is poor, but it\'s <strong>FREE</strong> and if you need something, you can do it because it\'s open source. </p>\n'}]
['https://Stackoverflow.com/questions/12815', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1247/']