Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Projects of the tests are organized in the same way as projects of the sources (in most cases), see above listing.
  • Tests should never write their output data into test-data/ directory. That directory is used for input data files used the tests. Instead they should copy required data into the test output directory (usually bin/Debug or bin/Release, it is very easy to do using FileUtils.Copy() method).
  • Wiki Markup
    Make sure that output files from the previous test run are deleted somethere in test \[DS10:SetUp\].

Where can I find data files which can be used in data access or integration tests?

All data files which are used in the data access or integration tests must be located in the test-data/ directory. Within the test code this directory can be accessed using TestDataPath.Path variable which is available in DelftTools.TestUtils project.

Name the

...

class xxxTest.*

Why?
To make it easy to find the tests for a class.

...

Wiki Markup
Make sure that you put \[DS10:Category(TestCategory.<name of the category>)\] attribute above your test if it is not a unit test. This is *very important* since it makes sure that all unit tests run very fast (3000 tests in <1 min).

...