-
Notifications
You must be signed in to change notification settings - Fork 14
Show requirements statistics and test results in documentation #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4bf06a6
6a2a772
5ad7de9
2f1334c
3559953
b739769
4bbe788
e442a4e
b45019b
682e49b
9752e64
80519a1
986255c
f9a853b
46672a3
d17575e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,15 +16,15 @@ module( | |
| ) | ||
|
|
||
| # Bazel global rules | ||
| bazel_dep(name = "rules_python", version = "1.4.1") | ||
| bazel_dep(name = "rules_python", version = "1.8.3") | ||
| bazel_dep(name = "rules_rust", version = "0.61.0") | ||
| bazel_dep(name = "rules_cc", version = "0.2.14") | ||
| bazel_dep(name = "aspect_rules_lint", version = "1.5.3") | ||
| bazel_dep(name = "rules_cc", version = "0.2.16") | ||
| bazel_dep(name = "aspect_rules_lint", version = "2.0.0") | ||
| bazel_dep(name = "buildifier_prebuilt", version = "8.2.0.2") | ||
| bazel_dep(name = "platforms", version = "1.0.0") | ||
| bazel_dep(name = "flatbuffers", version = "25.9.23") | ||
| bazel_dep(name = "download_utils", version = "1.0.1") | ||
| bazel_dep(name = "googletest", version = "1.17.0.bcr.1") | ||
| bazel_dep(name = "download_utils", version = "1.2.2") | ||
| bazel_dep(name = "googletest", version = "1.17.0.bcr.2") | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reason to not upgrade further?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't upgrade
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bumped versions. Also updated to docs-as-code 3.0.1 and adapted requirements as necessary There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 3.0.1 might be bugged. Not sure, you have to test that if it works with your build.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Downgraded to 3.0.0 just to be sure |
||
| # S-CORE process rules | ||
| bazel_dep(name = "score_bazel_platforms", version = "0.0.4") | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,7 @@ Lifecycle | |
| :titlesonly: | ||
|
|
||
| module/*/index | ||
| statistics.rst | ||
|
|
||
| Overview | ||
| -------- | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,122 @@ | ||
| .. _statistics: | ||
|
|
||
| Component Requirements Statistics | ||
| ================================= | ||
|
|
||
| Overview | ||
| -------- | ||
|
|
||
| .. needpie:: Requirements Status | ||
| :labels: not valid, valid but not tested, valid and tested | ||
| :colors: red, yellow, green | ||
|
|
||
| type == 'comp_req' and status == 'invalid' | ||
| type == 'comp_req' and testlink == '' and (status == 'valid' or status == 'invalid') | ||
| type == 'comp_req' and testlink != '' and (status == 'valid' or status == 'invalid') | ||
|
|
||
| In Detail | ||
| --------- | ||
|
|
||
| .. grid:: 2 | ||
| :class-container: score-grid | ||
|
|
||
| .. grid-item-card:: | ||
|
|
||
| .. needpie:: Requirements marked as Valid | ||
| :labels: not valid, valid | ||
| :colors: red, orange, green | ||
|
|
||
| type == 'comp_req' and status == 'invalid' | ||
| type == 'comp_req' and status == 'valid' | ||
|
|
||
| .. grid-item-card:: | ||
|
|
||
| .. needpie:: Requirements with Codelinks | ||
| :labels: no codelink, with codelink | ||
| :colors: red, green | ||
|
|
||
| type == 'comp_req' and source_code_link == '' | ||
| type == 'comp_req' and source_code_link != '' | ||
|
|
||
| .. grid-item-card:: | ||
|
|
||
| .. needpie:: Test Results | ||
| :labels: passed, failed, skipped | ||
| :colors: green, red, orange | ||
|
|
||
| type == 'testcase' and result == 'passed' | ||
| type == 'testcase' and result == 'failed' | ||
| type == 'testcase' and result == 'skipped' | ||
|
|
||
| .. grid:: 2 | ||
|
|
||
| .. grid-item-card:: | ||
|
|
||
| Failed Tests | ||
|
|
||
| *Hint: This table should be empty. Before a PR can be merged all tests have to be successful.* | ||
|
|
||
| .. needtable:: FAILED TESTS | ||
| :filter: result == "failed" | ||
| :tags: TEST | ||
| :columns: name as "testcase";result;fully_verifies;partially_verifies;test_type;derivation_technique;id as "link" | ||
|
|
||
| .. grid-item-card:: | ||
|
|
||
| Skipped / Disabled Tests | ||
|
|
||
| .. needtable:: SKIPPED/DISABLED TESTS | ||
| :filter: result != "failed" and result != "passed" | ||
| :tags: TEST | ||
| :columns: name as "testcase";result;fully_verifies;partially_verifies;test_type;derivation_technique;id as "link" | ||
|
|
||
|
|
||
|
|
||
|
|
||
| All passed Tests | ||
| ----------------- | ||
|
|
||
| .. needtable:: SUCCESSFUL TESTS | ||
| :filter: result == "passed" | ||
| :tags: TEST | ||
| :columns: name as "testcase";result;fully_verifies;partially_verifies;test_type;derivation_technique;id as "link" | ||
|
|
||
|
|
||
| Details About Testcases | ||
| ------------------------ | ||
|
|
||
| .. needpie:: Test Types Used In Testcases | ||
| :labels: static-code-analysis, structural-statement-coverage, structural-branch-coverage, walkthrough, inspection, interface-test, requirements-based, resource-usage, control-flow-analysis, data-flow-analysis, fault-injection, struct-func-cov, struct-call-cov | ||
| :legend: | ||
|
|
||
| type == 'testcase' and test_type == 'static-code-analysis' | ||
| type == 'testcase' and test_type == 'structural-statement-coverage' | ||
| type == 'testcase' and test_type == 'structural-branch-coverage' | ||
| type == 'testcase' and test_type == 'walkthrough' | ||
| type == 'testcase' and test_type == 'inspection' | ||
| type == 'testcase' and test_type == 'interface-test' | ||
| type == 'testcase' and test_type == 'requirements-based' | ||
| type == 'testcase' and test_type == 'resource-usage' | ||
| type == 'testcase' and test_type == 'control-flow-analysis' | ||
| type == 'testcase' and test_type == 'data-flow-analysis' | ||
| type == 'testcase' and test_type == 'fault-injection' | ||
| type == 'testcase' and test_type == 'struct-func-cov' | ||
| type == 'testcase' and test_type == 'struct-call-cov' | ||
|
|
||
|
|
||
| .. needpie:: Derivation Techniques Used In Testcases | ||
| :labels: requirements-analysis, boundary-values, equivalence-classes, fuzz-testing, error-guessing, explorative-testing | ||
| :legend: | ||
|
|
||
| type == 'testcase' and derivation_technique == 'requirements-analysis' | ||
| type == 'testcase' and derivation_technique == 'boundary-values' | ||
| type == 'testcase' and derivation_technique == 'equivalence-classes' | ||
| type == 'testcase' and derivation_technique == 'fuzz-testing' | ||
| type == 'testcase' and derivation_technique == 'error-guessing' | ||
| type == 'testcase' and derivation_technique == 'explorative-testing' | ||
|
|
||
|
|
||
| Test Log Files | ||
| -------------- | ||
|
|
||
| .. display-test-logs:: |
Uh oh!
There was an error while loading. Please reload this page.