This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

frysk.expunit, Expect like functionality within JUnit


Hello,

The Expect program lets the user interact with a console based program, sending it input and checking its output. The existing testing framework dejagnu builds on expect.

The package frysk.expunit provides functionality similar to Expect, but in a way that integrates into the JUnit framework. By doing this, developers:

-> need only learn JUnit, and this extension, and not an entirely new language (tcl/tk) and test framework (dejagnu)

-> are able to implement tests in a similar consistent manner, in particular, first problem indicates failure - frameworks such as dejagnu have a very different testing model, allowing a failing test to bumble on regardless

With this in place I'll look at a few of the existing dejagnu tests, see how well they translate, and how workable the existing interfaces are.

See http://sourceware.org/frysk/javadoc/public/frysk/expunit/package-summary.html
for a simple example. Critic, expecially of the workability of the interfaces, most welcome.


Andrew

PS: This proved to be a good way of expanding the testing of frysk.sys.PseudoTerminal


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]