Skip to content

Commit 97d16c8

Browse files
Added Testing Strategy documentation
1 parent ec1370d commit 97d16c8

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Testing Strategy
2+
-> currently the LCE and jQA Plugin are tested separately via suites of integration tests
3+
4+
**LCE Integration Tests:**
5+
- located under `./typescript/test`
6+
- they test the extraction of individual [[Concepts|concepts]] by running the complete extraction process on different sample projects and validating the resulting `LCEConcept` objects
7+
- to simply the test code a number of utility methods are defined under `./typescript/test/utils`
8+
9+
**jQA Plugin Integration Tests:**
10+
- located under `./java/src/test`
11+
- they test the generation of graph structures based on sample JSON reports generated by the LCE
12+
- for changes in the report data structures the sample reports have to be re-generated by running `./java/src/test/resources/regenerate-test-data.sh`

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The tool currently only supports projects using ECMAScript modules.
4646
This plugin is based on the [LCE Architecture](https://jqassistant-plugin.github.io/jqassistant-lce-docs/).
4747
- [[Codebase Layout]]
4848
- [[Extensions]]
49-
- *TODO: Testing Strategy*
49+
- [[Testing Strategy]]
5050

5151
**Base LCE Architecture Implementation:**
5252
- [[Concepts]]

docs/usage/Node Relation - Dependencies.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export class B {
7474
- the property `prop` is used once by the method `run` in its assignment statement
7575

7676
The following propagations/aggregations take place:
77+
7778
2. Target propagation:
7879
- the direct dependency to the method is propagated upwards to the class level where it is combined with the existing direct dependency to the class (leading to a combined cardinality of `2`)
7980
- the dependency to the class (with the aggregated cardinality of `2`) is propagated up once more to the module level

0 commit comments

Comments
 (0)