﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>vedic commented on Create a test DSL to test the DSL</title><description>yes. that also. 1500% is exactly... well... more or less more than 90% less time.
  
i like this too.
</description><link>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment11</link><guid>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment11</guid><pubDate>Wed, 21 May 2008 19:18:42 GMT</pubDate></item><item><title>Ayende Rahien commented on Create a test DSL to test the DSL</title><description>Aaron,
  
That is because you consider only the code that you have here. Consider the case of a useful DSL where you have plenty of scripts that you want to test.
  
Since the cost of writing a DSL is very low, I see this is as a huge benefit.
</description><link>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment10</link><guid>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment10</guid><pubDate>Wed, 21 May 2008 18:07:37 GMT</pubDate></item><item><title>Ayende Rahien commented on Create a test DSL to test the DSL</title><description>Max,
  
Try this, then:
  
  
Script:
  
  
specification @vacations:
  
	requires @scheduling_work
  
	requires @external_connections if UserCount &gt; 50
  
  
Tests:
  
  
with @vacations, Users(51):
  
	should_require @scheduling_work
  
	should_require @external_connections
  
  
with @vacations, Users(49):
  
	should_require @scheduling_work
  
	should_not_require @external_connections
</description><link>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment9</link><guid>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment9</guid><pubDate>Wed, 21 May 2008 17:48:53 GMT</pubDate></item><item><title>Max commented on Create a test DSL to test the DSL</title><description>You aren't testing the code, you're writing the same program twice :-)
  
  
Is this really useful?
</description><link>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment8</link><guid>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment8</guid><pubDate>Wed, 21 May 2008 17:33:23 GMT</pubDate></item><item><title>Rob commented on Create a test DSL to test the DSL</title><description>Creating testing DSL's is something I just started doing and it has been awesome.  I found that there are certain patterns that one tests repeatedly, so this can help.
</description><link>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment7</link><guid>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment7</guid><pubDate>Wed, 21 May 2008 14:51:09 GMT</pubDate></item><item><title>Aaron Jensen commented on Create a test DSL to test the DSL</title><description>That's a lot more than a 1500% disparity now (yes I know it's just framework code and its not repeated, I'm just being pedantic). I think writing another full on boo dsl for testing something so trivial is a bit extreme. Why not just a base test class? Or some extension methods? 
  
  
"quotes/simple.boo".With("vacations").ShouldRequire("scheduling_work")
  
"quotes/simple.boo".With("vacations").ShouldRequire("external_connections")
  
"quotes/simple.boo".With("scheduling_work").ShouldHaveNoRequirements()
  
  
Totally breaks AAA, but that's easily fixable.
</description><link>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment6</link><guid>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment6</guid><pubDate>Wed, 21 May 2008 13:16:55 GMT</pubDate></item><item><title>Ayende Rahien commented on Create a test DSL to test the DSL</title><description>Nothing much, there isn't an order dependency in the implementation that I wrote for them
</description><link>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment5</link><guid>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment5</guid><pubDate>Wed, 21 May 2008 12:55:27 GMT</pubDate></item><item><title>Benny Thomas commented on Create a test DSL to test the DSL</title><description>Its kind of nice. You have to write a TestDSL engine to test your dependencies on your DSL script.
  
  
What happens if you shuffle the should_require statements?
</description><link>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment4</link><guid>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment4</guid><pubDate>Wed, 21 May 2008 12:34:50 GMT</pubDate></item><item><title>Ayende Rahien commented on Create a test DSL to test the DSL</title><description>Quis custodiet ipsos custodes?
</description><link>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment3</link><guid>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment3</guid><pubDate>Wed, 21 May 2008 11:37:03 GMT</pubDate></item><item><title>Dan commented on Create a test DSL to test the DSL</title><description>Are you going to test this new DSL with itself?
</description><link>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment2</link><guid>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment2</guid><pubDate>Wed, 21 May 2008 11:33:08 GMT</pubDate></item><item><title>James Gregory commented on Create a test DSL to test the DSL</title><description>Nice, but how are you going to test that the testing DSL works? ;)
</description><link>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment1</link><guid>http://ayende.com/3329/create-a-test-dsl-to-test-the-dsl#comment1</guid><pubDate>Wed, 21 May 2008 11:31:24 GMT</pubDate></item></channel></rss>