Omgili - forum search, search forums  
  

Discussions about test thread

Displaying 1 - 10 out of 365,962 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
We have created a common threading framework to manage how we want to use threads in our applications. Are there any frameworks out there like gtest or cppunit that solely focus on unit testing threads, thread pools, thread queues, and such? Right now...
Started by on , 3 posts by 3 people.  
Your own with one of the many unit test frameworks out there, but it would be hard to make it robust it trivial to unit test your library..
I want a thread in a Java program to loop until all other threads die, and then end the loop. How can I know when my loop thread is the only thread remaining? In my situation, the loop thread will have no reference to any other threads, so I don't think...
Started by on , 5 posts by 5 people.  
Set your loop thread to daemon mode setDaemon(true.
Would this not be a situation where you would consider the Thread Pool Pattern ? If not, would or might not help, depending on your use-case.
My strategy for threading issues in a Swing Java app is to divide methods in three types: methods that should be accessed by the GUI thread. These methods should never block and may call swing methods. Not thread-safe. methods that should be accessed ...
Started by on , 5 posts by 5 people.  
Dispatch Thread * <p> * Add this annotation to methods that perform potentially blocking operations be accessed by the * Event Dispatch Thread * <p> * Add this annotation to methods that call (swing that should be thread....
Ask your Facebook Friends
I'm setting up CI at present using Thoughtworks Studios' Cruise, Gallio to run xunit.net fact/tests, and ncover 2 to do code-coverage. I noticed that running the code-coverage pegs one of the four CPUs that our build-agent server has, and wondered whether...
Started by on , 5 posts by 5 people.  
I'd imagine it wouldn't be too much more work to have a thread pool to spawn tests/2008/05/09/ConcurrentUnitTestingWithXUnitNet....
In NUnit you can pass a /thread parameter which spawns test execution in a different thread.
Be difficult though.
I have a Java service which now will execute in a batch mode. Multi threaded support is added to the service so for every batch request a thread pool will be dedicated to execute the batch. The question is how do I test this? I have functional tests that...
Started by on , 4 posts by 4 people.  
For example: @Test....
By substituting the body of the threads with test code you should allows you to annotate your test methods and cause them to be executed in n threads concurrently.
Of the thread pool in isolation.
Thread test test test test test test test
Started by on , 11 posts by 9 people.  
I smell a lock coming testing....
Come back in three months and maybe of anything witty enough to post in this thread hum...
Reply test test test test test test test test test D- You fail.
Hot-on-the-heels of of my previous unit testing related question, here's another toughie: I have thus far avoided the nightmare that is testing multi-threaded code since it just seems like too much of a minefield. I'd like to ask how people have gone ...
Started by on , 17 posts by 17 people.  
That has so far worked great for me, and I use the same approach for the thread pool of the concurrency pattern used: Unit tests for classes that operate in a single thread and aren't thread aware -- easy,....
The test.
Executive Summary: When assertion errors are thrown in the threads, the unit test doesn't die. This makes sense, since one thread shouldn't be allowed to crash another thread. The question is how do I either 1) make the whole test fail when the first ...
Started by on , 6 posts by 6 people.  
If you are just trying just test this code....
To test that the code inside each thread is doing what it is supposed to test, may be you shouldHi, Concurrency is one of those things that are very difficult to unit test.
I've written a class and many unit test, but I did not make it thread safe. Now, I want to make the class thread safe, but to prove it and use TDD, I want to write some failing unit tests before I start refactoring. Any good way to do this? My first thought...
Started by on , 8 posts by 8 people.  
Using both tools is easy....
It won't find all of the race for deadlocks in your code (via unit test) and I think Chess checks for race conditions as well.
Condition in runtime (not during tests) that called thread-race-test .
Do you have any advices how to test a multithreaded application? I know, threading errors are very difficult to catch and they may occur at anytime - or not at all. Tests are difficult and the results are never for sure. Certainly it is best to carefully...
Started by on , 5 posts by 5 people.  
Generally use some good tools to test ....
Create a test document or spreadsheet, and using your people from the hall and do a 'hallway usability test' (Joel on Software said that I think?).
Counts, etc and make sure they make sense.
Page: 1   2   3   4   5   6   7   8   9   10  

Related Message Boards & Forums

  • Stack Overflow
  • Games - City of Heroes
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost