Monday, September 11, 2006

YATSY: Yet Another Test Server - Yaws compatible

Yatsy is a simple test framework for testing your Erlang code. It makes it possible to execute test suites according to a defined structure and format, presenting the result either dynamically (via Yaws) or by generated HTML files.

A testcase is implemented by a function that you write. You collect a number of such testcases in an Erlang module which ends in: _SUITE.erl. You may have any number of such test suite modules which you compile to beam files located in your ebin directories.

You start your system, add the code paths to Yatsy and Yaws and start Yatsy. Yatsy will now automatically find all test suite modules that exist as beam files in you code path. Next you order Yatsy to run your test cases, which it will do suite by suite. The result will be accessible by pointing a Web browser to: http://localhost:8888/yatsy.yaws .

Yatsy is under development, but it is already possible to run test cases locally or on a remote Erlang node, to have HTML pages to be generated on disk or simply ask Yaws to provide them.

The intelligent reader may now spot the similarities with the Erlang/OTP Test Server, and indeed Yatsy has taken the main ideas from it. The main difference is the close connection to Yaws but more importantly: Yatsy lives on http://code.google.com/p/yatsy and can therfore be managed in a common Open Source model.

More news about Yatsy will be posted here in the future.

1 Comments:

Blogger martinjlogan said...

I have used the erlang test server about more extensively than anyone in North America, what is it you believe Yatsy will solve that the erlang test server does not?

Cheers,
Martin Logan
www.erlware.org

7:00 PM  

Post a Comment

<< Home