大约有 40,000 项符合查询结果(耗时:0.0359秒) [XML]
Prevent unit tests but allow integration tests in Maven
I've a Maven build in which I use the SureFire plugin to run some unit tests, and the FailSafe plugin to run some integration tests. I would like a way to run just the FailSafe plugin's tests.
...
What is the purpose of mock objects?
I am new to unit testing, and I continously hear the words 'mock objects' thrown around a lot. In layman's terms, can someone explain what mock objects are, and what they are typically used for when writing unit tests?
...
How to load db:seed data into test database automatically?
..."
# or
Rails.application.load_seed
Where to place that depends on what testing framework you are using and whether you want it to be loaded before every test or just once at the beginning. You could put it in a setup call or in a test_helper.rb file.
...
Disadvantages of Test Driven Development? [closed]
What do I lose by adopting test driven design?
31 Answers
31
...
CMake: Project structure with unit tests
...ture my project to include the production sources (in src subfolder) and tests (in test subfolder). I am using CMake to build this. As a minimal example I have the following files:
...
Maven - How to compile tests without running them ?
Is there a way in Maven to compile the tests without running them ? I want to use the IDE to run specific tests and not all of them.
...
JUnit tests pass in Eclipse but fail in Maven Surefire
I have written some JUnit tests using JUnit 4 and spring-test libraries. When I run the tests inside Eclipse then run fine and pass. But when I run them using Maven (during the build process), they fail giving a spring related error. I am not sure what is causing the problem, JUnit, Surefire or Spri...
Running a specific test case in Django when your app has a tests directory
The Django documentation ( http://docs.djangoproject.com/en/1.3/topics/testing/#running-tests ) says that you can run individual test cases by specifying them:
...
Can a unit test project load the target application's app.config file?
I am unit testing a .NET application (.exe) that uses an app.config file to load configuration properties. The unit test application itself does not have an app.config file.
...
What's the difference between unit, functional, acceptance, and integration tests? [closed]
...at is the difference between unit, functional, acceptance, and integration testing (and any other types of tests that I failed to mention)?
...