|
Are the unit test case for JPA worthy? anyway it is just going to access DB, why do we need it?
Answer Snippets (Read the full thread at stackoverflow):
I unit test the business logic where you'll either use to ....
You can use DbUnitI've never done unit tests for JPA entities.
To validate the test and I've never been a fan of creating fake data just to pass a test.
|
|
Hello,
I don't understand how an unit test could possibly benefit. Isn't it sufficient for a tester to test the entire output as a whole rather than doing unit tests?
Thanks.
Started by Josh on
, 16 posts
by 16 people.
Answer Snippets (Read the full thread at stackoverflow):
A bug found during....
Here's my short answer, however:
Test Driven Development (or TDD in the whole application breaks, meaning just looking at the total output/outcome, how do you know where they are to fix.
Something of such enormous breadth.
|
|
If you're writing a library, or an app, where do the unit test files go?
It's nice to separate the test files from the main app code, but it's awkward to put them into a "tests" subdirectory inside of the app root directory, because it makes it harder...
Started by Readonly on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
Python setup.py develop" you can just use "python setup.py test" or "python setup.py test -s foo from anywhere) in my test runner script (which does some other stuff as well) before running all test/ appfileTest.py....
|
Ask your Facebook Friends
|
I am a big fan of agile software development which include code-reviews,testing extensively. But my question who should be ACTUALLY TESTING the code. Is it the developer, who wrote it from scratch and who by the way writes test cases(just like me) for...
Started by Maddy on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
In the functionality and the usability.testing is not just about test cases,
I would agree and appreciate KenderHow about both?
You want to have as many different test stages as possible, as each is likely (and often requirements....
|
|
I have a Visual Studio 2005 C++ project, it is a console application.
I want to start getting bits of the code under a test harness but I've run into some issues that I don't know how to best handle.
I don't want most of my testing code to end up in the...
Started by thelsdj on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Another option (though it's rather....
And Test) and have your test code in separate files which are marked as "Excluded From Build" under an #ifdef or have a stub version of the test runner that's included in non-Test builds.
|
|
When unit testing, it is always hard to know how low down to the framework you go.
If we have a class that directly depends on the .NET Framework, i.e. the System.IO.File class, then we cant really test that in isolation.
Sure we could wrap it and inject...
Started by David Kiff on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
This is why when testing you aim to have your tests....
Do you want to test System.IO ? If not, why not to use mocking you can't test everything in an application when unit testing.
Of the people releasing the framework.
|
|
A number of developers are designing their applications using Test Driven Development (TDD) but I would like to know at which stage should I incorporate TDD into my projects? Should I first design my classes, do some unit tests and determine what methods...
Started by Draco on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
Please look at
http://en.wikipedia.org/wiki/Test-driven....
Generally if something is easy to test, it will be easy to use.
The point of it being test driven is that the tests drive the design as well as the implementation it.
|
|
I have a Django app that requires a settings attribute in the form of:
RELATED_MODELS = ('appname1.modelname1.attribute1', 'appname1.modelname2.attribute2', 'appname2.modelname3.attribute3', ...)
Then hooks their post_save signal to update some other ...
Started by muhuk on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You are going to test, in this file just define testing models, below put your testing code (doctest for tests (it exists in someapp/tests.py and I can test it just with: ./manage.py test....
|
|
This might be an interesting question. I need to test that if I can successfully upload and fetch the PDF file. This works for the text based files but I just wanted to check for PDF. For this unit test to run I need a PDF file. There are couple of options...
Started by azamsharp on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I think it's better to deal with the "real" objects help only if handling... .
And do not try to create a valid pdf file just in order to test if you have read a file is just one more point that could fail.
From your test unit.
|
|
I'm trying to unit test in a personal PHP project like a good little programmer, and I'd like to do it correctly. From what I hear what you're supposed to test is just the public interface of a method, but I was wondering if that would still apply to ...
Started by ryeguy on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Then you can test those easily enough once and know they work so you....
You (getUserByUsername, deletePasswordByUserID, addPasswordByUserId, etc.
But I would instead test these side-effects by doing separate queries against the database.
|