From eb840a5fbdfe4433f88d56b086d80d2560a47450 Mon Sep 17 00:00:00 2001 From: Daniel <daniel@harvey> Date: Fri, 3 May 2019 14:54:39 +0200 Subject: [PATCH] DOC: How-to run tests. --- doc/devel/Development.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 doc/devel/Development.md diff --git a/doc/devel/Development.md b/doc/devel/Development.md new file mode 100644 index 00000000..d0887fcf --- /dev/null +++ b/doc/devel/Development.md @@ -0,0 +1,23 @@ +--- +title: Development +author: Daniel Hornung +... + + +# Developing the CaosDB server # +This file contains information about server development, it is aimed at those +who want to debug, understand or enhance the CaosDB server. + +## Testing ## +Whether developing new features, refacturing code or fixing bugs, the server +code should be thoroughly tested for correct and incorrect behvaiour, on correct +and incorrect input. + +### Writing tests ### +Tests go into `src/test/java/caosdb/`, the files there can serve as examples for +writing tests. + +### Running tests with Maven ### +- Automatic testing can be done with `make test` or, after compilation, `mvn + test`. +- Tests of single modules can be started with `mvn test -Dtest=TextClass` -- GitLab