Skip to content
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

docs: add default structure for all test cases #1872

Merged
merged 32 commits into from
Feb 5, 2025

Conversation

AlexandraTrifan
Copy link
Contributor

@AlexandraTrifan AlexandraTrifan commented Jan 10, 2025

Below are some recommendations for formatting documentation files so that we all have a similar template.

User Guide

  • Use the .. note:: rst label.
  • The information within the notes should follow the format:
    • User guide: :ref:My plugin user guide<doc_reference>.

Setup

  • Name: Setup environment
  • Use the same heading level as for the tests.
  • Each setup should have a label so that it can be referenced from the tests.
  • The names of the setups should be bold.
  • The steps within the setup should be written as a bulleted list.

Test Labels

  • All test labels should be bold (UID, Description, Preconditions...). Also the Expected result: label should be bold.
  • Expected result
    • If there is only one expected result, it must be written inline, otherwise all expected results must be written as a bulleted list.
  • The UID and Description should be written inline with the labels, without bullets.
  • Each test must contains the Result label
    • Result: PASS/FAIL

Preconditions

  • Use a bulleted list.
  • References to setups.
  • OS label
    • use capital letters for the label name
    • options: ANY/ALL/a, list, of, operating, systems
      • Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS

Steps

  • Use a numbered list.
  • Use a bullet for the Expected result.

Prerequisites and Dependencies

  • If they are generic, they can be written under the Setup environment section.
  • If they are not generic, they can be written individually, for each test.

Highlight field names

  • Use bold for button names, field names, etc.

NOTES

  • All the test cases PRs should be merged here first.
  • When all of them are ready to go, we can get this branch to main.
  • todo: change default doc branch to main instead of dev

@AlexandraTrifan AlexandraTrifan force-pushed the main-doc-test-case-struct branch from 5ff7d90 to 24c97b1 Compare January 10, 2025 15:18
@AlexandraTrifan AlexandraTrifan marked this pull request as ready for review January 23, 2025 11:26
@AlexandraTrifan AlexandraTrifan force-pushed the main-doc-test-case-struct branch from 43e5800 to 5c206d2 Compare January 30, 2025 08:34
@adisuciu adisuciu added the v2.0 label Feb 4, 2025
AlexandraTrifan and others added 26 commits February 5, 2025 11:36
Signed-off-by: AlexandraTrifan <Alexandra.Trifan@analog.com>
Signed-off-by: andreidanila1 <andrei.danila@analog.com>
Signed-off-by: andreidanila1 <andrei.danila@analog.com>
The tests cover: home page, add page, connection flow, emu and device
interaction.

Signed-off-by: andreidanila1 <andrei.danila@analog.com>
The tests cover all the PQM instruments.

Signed-off-by: andreidanila1 <andrei.danila@analog.com>
Signed-off-by: IonutMuthi <ionut.muthi@analog.com>
Signed-off-by: AlexandraTrifan <Alexandra.Trifan@analog.com>
Signed-off-by: AlexandraTrifan <Alexandra.Trifan@analog.com>
Signed-off-by: IonutMuthi <ionut.muthi@analog.com>
Signed-off-by: Bindea Cristian <cristian.bindea@analog.com>
Signed-off-by: Andrei-Fabian-Pop <Andreifabian.Pop@analog.com>
Signed-off-by: Andrei-Fabian-Pop <Andreifabian.Pop@analog.com>
Signed-off-by: Andrei-Fabian-Pop <Andreifabian.Pop@analog.com>
Signed-off-by: Andrei-Fabian-Pop <Andreifabian.Pop@analog.com>
Signed-off-by: Andrei-Fabian-Pop <Andreifabian.Pop@analog.com>
Signed-off-by: Andrei-Fabian-Pop <Andreifabian.Pop@analog.com>
Signed-off-by: Andrei-Fabian-Pop <Andreifabian.Pop@analog.com>
Signed-off-by: Andrei-Fabian-Pop <Andreifabian.Pop@analog.com>
Signed-off-by: Andrei-Fabian-Pop <Andreifabian.Pop@analog.com>
Signed-off-by: Andrei-Fabian-Pop <Andreifabian.Pop@analog.com>
Signed-off-by: Andrei Popa <andrei.popa@analog.com>
Signed-off-by: AlexandraTrifan <Alexandra.Trifan@analog.com>
Signed-off-by: Andrei Popa <andrei.popa@analog.com>
Signed-off-by: Andrei Popa <andrei.popa@analog.com>
Signed-off-by: Andrei Popa <andrei.popa@analog.com>
Signed-off-by: AlexandraTrifan <Alexandra.Trifan@analog.com>
Signed-off-by: AlexandraTrifan <Alexandra.Trifan@analog.com>
…gger

and regmap.

Signed-off-by: AlexandraTrifan <Alexandra.Trifan@analog.com>
Signed-off-by: AlexandraTrifan <Alexandra.Trifan@analog.com>
Signed-off-by: AlexandraTrifan <Alexandra.Trifan@analog.com>
for the testing process.

Signed-off-by: AlexandraTrifan <Alexandra.Trifan@analog.com>
Signed-off-by: AlexandraTrifan <Alexandra.Trifan@analog.com>
@AlexandraTrifan AlexandraTrifan force-pushed the main-doc-test-case-struct branch from a6b0d18 to 538349b Compare February 5, 2025 09:36
Comment on lines 242 to 245
3. Click on "Oscilloscope" tool.
- **Expected result:** The "Oscilloscope" tool is displayed and the
tool menu item is highlighted.
4. Click on "Home" menu entry.
Copy link
Contributor

Choose a reason for hiding this comment

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

Actual result missing.

Signed-off-by: AlexandraTrifan <Alexandra.Trifan@analog.com>
@AlexandraTrifan AlexandraTrifan merged commit 042be09 into main Feb 5, 2025
22 of 26 checks passed
@AlexandraTrifan AlexandraTrifan deleted the main-doc-test-case-struct branch February 5, 2025 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants