DocuMesh / conception

General conceptual work.
Apache License 2.0
0 stars 0 forks source link

Generic Entrypoint abstraction #1

Open BeWut opened 5 years ago

BeWut commented 5 years ago

Introduction

Technical documentations usually suffer from accessibility issues. Let's imagine you recently have been added to a new team or you have just switched your job and need to get familiar with the existing software. In this cases it can be quite challenging to adept to the software as you usually lack knowledge about:

The result being that in case of a bug or change request for an existing feature you will need a lot of time for analysis of the code and you need to make assumptions about the intentions behind the code.

Precondition

A strong focus on behaviour driven tests is necessary.

Solution

Let's assume the project is mainly tested with behaviour driven tests and these tests relate to project requirements. First we need to execute every test and accumulate every traversed line of code. The traversed lines of code and the corresponding classes need to be saved in relation to the executed test afterwards.

The generated requirement-test-class-code model can than be used to access the code from different entrypoints. I.e: