The functional-testing tag has no wiki summary.
12
votes
4answers
1k views
Mocha Mock Carries To Another Test
I have been following the 15 TDD steps to create a Rails application guide - but have run into an issue I cannot seem to resolve. For the functional test of the WordsController, I have the following ...
24
votes
8answers
2k views
Unit Testing or Functional Testing? [closed]
I have recently heard of Functional Testing over Unit Testing.
I understand that Unit Testing tests each of the possibilities of a given piece of code from its most atomic form. But what about ...
16
votes
7answers
10k views
What tools do you use to test your public REST API?
Looking for tools use to test REST API.
So far I'm only aware of SoapUI. I've tried SOAPUI but - at least in a mac - it's terrible.
Wondering what people are using to test their own APIs.
12
votes
4answers
6k views
Best way to take screenshots of tests in Selenium 2?
So I need a way to take screenshots of my functional tests. Right now I'm using Selenium 2 with C# bindings. I pretty much want to take a screenshot at the end of the test to make sure the desired ...
8
votes
6answers
760 views
Why are functional tests not enough? What do unit tests offer?
I just had a conversation with my lead developer who disagreed that unit tests are all that necessary or important. In his view, functional tests with a high enough code coverage should be enough ...
13
votes
8answers
6k views
Difference between acceptance test and functional test?
What is the real difference between acceptance tests and functional tests?
What are the highlights or aims of each? Everywhere I read they are ambiguously similar.
4
votes
9answers
624 views
Do you need to do unit and integration testing if you already do functional testing?
People at my company see unit testing as a lot of extra work, that offers fewer benefits than existing functional tests. Are unit and integration tests worth it? Note a large existing codebase that ...
3
votes
2answers
2k views
Grails Functional Testing - grailsApplication.config is null within controllers and services
Grails 1.3.5
I've written a handful of functional tests and I'm running into issues when my controllers and services reference configuration data via grailsApplication.config. It is always coming ...
7
votes
3answers
1k views
Has anyone used Minitest::Spec withing a Rails functional test?
The spec library in Minitest is great. I've been able to use it within Rails unit tests no problem. However, Rails functional test inherit from ActionController::TestCase which provides instance ...
4
votes
2answers
2k views
Functional testing with Rails and Devise. What to put in my fixtures?
Hi I'm wanting to do some functional testing of my Rails 3 app that uses Devise and CanCan.
In my User model I have the users age, I want to test that a user can only visit a certain page if they ...
4
votes
1answer
3k views
Selenium Page Object Reuse
I really like how selenium 2 by convention pushes you towards using PageObjects as POJOs, and then simply using the PageFactory to instantiate the fields in this class.
What I am finding limiting is ...
6
votes
3answers
1k views
How to automate functional/integration tests and database rollbacks
In contrast to my previous question, i'll try to give my requirements.
I am trying to find some framework/methodology/"thing" that would fit the following:
Ability to write an automated test, ...
4
votes
2answers
402 views
auth-hmac functional testing problem
I want to use this gem in my api application https://github.com/seangeo/auth-hmac/
I have a question about creating tests for request authentification.
I want to sign request with hmac but rails ...
1
vote
1answer
3k views
Ruby on Rails functional test with Devise authentication
I'm searching for a solution for a weird problem. I have a controller, that needs authentication (with the devise gem). I added the Devise TestHelpers but i can't get it working.
require ...
13
votes
2answers
3k views
Testing devise with shoulda
I'm having some difficulties in testing devise with shoulda:
2) Error:
test: handle :index logged as admin should redirect to Daily page.
(Admin::DailyClosesControllerTest):
NoMethodError: undefined ...