|
Is it possible for the nose unit testing framework to perform tests during the compilation phase of a module?
In fact, I'd like to test something with the following structure:
x = 123 # [x is used here...] def test_x(): assert (x == 123) del x # Deleted...
Started by EOL on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
At least.
The module "construction" and the test routines need to access a certain variable (which would be deleted are instead kept in memory, just because it is better for the test code to use them.
|
|
What is Unit test, Integration Test, Smoke test, Regression Test and what are the differences between them? And Which tools can I use for each of them?
For example I use JUnit,NUnit for Unit testing and Integration Testing. Are there any Smoke Test,Regression...
Started by mcaaltuntas on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
It should be a stand-alone test....
Flick the switchUnit test : an automatic test to test the internal workings of a class.
A smoke test was that time you first switched on your prototype.
I was an electronic engineer.
|
|
Say suppose 10 developers have taken 6 months to develop some application. As a project manager how much time should I spare in my plans for testing?
6 months of effort includes unit testing. I am specific about functional test and user acceptance test...
Started by Pradeep on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
In terms of the development time:
Project | Complexity | Development Time | Test Time | # DevelopersIs there any ratio or relationship between development time and testing time?
No, there's really, defects....
|
Ask your Facebook Friends
|
Some of my mstest unit tests help detect multi-threading race conditions, and as such they are most useful when run many times in a row, but I only want to do this for specific test runs -- not all the time.
Is there a way to configure mstest (in the ...
Started by Andrew Arnott on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You could assign, however, the multi-threaded test to its own list and call it only when you....
The Test List won't allow you to have multiple entries for the same test.
Consider creating a test to spin off a couple of threads.
|
|
Is there there any way to tell JUnit to run a specific test case multiple times with different data continuously before going on to the next test case?
Started by Giridhar on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I always just make a helper method that ....
Each unit test should do only one test, IMO.
You would be better off having each data set be a separate test case, so that if there is a failure you can tell more quickly which one failed.
|
|
Is it good practice to have a unit test that specifies how long a certain function takes to return a value. I'm unit testing a curl function and want to specify that it needs to time out after 5 seconds. Is this in line with the way unit tests work?
Started by Rich Bradshaw on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
That's why I think your test should be in another set of tests, than the unit-tests is specified....
Typically you should long time.
Example as unit-test is the fact, that it needs long time (5 seconds) to execute.
|
|
Hi, Does anyone use unit tests to verify the time/space complexity of code?
Thanks
Hugo
Started by Rocketmagnet on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
A unit test is mainly a "way" of testing....
Sure you use Unit test for this.
test for time Consuming, you might know how to solve this, but this is a fairly nice way of testingThat's a perfectly good point you bring up.
|
|
Thanks to a library upgrade (easymock 2.2 -> 2.4), we're having tests that have started locking up. I'd like to have a time out on individual tests, all of them. The idea is to identify the locked up tests - we're currently guessing - and fix them....
Started by sblundy on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If the Suite level illegible function....
This default time-out can than be overridden on a per test method basis.
This time-out will be used as default for all test methods.
The suite tag can have the time-out attribute.
|
|
I have a problematic situation with some quite advanced unit tests (using PowerMock for mocking and JUnit 4.5). Without going into too much detail, the first test case of a test class will always succeed, but any following test cases in the same test ...
Started by Ciryon on
, 9 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
It seems that your test cases are dependent, that is: the execution of case-X affects the execution will always call before and after each test case, and are typically used to ensure you begin each test tests depend each other....
|
|
I just looked back through the project that nearly finished recently and found a very serious problem. I spent most of bank time on testing the code, reproducing the different situations "may" cause code errors.
Do you have any idea or experience to share...
Started by Shuoling Liu on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
The Subversion team has developed some pretty good test routines , by automating and integration....
Running the tests shouldn't take much time.
This can legitimately take a long time if you write a thorough test suite).
|