integration-testing
PHPUnit Zend_Test_PHPUnit_DatabaseTestCase fails to truncate table
I am setting up some db integration testing using Zend_Test_PHPUnit_DatabaseTestCase. My tests run but the db tables do not get truncated so an add test fails assertion - as the xml I provide as a da[详细]
2023-03-12 18:40 分类:问答Tests with constraint checking errors not caught when using AbstractTransactionalSpringContextTests (rollback)
The majority of开发者_如何学C my integration tests use spring\'s AbstractTransactionalSpringContextTests to do a rollback instead of commiting to the database.This works well normally but because fore[详细]
2023-03-12 13:33 分类:问答Access the current user in Cucumber features - Devise
Note: I am very new to Cucumber. I am trying to make a generalized step (not sure if one already exists somewhere or not) so that you can easily add objects to another object, given the association e[详细]
2023-03-12 13:20 分类:问答validate grails domain classes against a database
What\'s the best way to validate that the grails domain classes are in sync with a database? It\'s legacy database and i can\'t build it开发者_如何转开发 from the domain classes. An interesting idea h[详细]
2023-03-12 10:20 分类:问答Functional test in Spring: changes in database not visible in test
I have integration test (which runs under Jetty) where I open page (by using Selenium) and check that record about this activity was added to database (HSQL). But it does not work -- JPA (Hiberante) a[详细]
2023-03-12 10:01 分类:问答Chrome extension testing
Does anyone have experience with Chrome exte开发者_StackOverflownsion testing? For example: I want to create an extension that uses the[详细]
2023-03-12 03:22 分类:问答Integration Test for JUnit
I am very new to TDD in general so please forgive me if my question does not make lots of sense. After looking looking around for a bit, it seems that jUnit is capable of implement integration test.[详细]
2023-03-11 21:23 分类:问答Does a Middle Ground Exist? (Unit Testing vs. Integration Testing)
Consider an implementation of the Repository Pattern (or similar). I\'ll try to keep the example/illustration as succinct as possible:[详细]
2023-03-11 01:47 分类:问答payload source of response with spring ws MockWebServiceClient
I\'m using spring-ws 2.0.2 and spring-ws-test to run integration tests of my SOAP server. I\'m using an approach exactly like that from http://static.springsource.org/spring-ws/site/apidocs/org/spring[详细]
2023-03-10 16:30 分类:问答OpenEJB Local Client Injection Fails
Note that I\'m mirroring the example given here very closely. In fact, my situation is somewhat simpler as I\'m not even testing with a persistence unit at this point. My test project provides a simp[详细]
2023-03-10 14:03 分类:问答