Hi,
In unit test design, it is very easy to fall into the trap of actually just calling your implementation logic.
For example, if testing an array of ints which should all be two higher than the other (2, 4, 6, 8, etc), is it really enough to get the return value from the method and assert that this pattern is the case?
Am I missing...
I'm switching our testing environment from Nose to py.test for testing a Turbogears2 web application.
Currently, when Nose runs it gathers information from a testing configuration file (test.ini) that holds all the testing variables the application needs. And it seems to do so in an automatic way (I'm simply running nosetests and everyt...
Hi, I'm kinda lost.
I'm writing test cases for a project which still uses the Acegi plugin (not the newer Spring Core Security plugin) and as of now, I've managed to do what this site (http://www.zorched.net/2008/09/01/grails-testing-acegi-security/)
has suggested regarding the detection of which user is currently logged in. However, i...
In my controller I have some methods which return json as well as xml data.
I need to test those actions. For testing the json part I found this reference and it is working fine. Now I am need of testing the actions for the XML part.
Anyone who can help or suggest something are most welcome I've been scratching my head for an hour now bu...
Reading this question has helped me solidify some of the problems I've always had with unit-testing, TDD, et al.
Since coming across the TDD approach to development I knew that it was the right path to follow. Reading various tutorials helped me understand how to make a start, but they have always been very simplistic - not really somet...
Can I launch tests for my Django reusable app without incorporating this app to some project?
My app uses some models, so it is necessary to provide (TEST_)DATABASE_* settings. Where to store them and how to launch tests?
For django project I run tests by: manage.py test, when I use django-admin.py I get:
Error: Settings cannot be...
I'm going to need to integrate a Java application that I wrote with a medical device that uses a serial port for communications. This device is rather expensive, and also not so portable.
I'd like to be able to test code wherever I happen to be, but you can only do so much before you need to plug in your serial device and start testing...
There are quite a number of options for Full-Stack testing of Rails applications. Some use real browsers, some are headless, some don't run javascript at all.
Which tools do you use or recommend and why?
List of browser simulators or automators:
Rails built-in support for integration and functional tests (no JS)
Webrat
Webrat::selen...
When I'm attempting to open any of our projects in TFS 2010 with Microsoft Test Manager 2010, I get the error: The required category 'Microsoft.TestCaseCategory' does not exist for project XXXXXXX.
What is the reason for this error, and what steps can I take to resolve it?
Also, is stackoverflow the right forum for this question? I fee...
So here is the situation-- a quote from my boss: "[...] we need to focus on programming. [...] At the end of the day I want to write good software and not get bogged down with testing." This is said after we have had 3 months of a daunting list of bugs and recently designating a non-programmer to write web tests with Selenium framework...
I have created a user interface using GTK+ and C. I was wondering if there are any testing frameworks for testing this interface, similar to how selenium (a software testing framework for web applications) can be used for testing the interfaces of web applications. I want to create some regression tests for my GTK+ interface. Thanks!
...
Hi,
I'm using GWT RPC to connect to server side. On server side I've to connect to MySQL database, from which I get data I need. My question is which is best practice when I want to test my application, because I haven't deployed it yet on Tomcat app server, and it seems I cant test it, if it is not deployed. When I test it in developme...
In a fresh R3 app, I seem to be unable to run any tests (there are 2, the canonical functional test for "/" and another unit test I created)
See this output:
rails_app$ rake test --trace
(in /Users/jan/portfolio/rails_app)
** Invoke test (first_time, not_needed)
rails_app$
What could be wrong? What is the meaning of first_time, not_n...
What are different points to note down while testing android applications? What are different techniques or test cases used for android?
...
I faced with interesting problem while using mocking support in Groovy to test collaboration with dependency. We have two classes (example):
class Dependency {
void method() {
throw new OperationNotSupportedException()
}
}
class Dependent {
Dependency dependency
void useDependency() {
dependency.with ...
Between the following test frameworks which one is the easiest to use and learn?
scalacheck
ScalaTest
specs
I'm using 2.8.0 and sbt for building, so working nicely with it is a factor. I'm not necessarily looking at the most full featured. As best I can tell my criteria are in order:
allow unit testing for Scala code
painless set-u...
I have been performing unit tests on my iOS4.1 iPhone app successfully. I am currently trying to add some tests for a portion of my logic that uses APIs from the MapKit framework.
As soon as I add the MapKit framework to my LogicTest target, the target will not compile -- the compile process just hangs. This occurs even if I have no tes...
Everyone knows about some relevant statistics about positive impact of using test/behavior driven development in real projects. I know statistics can be very misleading, but it would be nice to see something like:
"when started using TDD, we rose productivity and reduced bugs introduction by XY %...".
It would be really nice to sh...
Hi to all,
I have a web application deployed on a tomcat server.
I upload files via a POST method and then the uploaded
files are transcoded to another type (e.g. 3gp to flv).
How can I test, how many concurrent uploads and transcodings
my web application can handle?
Any thoughts or any examples?
Don't know a thing about stress or load ...
Background:
Test drivers for rails that can test AJAX functionality (e.g. Selenium, EnvJS, akephalos etc) don't support transactional fixtures. I'm using Machinist and looking to do Capybara testing so I need some way to clear the test database after each test. Truncating every table in the test database is really slow (this is what the ...