Projects tagged ‘rspec’ and ‘testing’


Jump to tag:

Projects tagged ‘rspec’ and ‘testing’

Filtered by Project Tags rspec testing

Refine results Project Tags bdd (4) ruby (2) agile (2) test (2) tdd (2) .net (1) rails (1) tests (1) mocking (1) python (1) unittest (1) watir (1)

[6 total ]

133 Users
   

Cross platform BDD tool that lets domain experts define software behaviour in plain text. The text can be executed as automated tests.
Created 12 months 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

Nelson analyzes a model in your Rails project and provides you with the following: 1. a method to generate a mock object with all required fields supplied; this object can be a valid or invalid ... [More] instance of the model; you can specify attributes to error on; you can override field values. 2. a file with stub! and should_receive statements for class and instance methods that can be automagically parsed 3. output of methods that could not be parsed Nelson tries to take all the pain out of mocking ActiveRecord objects. [Less]
Created about 1 year ago.

0 Users

a mocking and expectation test library for python, inspired by rspec readme / code: http://github.com/gfxmonk/mocktest/tree cheese shop: http://pypi.python.org/pypi/mocktest/0.1
Created 10 months ago.

0 Users

JsSpec tries to bring behaviour driven development to JavaScript by somewhat mimicking what rspec does in ruby. with (Spec) { describe("A newly created Tic-Tac-Toe", function() { with (this) { ... [More] before("each", function() { this.game = new TicTacToe(); }); it("should have 9 empty cells", function() { this.game.cells.should(have(9, "items")); this.game.cells.each(function(cell) { cell.should( be(undefined) ); }); }); it("should have 0 players", function() { this.game.should( have(0, "players") ); }); }}); } Specs.run();Real docs coming soon, look at the README file in the downloadable package or the running example in spec/index.html [Less]
Created about 1 year ago.

0 Users

Current FeaturesUnittest reporting Regression testing Port of RSpec to D Bindings for Watir web-testing framework Possible Features for Future InclusionBenchmarking framework Configurable test reports ... [More] Google Test/Google Mock like unittest and mock framework Want to contribute?Just fork the project from Github or Gitorious and send me a merge request. Or you can submit an issue here on Google Code. [Less]
Created 4 months ago.