testing

How can I distinguish between "run all tests" and "run just this test"?

I have tests which run very slow, say a test which exports a large database to test the exporting code for memory leaks. I'd like to have these tests in my usual test suite but they should be ignored unless one of these conditions is fulfilled: The test is running on a CI server The user has selected this test in the IDE and runs it ...

TDD/BDD framework for use with Django?

I'm trying to decide which approach to take to testing a Django app I'm writing. I've seen Cucumber and that put me onto lettuce (URL is lettuce.it) and pycurracy. I like the look of these frameworks since hopefully non-technical people will be able to write definitions. I want to be able to: run functional tests integrated with Djang...

How to Intentionally Create a Long-Running MySQL Query

I know this is an odd question to ask, but I'd like to find out if there is a MySQL query I can create without already having millions of rows in my database that will consume resources and run for a long time. My ultimate goal is to test my application in cases of resource contention and make sure that my methods for handling failure (...

What documentation (, links and advices) could you offer me to create a testing library ?

Hi everyone, I'm thinking of designing my own Test library (framework) ->in c++ I am wondering if some of you have already designed there own (and what good advices, documentation they could offer me), decided to not do that (and why), What critics (and argue) you have against differents existing testing frameworks. I want to no more a...

Can JUnit simulate OutOfMemoryErrors?

I have a method which tries to call an in-memory image converter, and if that fails, then tries to do the image conversion on disk. (The in-memory image converter will try to allocate a second copy of the image, so if the original is very large, we might not have sufficient memory for it.) public BufferedImage convert(BufferedImage img,...

obfuscated way to get "0" in a tcl function, cross platform?

I haven't used tcl before and just need to do one trick, I can do it trivially in something like bash but I need it to work cross-platform (e.g. tcl in cygwin on windows). Can someone suggest a short (5-10) obfuscated function that just returns 0 after taking two string args? It just can't do something like run shell commands that won...

How to use Benerator to generate random paragraph of text?

I am using Benerator to generate test data. I must be missing something very obvious, because I cannot figure out how to generate a random paragraph of data. I want to be able to generate a paragraph with a random number of words. Please share your <generate> section if you have an example of how to do this. ...

Encrypted email test data set

I'm looking for a set of emails encrypted (and signed) by a variety of email clients in order to test a mail client. A downloadable mbox file along with test gpg keys would be ideal for this. There seem to be a variety of ways that emails are encrypted (and signed), so getting all of them to work is difficult. And then you find another ...

How can i make windmill to output test report to html or image or some else file ?

Hi ! Windmill is a wonderful framework, but i don't know how to get test reports in some separate file, for example html. I'm new in python, so i can't find out where and what to type to redirect output in file or do some else to get nice report-file. Please, tell me how to do this. ...

Unit Testing and External Resources

Hi all, I'm kind of new to unit testing, but I've recently seen how it can be quite useful. I've seen that most unit tests are self running. In fact most unit testing frameworks provide a way of running several tests at once (such as unit testing a whole system). I wonder though; How do you deal with external resources in self running u...

Open Source Project

I am looking for an open source project with size about 2000-4000 line which is still under development in order to contibute to it (not neccessary officially)... I mainly want to write its testing suite... I have found librarys such as Atan So any other ideas?? Thanks ...

Looking for help testing an app

Hey everyone, I don't know if this is kosher, but I wanted to see if anyone would want to test an app I built. I don't want to release an app to the market without getting out all the bugs I can, but I'm a lone developer trying to build apps on the side in my free time. I don't know many people with Droids, so I'm trying to reach out ...

Linux: packets reordering simulation

I would like to simulate packets reordering for UDP packets on Linux to measure the performance and fault tolerance of my application. Is there a simple way to do this? ...

What's the best way to test sending/receiving MMS messages with Android?

I'm writing an app that stores secret (encrypted+hidden using steg) information in MMS messages. Obviously I need a way to test this, in particular, sending and receiving MMS messages. I have one Android phone, a Nexus One. I know that MMS's cannot be sent between emulator instances, but other than using up loads of MMS credit, is there ...

getAllTests and getTestSuite in android.test.InstrumentationTestRunner

I've created a test runner extending android.test.InstrumentationTestRunner. I'm looking for a way to define the set of tests to get executed based on a set of configurations. I thought I may be able to override the below methods to return my custom test suite, however, these are not getting called! Just wondering whats the use of these...

Can I use smart matching, ~~, in Test::More's cmp_ok?

[start EDIT] Yes, you can. See Michael Carman answer. The initial question title "Is it possible to use a test like Test::More::cmp_ok but that accepts '~~' (smart match operator) with not a scalar at the 'expected' argument?" was idiotic and with the help of Brian d Foy it has become the current one. You can skip the rest of the que...

How can I prevent Perl from using a module, for testing purposes?

I am developing a suite of Perl scripts and modules that then get deployed on different machines and systems round our company. Some facilities are dependent on a particular module which may or may not be installed on different machines. I have used 'eval' to detect whether or not this module is available. I've just had a fault report...

Recommended Development practices for working with Siebel CRM?

I may be working with Siebel CRM soon, and I'm looking for advice on using modern development practices and enterprise best practices. Specifically I'd like advice on the following areas: How should we set up version control (specifically with Subversion)? What kind of structure should our repository have? How should we handle branc...

Testing RESTful services which is better?

We have bunch of WebServices to test and am looking for automating them which scripting is better and easy way( with SSL support) 1) Groovy - HTTP builder 2) 2)Perl - Which module to use ? 3) Python -urllib ? 4) SOAPUI - I'm already using this for SOAP/HTTP services and happy with this, however, I didn't get WADL file to...

how to set value of request.user_client

Hi in my tests i have get "/" and inside controller I have action that depends on browser When I run my test it fails because request.user_client is nil What can I do to fix this problem ? ...