testing

  • submit to reddit

Testing and specifying JavaScript code with Jasmine

Jasmine is a BDD framework for JavaScript (or CoffeeScript) code, which helps you specify and test your classes and functions as the same time.Jasmine is not...

0 replies - 3948 views - 12/07/11 by Giorgio Sironi in Articles

Selenium 2 from PHP code

Selenium 2, the new iteration of the end-to-end web application testing tool, contains some fancy innovations over its 1.x version: it controls browser...

4 replies - 13811 views - 11/15/11 by Giorgio Sironi in Articles

Practical PHP Refactoring: Introduce Assertion

A portion of code makes an assumption about something: the current state of the object, or of the parameter, or of a local variable of the cycle. Normally this...

0 replies - 3810 views - 10/31/11 by Giorgio Sironi in Articles

Getting started with Selenium 2

Selenium 2 features new Api and implementations which goes under the name of WebDriver. It's a simpler, faster, object-oriented Api that applies to modern web...

0 replies - 9251 views - 10/25/11 by Giorgio Sironi in Articles

Why I created Fluent Assertions in the first place

A few weeks ago I read The value of open-source is the vision not the source code and that made me think about my own reasons for starting Fluent Assertions,...

0 replies - 2995 views - 07/29/11 by Dennis Doomen in News

Phantom JS: an alternative to Selenium

PhantomJS is an headless browser based on an embedded webkit, suitable for testing of web applications involving JavaScript usage where simpler tools do not...

0 replies - 17950 views - 07/21/11 by Giorgio Sironi in Articles

Testing JavaScript when the DOM gets in the way

It's one thing to exercise a simple function or even an object graph in a controlled environment; it's another to assert the DOM is manipulated correctly:...

2 replies - 3667 views - 07/05/11 by Giorgio Sironi in Articles

Self-Initializing Fakes in PHP

Testing becomes difficult when you consider objects at the boundary of a system: databases, web services, and other integration nightmares. What we usually do...

0 replies - 5300 views - 06/30/11 by Giorgio Sironi in Articles

I don't know how to test this

There is a maxim said by Misko Hevery which I share (and probably misquote) here:The only acceptable excuse for lack of tests is that you don't know how to...

5 replies - 7206 views - 06/23/11 by Giorgio Sironi in Articles

A Mockery review

Mockery is a mock object framework (more properly Test Double framework) from @padraicb, independent from testing frameworks like PHPUnit. It can be used to...

0 replies - 6767 views - 05/05/11 by Giorgio Sironi in Articles

We cannot avoid testing JavaScript anymore

You have to test your web application. Since the current year is 2011 and not 2002, you're going to use Ajax requests in it, and a certain amount of JavaScript...

0 replies - 7128 views - 04/11/11 by Giorgio Sironi in Articles

Eliminating duplication

The title of this article is Eliminating duplication, and when you read that I think you will have guessed I would be talking about code. Of course I will...

0 replies - 3431 views - 03/10/11 by Giorgio Sironi in Articles

Behavior-Driven Development in PHP with Behat

What is Behavior-Driven Development? A formal definition can be found on Wikipedia:BDD is a second-generation, outside-in, pull-based, multiple-stakeholder,...

0 replies - 12568 views - 02/08/11 by Giorgio Sironi in Articles

JUnit 4.9 - Class and Suite Level Rules

If you have worked with JUnit Rule API which was introduced in version  4.8 then you might probably also think that they are very useful. For example,...

1 replies - 13905 views - 01/31/11 by Shekhar Gulati in Articles

IntegrationContractTest

One of the most common cases of using a TestDouble is when you are communicating with an external service. Typically such services are being maintained...

1 replies - 5923 views - 01/13/11 by Martin Fowler in News