Versions Compared

Key

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

...

  1. Code level - unit test: Program code must be tested alongside the code. Such a test checks if the code does what it is supposed to do with a little test. The tests on code level are the unit tests. For each relevant function, a unit test is defined within the C# solution. A relevant function is a function that actually performs part of the calculation, validation or I/O of the core. Properties and purely administrational functions do not have unit tests.

    These tests are considered to be ok when the unit tests pass and when the code coverage of those tests is more than 75%. For these tests the following information must be provided in the Test Report:

     

    • Number of unit tests

    • Code coverage of the unit tests (not done)

    • Specify if all unit tests succeed or not 

  2. Functional level - integration test: The tests on functional level are the integration tests. These types of tests combine multiple functions in D-Flow Slide to prove that high level functionality works. For this, a unit test is defined within the C# solution for each method with high level functionality. These tests are considered to be ok when the unit tests pass. The following information must be provided in the Test Report:
    • Number of integration tests (= Benchmarks)
    • Code coverage of the unit tests (not done)
    • Specify if all integration tests succeed or not

...

  • Deltares.FlowSlide.Data.Tests : 291 tests inclusive benchmarks (test the calculation)
  • Deltares.FlowSlide.Forms.Tests : 40 tests (test the UI of D-Flow Slide)

Code Coverage

Test coverage in the test plan states what requirements will be verified during what stages of the product life. Therefore an extensive range of benchmark checks have been developed to check the correct functioning of each tool. During product development these checks are run on a regular basis (TeamCity) to verify this product.

 

The Test coverage for all the benchmarks are (including the advanced models, which have not be tested exhaustive) 

...

Image Removed

Test coverage D-Flow Slide (2015-12-01)

 

 

...

Benchmarks - Integration tests

...