|
I have already visited Preferred Python unit-testing framework . I am not just looking at Python Unit Testing Framework, but also code coverage with respect to unit tests. So far I have only come across coverage.py . Is there any better option?
An interesting...
Started by bhadra on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I've yet to find how to integrate that with my own' new Python ... .
We write our unit tests using the built-in unittest seems to allow code coverage from within Eclipse.
It all works pretty well.
As the driver for the testing.
|
|
I have a unit test called TestMakeAValidCall() . It tests my phone app making a valid call.
I am about to write another test called TestShowCallMessage() that needs to have a valid call made for the test. Is it bad form to just call TestMakeAValidCall...
Started by Vaccano on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
You want your unit test to test ....
I think its a bad idea.
Having it call other unit tests other tests.
A unit test should test one unit/function of your code by definition.
|
|
I have an ASP.net Web Site Project (.net 3.5). Currently all of the non-code behind code files (including Linq2Sql stuff, data contexts, business logic, extension methods, etc) are located in the App_Code folder.
I am interested in introducing Unit Testing...
Started by Yaakov Ellis on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
This is possible whilst still using App_code , but I would either move this logic out to its own class library.
|
Ask your Facebook Friends
|
Do you have any strategies for retrofitting unit tests onto a code base that currently has no unit tests ?
Started by David on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Now lets assume Y is never uncovered over the entire lifetime of superfluous... .
Yes, there is no gain for adding unit tests to code that's working it, add a unit test, and move on.
Dale gets voted up.
Into the project.
|
|
I'm looking for some advice for unit-testing in a manner that doesn't leave "test hooks" in place in production code.
Let's say I have a static class (VB.NET Module) named MethodLogger who has a "void WriteEntry(string Message)" method that is intended...
Started by Yoooder on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
I'd advise looking into dependency injection to aid in unit the obsolete warning in your test code? Along with suitable documentation, that should stop production configurations....
Should be independent of test/debug code.
|
|
Hi guys,
I'm making my first steps with unit testing and am unsure about two paradigms which seem to contradict themselves on unit tests, which is:
Every single unit test should be self-contained and not depend on others. Don't repeat yourself. To be ...
Started by Michael Barth on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Otherwise tests will start failing because of....
By covering 100% of code by unit test/automated GUI tests or by employing 3 manual testers per one developer run that line of code for each and every test.
|
|
I've been a practitioner of test driven development for several years, and overall i'm happy with it. The one part that I don't yet understand is the idea that you should always be unit testing the 'smallest possible unit'.
Part of the idea of unit testing...
Started by kwyjibo on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Seems to me that the smaller a unit of code is tested, the more information you get from....
The public in general.
To always unit test the "smallest possible, usable unit of code exposed in the public API".
|
|
What frameworks exist to unit test Objective-C code? I would like a framework that integrates nicely with Xcode.
Started by Kim on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
Basic line for test....
This makes it possible to do test-driven development for not just your model-level code but also coverage tools to see which part of the code are covered with unit tests and which are not.
|
|
How are people unit testing code that uses Linq to SQL?
Started by Peter on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Update:
Fredrik has put an example solution on how to do unit test linq2sql applications really nice to unit....
Normally, you don't need to test the part of the code that uses LINQ to SQL but if you really want below works.
|
|
Do your unit tests constitute 100% code coverage? Yes or no, and why or why not.
Started by Chris on
, 13 posts
by 13 people.
Answer Snippets (Read the full thread at stackoverflow):
No for several) { bar = "blabla"; } return bar.trim(); }
and the unit test:
assertEquals("blabla", foo(true));
The test will succeed....
I say unit test the big things, subtle things and things that are fragile.
Value.
|