Questions tagged [tests]
The tests tag has no usage guidance.
21
questions
0
votes
4
answers
167
views
Should i write tests if it takes more time than testing manually?
Im making a website and trying to learn Test Driven Development (TDD)
I'm doing one of CS50 projects, were we need to make a website to trade stocks. I decided to use this oportunity to learn TDD. I ...
1
vote
3
answers
251
views
What are the criterion to understand if someone used TDD?
I'm approaching the TDD methodology for software development, reading guides and writing simple applications, because a client of my company wants a software and asked to develop it using TDD ...
-5
votes
2
answers
234
views
What relates to unit testing as requirements relate to system testing?
In system testing, a software system is tested against requirements.
In unit testing, a software module is tested against the internal requirements for this module which depend on the specific ...
3
votes
4
answers
496
views
Should outgoing messages from object under test be tested?
I was watching a recording of a conference by Sandi Metz on testing. One of the things that I struggled with was that she said not to test outputs of the object under test (her example was query ...
0
votes
2
answers
112
views
How to tackle long process system tests?
My service has long running processes.
For example - user can signup, but if email not verified after 7 days, we send a reminder email.
I need my system test to cover this scenario as well.
...
1
vote
1
answer
2k
views
Should integration test coverage allow for lower unit test code coverage? [duplicate]
If a project has 30% coverage by unit tests, 40% due to integration tests, is it fair to say the total is 70% as so moderately well covered?
Or are unit tests only ever used as the standard test ...
2
votes
3
answers
816
views
designing classes for testability
I am writing a library for OVH api calls, and I am wondering how to make it friendly for unit tests.
I have a class APIClient. The constructor of this class initializes the object with all parameters, ...
0
votes
2
answers
374
views
Guideline/best practices on what traits/categories to give to tests
Is there any standard on what traits/categories to give to tests?
Here is an example:
using Xuint;
public class XUnitTest1
{
[Fact]
[Trait("Category", "CI")]
public void TestMethodX1() {...
6
votes
1
answer
11k
views
Can I have more than one describe per test spec?
I started to writing tests a few time ago and faced a non-mature question: can I have more than one describe per unit test file?
If so, in what circumstances this will happen?
Because so far, I'm ...
5
votes
2
answers
4k
views
Multiple entrance points in project
My question is related to C++ but it comes from Java actually.
When I was programming Java I had multiple classes, which were derived from a base "Test" class. Their purpose was to test things - run ...
2
votes
4
answers
802
views
What's the point of Continuous Integration services like Travis CI?
As far as I can tell, services like Travis CI and CircleCI take your project and run its test suite whenever you push a new change to your repository.
Assuming that it's also possible to either ...
14
votes
8
answers
2k
views
How should I validate code when there is no one to do code review? [duplicate]
I'm used to working in a large development environment where code is peer reviewed and tested by the client, who is usually an IT person themselves. I am now working at a very small company where I'm ...
14
votes
8
answers
553
views
Alternative to "Passing/Broken build" indicator?
When having a continuous integration executing the tests at each commit, a common best practice is to have all the tests passing at all times (aka "do not break the build").
I find some problems with ...
3
votes
2
answers
2k
views
What kind of test should be given to Java EE programmers? [closed]
I'm looking to hire developers and I wish to test them. I have been especially told by my boss that we should have programmers on board that can consult on banking sector software and I'm to come up ...
5
votes
2
answers
975
views
Product Owner and automated tests
One of the claims of BDD-style development is that it bridges the gap between Product Owner and developers: the Product Owner writes a story, which can be converted in an equivalent automated test "...
4
votes
2
answers
128
views
Managing manual test protocols [closed]
We have to organize a very long list of manually running tests. Currently we use Word documents, print them out check them off etc. Ugh-ly but works, with problems.
Problems with the current solution
...
1
vote
3
answers
624
views
Interviewing a Senior Dev when they will be far more competent at programming than the interviewer [duplicate]
Possible Duplicate:
How do you interview someone with more experience than you?
Next week i'll be interviewing some contractors for a 6-month senior Dev position on a project. I'm an OK ...
8
votes
4
answers
8k
views
What are some best practices for populating and using a test database?
So, I'm developing some database-driven RESTful Java web services, using Hibernate and MySQL. For testing purposes, I'm using the H2 in-memory database. H2 is nice and fast, so this has worked out ...
5
votes
4
answers
237
views
Concurrent development w/o central design?
I've got a team of developers which are trying to write specifications/tests concurrently for different (and sometimes adjacent) parts of the system.
Typically, the person writing the specification/...
15
votes
6
answers
5k
views
Why don't xUnit frameworks allow tests to run in parallel?
Do you know of any xUnit framework that allows to run tests in parallel, to make use of multiple cores in today's machine?
If none (or so few) of them does it, maybe there is a reason... Is it that ...
3
votes
5
answers
3k
views
Do you test your SQL/HQL/Criteria?
Do you test your SQL or SQL generated by your database framework?
There are frameworks like DbUnit that allow you to create real in-memory database and execute real SQL. But its very hard to use(not ...