Seems like cuke doesn't show the full error message (at least when problem occurs in template) which makes it really hard to locate the problem.
Here is what it outputs on some error:
...
And I am on checkout page # features/step_definitions/webrat_steps.rb:6
You have a nil object when you ...
I just deployed a Hudson server and configured it to checkout, build and deploy to a testing http server.
Now I want more =)
I have some Selenium RC tests wrtten in C#/.Net, using the MbUnit infrastructure, that runs ok on Gallio Icarus.
How to setup Hudson to run these tests? Our is in a Windows 2003 server.
I was thinking about jus...
I'm working on a legacy system that has uses stored procs, business objects and DTO:s. The business objects and the DTO:s often have the same properties. When calling a method in the service layer that returns a DTO, many transformations are happening. Stored proc -> dataset -> business object -> DTO. If a new property is added, it somet...
Hi guys,
I am trying to increase the overall Integration test execution time and I am currently evaluating various in-memory db solutions. The idea is to have DAOs hit in-mem db during the tests as opposed to hitting a real DB. This is a java app using Hibernate for persistence.
I'd be interested to see your experience with one of thes...
Hi, all,
I have the 'luck' of develop and enhance a legacy python web application for almost 2 years. The major contribution I consider I made is the introduction of the use of unit test, nosestest, pychecker and CI server. Yes, that's right, there are still project out there that has no single unit test (To be fair, it has a few doctes...
I recently spent about 70% of the time coding a feature writing integration tests. At one point, I was thinking “Damn, all this hard work testing it, I know I don’t have bugs here, why do I work so hard on this? Let’s just skim on the tests and finish it already…”
Five minutes later a test fails. Detailed inspection shows it’s an import...
We're using Watin for acceptance tests and we find it gets mighty slow once we have Web pages that are more than 100K of HTML source.
I've a feeling that some of the speed issues come from iterating over HTML tables. Some of our tables have 50 - 60 rows, each with 5 - 10 columns, and this makes Watin quite slow when searching for items...
Hi I do not have any front end in my app. I am willing to release just a RESTful API which can be used by different clients. Any pointers how should I proceed towards testing it with cucumber? Every action in the controller generates XML feed only. Any pointers or suggestions?
...
I'm getting some integration tests running against the database, and I'd like to have a structure that looks something like this:
class OracleMixin(object):
oracle = True
# ... set up the oracle connection
class SqlServerMixin(object):
sql_server = True
# ... set up the sql server connection
class SomeTests(object):
...
Having just set up a test framework for a new web application, I realized I missed one of the big questions: "How do I make tests independent from each other?"
Years ago I have set up some complicated Ant scripting to do full cycles of deleting all database tables, creating the schema again, adding test data, starting the application, r...
Suppose I have two Oracle databases. We'll call them database A and database B.
Now suppose I have a table in database A that's defined like this:
CREATE TABLE foo
(
foo_id INT PRIMARY KEY,
some_text VARCHAR2(10),
other_table_id INT
CONSTRAINT some_fk_constraint
FOREIGN KEY (other_table_id)
REFERENCES ...
I have a project which I am building with Maven which uses Hibernate (and Spring) to retrieve data from a database, etc.
My "tests" for the DAOs in my project extend Spring's AbstractTransactionalDataSourceSpringContextTests so that a DataSource can be wired into my class under test to be able to actually run the query/Hibernate logic, ...
I am looking for an open source Java project containing two reasonably complete test suites: a suite of integration tests and a suite of unit tests, for the same code.
Note that I am only interested in developer tests, written with JUnit or TestNG.
I ask this because I often see people saying that having both unit and integration tests...
How do you go about integration testing your database through your domain layer/model (repositories) that uses LINQ 2 SQL in the implementation and leave the DB as you found it? In other words, the ideal world of unit testing the DB, the integration test would leave the DB as it found it.
Are there tools out there that will handle this...
I was looking into additional ways to test ASP.NET MVC applications and ran into Steve Sanderson’s MvcIntegrationTestFramework. The approach looks rather promising but I was wondering if anyone had any actual experience to share.
...
Hi,
I need to do an integration tests on my web application on each build.
Currently I have a set of JUnit tests, which tests various parts of an application before it constructed into war. What I need to do now is to test if application is in good shape after it is deployed into Web container.
The application is written using Spring...
Our team has hundreds of integration tests that hit a database and verify results. I've got two base classes for all the integration tests, one for retrieve-only tests and one for create/update/delete tests. The retrieve-only base class regenerates the database during the TestFixtureSetup so it only executes once per test class. The CUD ...
Is it possible to use Fluent NHibernate's PersistenceSpecification to test NHibernate mappings done via XML?
...
I've noticed that the domain
contoso.com
is often used in documentation when a sample is needed. I always figured this was a dummy domain, used like the telephone prefix "555" to route spam into some kind of telecommunicative void (although contoso.com appears to be a real site).
Is there a domain I can safely use when I have to, sa...
The Title pretty much sums it up.
I am trying to take a backup of the existing database before recreating it. I use Tarantino for Integration testing. But, I always have to take a backup of the existing database. I know this is not necessary but I am a bit paranoid about losing my schema. Any help would be greatly appreciated.
...