W4: Testing

Android App

Our Android App features several Classes for equations and other complex algorithms. To Debug those we’ve chosen to use Unit4 on our testcases. See our code coverage below:

test coverage

Website

We use karma tests for our website, because it is written in Angular. Below you can see the code coverage of our tests.

Angular-Test-Coverage

We are testing our code after every push in our gitlab-ci pipeline. You can see a snippet of the testing done in a docker container

Angular Karma test in Docker

For viewing our test code, visit the project page at https://react.it.dh-karlsruhe.de/gitlab/react/website/tree/master/src/app.The test codes are in the typescript files ending with spec.ts.

Resource Server

To Test the Resource Server we decide to use J-Unit4 with MockUps by the dependency Spring-Boot-Test. The tests runs with the Maven Build tool in a Docker Container over a Gitlab Pipeline

test.PNG

The Code Coverage by this tests will be displayed below:coverage.PNG

Design a site like this with WordPress.com
Get started