Skip to content

Conversation

@MaximilianSoerenPollak
Copy link
Contributor

This will add additional documentation for developers about the Source Code Linker and it's capabilities.

@github-actions
Copy link

⚠️ Docs-as-Code version mismatch detected
Please check the CI build logs for details and align the documentation version with the Bazel dependency.

@@ -0,0 +1,125 @@
..
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just call it code tracability tooling as geenral tools means nothing.

@github-actions
Copy link

The created documentation from the pull request is available at: docu-html

"""Your function that implements the requirement partiall or fully"""
...

The parser will look through most files but not those that fulfil any of these properties
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hard to understand sentence

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-wrote it.

The implementation here differs based on your source code language though.
So it is best if you read up in the language you want to develop in how to do this.

In rough terms the data flow looks as follows.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In rough terms the data flow looks as follows:


You can now also do statistics on your tests. `Docs as Code Test Statistics examples <https://eclipse-score.github.io/docs-as-code/main/internals/requirements/test_overview.html>`_


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs betetr explanation and not just "in cloud" one. @PiotrKorkus maybe some comments ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this comment on the wrong line? I can't quiet follow you here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, maybe you can provide codeblock with ..needtable & ..needpie examples? Button edit on github still doesn't work, so it can be difficult to others to quickly find the code.
Also I would appreciate information if cross-repo linking and reporting is possible

`Python implementation [NOT LINKED YET]`
`RUST Implementation [NOT LINKED YET]`
`CPP Implementation [NOT LINKED YET]`

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this ? Isn;t this enought to just link to doc-as-code and thats it ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How you do the testing properties in each is different, so we most likely should describe that quickly with an example?
As in 'docs-as-code' only the python one is described (if even)

Traceability Tooling
####################

This document describes tools or some functionality of them, that can be used regardless of source code language.These tools are also provided by S-CORE projects, like Docs-As-Code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"This document describes tools or some functionality of them" The whole description in this doc shall be precise imho as this is what will be used.

Link Requirements to Tests
**************************

There is a tool that has the ability to link requirements to your tests as well as provide virtual tests needs in order to make statistics etc. possible to be rendered.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add link to tool

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sentence is a bit weird :D, I re-word it and add the link to the tool.

In rough terms the data flow looks as follows.

Your testing framework produces XML files with pre-defined properties.
These XML files get read in and parsed. The test needs get build from the parsed data and linked to the requirements mentioned.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These XML files are loaded and parsed. The test needs to get build details from the parsed data and link it to the requirements mentioned. ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds nicer. Will adopt this wording.


You can now also do statistics on your tests. `Docs as Code Test Statistics examples <https://eclipse-score.github.io/docs-as-code/main/internals/requirements/test_overview.html>`_


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, maybe you can provide codeblock with ..needtable & ..needpie examples? Button edit on github still doesn't work, so it can be difficult to others to quickly find the code.
Also I would appreciate information if cross-repo linking and reporting is possible

"""Your function that implements the requirement partiall or fully"""
...

An rendered example of a need where this is implemented can be seen in `Rendered Example <https://eclipse-score.github.io/docs-as-code/main/internals/requirements/requirements.html#tool_req__docs_common_attr_id>`_
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A rendered example

Incooperating PR comments
Adding screenshot of rendered example instead of linking to it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants