Suppose you had code like this:
_READERS = None
_WRITERS = None
def Init(num_readers, reader_params, num_writers, writer_params, ...args...):
...logic...
_READERS = new ReaderPool(num_readers, reader_params)
_WRITERS = new WriterPool(num_writers, writer_params)
...more logic...
class Doer:
def __init__(...args...):
...
...
I recently installed a fresh development setup on my laptop and now notice that my instances of spork take several minutes to start up. This is also most likely of the RSpec and Cucumber tests start up times running super slow.
I ran in diagnostic mode with the -d flag and received the output below. Anyone have a clue why this is sudd...
Hi there,
I have the following as my unit test:
void testCreateDealer() {
mockForConstraintsTests(Dealer)
def _dealer= new Dealer( dealerName:"ABC",
Email:"[email protected]",
HeadOffice:"",
isBranch:false)
assertFalse _dealer.val...
Just updated my cucumber gems on my system and have run into an issue with running my tagged cucumber features. The "cucumber" command no longer works on my command line.
-bash: cucumber: command not found
Initial thought was that my $PATH wasn't set up in my bash_login properly. All seems correct here though, i think:
echo $PATH
/op...
I want to extensively test some pieces of C code for memory leaks.
On my machine I have 4 Gb of RAM, so it's very unlikely for a dynamic memory allocation to fail. Still I want to see the comportment of the code if memory allocation fails, and see if the recover mechanism is "strong" enough.
What do you suggest ? How do I emulate an en...
Hello , I have a tdd system , where I use Gallio 3.1 with TestDriven.Net .
I've downloaded the patches for them.
1) I'm getting this stack and the test wouldn't stop -
SRCSRV: cmd /c svn.exe cat "http://mb-unit.googlecode.com/svn/branches/v3.1/src/Gallio/Gallio/Framework/Pattern/PatternTestInstanceState.cs@2360" --non-interactive > "C...
Is it possible to test private methods of a web service, during api testing? If yes, how to differentiate public methods and private methods? I am using the object browser in VSTS to see the list of methods available.
...
Hey,
I'm a developer on nice space MMO using Flash. On new PCs performance is quite good, but some features shouldn't be enabled on older PCs because the framerate drops to shit if we do. Flash wasn't made for this, but hey, pushing boundaries is fun.
An example is fullscreen mode. Of course every user can manually enable it, but "adve...
Hey there!
I'm wondering how to stub/mock a helper method in functional tests?
Thanks!
(And Yes, I already googled & used the search - but couldn't find any working solution, strange!?)
...
Is it possible to conveniently test jQuery selectors on some random web page using some sort of plugin for browser (Firefox)?
It would be nice if it could automatically highlight selected elements.
...
Hi folks,
I'm trying to build a small stress test script to test how quickly a set of requests gets done.
Need to measure speed for 100 requests.
Problem is that I wouldn't know how to implement it, as it would require parallel url requests to be called.
Any ideas?
...
Hi,
I kept only one dedicated PC for testing several DotNet and other applications.
If I install one application along with the prerequisites like dotnet, MSI, DirectX, some drievrs etc.
I cant make it sure that the next application installation is correcly done. Results can be seen when deployed application does not run successfully on...
hi all, as per my question, i am wondering what differences are there when we are performing tests for the client side , as compared to performing tests on the client side?
For example, testing javascript on the client side versus testing server side code?
Best Regards.
...
Hello all,
I've inherited a load of Junit test, but these tests (apart from most not working) are a mixture of actual unit test and integration tests (requiring external systems, db etc).
So I'm trying to think of a way to actually separate them out, so that I can run the unit test nice and quickly and the integration tests after that....
Hi everyone,
I want to write an initial (black box) test cases for one of my university projects. I haven't started coding yet, I'm still in completing the SRS document and i should specify the test cases i'm going to implement after the coding.
The project is web based, and i should follow this template in each test case:
+++++
Test c...
Is there a cucumber command that will print out just the feature info and the scenario names?
I recently began a project and want to print out the cucumber features and scenarios I wrote to describe the scope of the project and get it confirmed with the client.
...
Hello, I was told to create a tool like a Nightly Builder for a JUnit project. It's a client-server project with oracle database.The tests are based on QTP. Also there is a test interface written on C#. The tester can click on the interface to choose which tests to run and get a report from each test. So I have to make this procedure aut...
Suppose you're working on a project and the time/money budget does not allow 100% coverage of all code/paths.
It then follows that some critical subset of your code needs to be tested. Clearly a 'gut-check' approach can be used to test the system, where intuition and manual analysis can produce some sort of test coverage that will be 'o...
I have read through various papers on the 'Balls and Bins' problem and it seems that if a hash function is working right (ie. it is effectively a random distribution) then the following should/must be true if I hash n values into a hash table with n slots (or bins):
Probability that a bin is empty, for large n is 1/e.
Expected number o...
what are some good open source test automation tools to test web applications ?
...