Skip to content

Test Practices

Markus Schneider edited this page Mar 5, 2014 · 13 revisions

This page lines out agreed practices for dealing with Unit / Integration practices in deegree.

Status: Draft (needs to be discussed)

Unit Tests

  • Unit Tests must be self-contained: They are not allowed to access external systems (e.g. databases, HTTP servers, etc.)
  • Unit Tests must not require an Internet connection!
  • Unit Tests should not produce any console output

Found the following issues when building 3.3.7 without network connection

[INFO] Building deegree-core-base 3.3.7
Tests run: 19, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.804 sec <<< FAILURE!
[INFO] Building deegree-protocol-wms 3.3.7
Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.244 sec <<< FAILURE!
Tests run: 22, Failures: 0, Errors: 20, Skipped: 1, Time elapsed: 0.041 sec <<< FAILURE!
[INFO] Building deegree-tilestore-remotewms 3.3.7
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.35 sec <<< FAILURE!

I suggest to solve these failures by removing the external dependencies or mocking them.

Integration Tests

Clone this wiki locally