| 1 | import { imgSnapshotTest, renderGraph } from '../../helpers/util.ts'; |
| 2 | |
| 3 | describe('Requirement diagram', () => { |
| 4 | it('sample', () => { |
| 5 | imgSnapshotTest( |
| 6 | ` |
| 7 | requirementDiagram |
| 8 | |
| 9 | requirement test_req { |
| 10 | id: 1 |
| 11 | text: the test text. |
| 12 | risk: high |
| 13 | verifymethod: test |
| 14 | } |
| 15 | |
| 16 | functionalRequirement test_req2 { |
| 17 | id: 1.1 |
| 18 | text: the second test text. |
| 19 | risk: low |
| 20 | verifymethod: inspection |
| 21 | } |
| 22 | |
| 23 | performanceRequirement test_req3 { |
| 24 | id: 1.2 |
| 25 | text: the third test text. |
| 26 | risk: medium |
| 27 | verifymethod: demonstration |
| 28 | } |
| 29 | |
| 30 | element test_entity { |
| 31 | type: simulation |
| 32 | } |
| 33 | |
| 34 | element test_entity2 { |
| 35 | type: word doc |
| 36 | docRef: reqs/test_entity |
| 37 | } |
| 38 | |
| 39 | |
| 40 | test_entity - satisfies -> test_req2 |
| 41 | test_req - traces -> test_req2 |
| 42 | test_req - contains -> test_req3 |
| 43 | test_req <- copies - test_entity2 |
| 44 | `, |
| 45 | {} |
| 46 | ); |
| 47 | }); |
| 48 | }); |
| 49 | |