M. Edward (Ed) Borasky
2006-Dec-17 20:42 UTC
[rspec-users] Rspec/Ruby to test software written in other languages?
Is anyone here using Rspec and Ruby to test software written in other languages? I''m about to start an R language project, and may also be doing some work in another language (I''m not sure which one yet, but it''s one of the ones that''s part of the Axiom symbolic math package). I''d dearly love a test framework that can handle all three languages, rather than using Rspec for Ruby, R''s own "RUnit" for the R code, and yet another framework, if even one exists, for the third language. I''ve spent a couple of weeks familiarizing myself with the basic Rspec tool set. A lot of this is new to me, and seems very strange. Most of the projects I work on involve translating known algorithms on known data types into working code in some language, and there are usually test cases given in the books. So my typical modus operandi is to punch the whole algorithm into a file, punch the test case into another file, and iterate until everything works. -- M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P) http://borasky-research.blogspot.com/ If God had meant for carrots to be eaten cooked, He would have given rabbits fire.
aslak hellesoy
2006-Dec-17 22:52 UTC
[rspec-users] Rspec/Ruby to test software written in other languages?
On 12/17/06, M. Edward (Ed) Borasky <znmeb at cesmail.net> wrote:> Is anyone here using Rspec and Ruby to test software written in other > languages?Java. At work we''re using RSpec (and Watir) to specify the behaviour of a web application written in Java. The specs are written up-front, prior to the Java code. You can read more about it here: http://blog.aslakhellesoy.com/articles/2006/12/02/getting-screenshots-from-watir Although I haven''t done so beyond toying with it, you can also use RSpec on JRuby to verify behaviour of arbitrary Java code. More info here: http://www.infoq.com/news/2006/11/RSpecOnJRuby Cheers, Aslak