forked from eclipse-sw360/sw360
-
Notifications
You must be signed in to change notification settings - Fork 0
Dev Testing Frameworks
Anupam Ghosh edited this page Jun 28, 2022
·
1 revision
The implementation of complicated rules is not always easy to read. A good way to document and explain the behaviour of rule engines are natural language tests. A frame work we use for that is jgiven. We write the tests using the [dataprovider] (https://github.com/TNG/junit-dataprovider) runner. This is basically a runner that allows to use parametrized tests.
The basic testing frame work is still JUnit4, assertions are made using hamcrest and we mock complicated input classes with mockito.