Projects tagged ‘rspec’ and ‘spec’


Jump to tag:

Projects tagged ‘rspec’ and ‘spec’

Filtered by Project Tags rspec spec

Refine results Project Tags bdd (2) specification (1) php (1) testing (1) behaviour (1) rake (1) gem (1) .net (1) phpspec (1) ruby (1) rubygems (1)

[3 total ]

0 Users

RStack uses rspec instead of test/unit and integrates with CruiseControl.rb. This is really, really basic. More features will be added as required. Usagerstack fooGenerated Rakefilerequire ... [More] 'rubygems' require 'rstack' require File.join(File.dirname(__FILE__), 'lib', 'foo', 'version') RStack::Configuration.new do |config| config.name = 'foo' config.summary = '[ENTER A SUMMARY]' config.author = 'jeremy burks' config.email = '[ENTER YOUR EMAIL]' config.url = '[ENTER A PROJECT URL]' config.version = Foo::Version::STRING endRStack::Configuration Defaultsconfig.name = '[ENTER A NAME]' config.summary = '[ENTER A SUMMARY]' config.author = '[ENTER A AUTHOR]' config.email = '[ENTER YOUR EMAIL]' config.url = '[ENTER A PROJECT URL]' config.version = '0.1.0' config.platform = Gem::Platform::RUBY config.spec_globs = FileList['spec/**/*_spec.rb'] config.package_globs = FileList['[a-zA-Z]*', 'bin/**/*', 'lib/**/*', 'spec/**/*'] config.require_path = 'lib' config.has_rdoc = false config.out_path = ENV["CC_BUILD_ARTIFACTS"] || 'out' config.executables = [] config.extra_dependencies = [] [Less]
Created about 1 year ago.

0 Users

Write and validate .NET specifications in BDD style.This framework can be used along with any other unit testing, mocking frameworks. Main purpose of this framework is to allow writing unit tests in ... [More] BDD style (similar to RSpec) Simple usage example: using System; using NUnit.Framework; namespace Demo.Spec { public class CreditCardTest : ArtSpec.Spec { /* note: override this method to define specification */ protected override void Specify() { Console.WriteLine(@"CreditCardTest demonstrates using NUnit framework"); It("should have a valid month", () => { /* note: defines expectation of an exception */ Error(delegate { new CreditCard {Month = 0}; }); Error(delegate { new CreditCard {Month = 13}; }); Error(delegate { new CreditCard {Month = -1}; }); new CreditCard {Month = 1}; new CreditCard {Month = 12}; }); It("should have a valid year", () => { Error(delegate { new CreditCard {Year = -1}; }); /* note: other unit testing frameworks can be used */ Assert.AreEqual(2009, (new CreditCard {Year = 2009}).Year); }); It("should have at least two words in the name", () => { Error(()=> new CreditCard {Name = "Sam"}); Assert.AreEqual("Sam Smith", (new CreditCard {Name = "Sam Smith"}).Name); Assert.AreEqual("Sam Smith Third", (new CreditCard { Name = "Sam Smith Third" }).Name); }); } } }This and other samples are included in the release This approach will be frozen due to a better approach demonstrated by MSpec, good job guys! It is highly recommended. ArtSpec has been tried to provide BDD for XF.Server component (http://www.kodart.com) which provides high performance for client-server applications using .NET [Less]
Created 7 months ago.

0 Users

Pending...
Created 12 months ago.