Scala has 2 test frameworks (Specs <http://code.google.com/p/specs/>, scala
test <http://www.artima.com/scalatest/>) that I'm aware of, and can make use
of the selenium test framework <http://seleniumhq.org/>.

You could also, I suppose use JUnit or TestNG java frameworks if you wanted,
again with selenium.

On Mon, Nov 2, 2009 at 6:41 AM, Vesa <[email protected]> wrote:

>
> Hi,
>
> Ruby web apps can be tested easily with Rack::Test like on the example
> below. Is there anything similar tfor org.specs and lift? I see the
> lack of tutorials/documentation on testing the greatest obstacle of
> taking lift into use.
>
> require 'hello_world'
> require 'test/unit'
> require 'rack/test'
>
> set :environment, :test
>
> class HelloWorldTest < Test::Unit::TestCase
>  include Rack::Test::Methods
>
>  def app
>    Sinatra::Application
>  end
>
>  def test_it_says_hello_world
>    get '/'
>    assert last_response.ok?
>    assert_equal 'Hello World', last_response.body
>  end
>
>  def test_it_says_hello_to_a_person
>    get '/', :name => 'Simon'
>    assert last_response.body.include?('Simon')
>  end
> end
>
> -Vesa
>
> >
>


-- 
James A Barrows

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to