-
Notifications
You must be signed in to change notification settings - Fork 51
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
Advanced Test plan tutorial (infra) #1662
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice stuff!
I've added a few suggestions, and a question regarding the use of template id Vs. regex.
================= | ||
Writing Test Plan | ||
================= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
================= | |
Writing Test Plan | |
================= | |
=================== | |
Writing A Test Plan | |
=================== |
================= | ||
|
||
This tutorial will guide you in writing a test plan to test the Network | ||
connection in your machine. We will do this by re-using tests that are already |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
connection in your machine. We will do this by re-using tests that are already | |
connection on your machine. We will do this by re-using tests that are already |
Inclusions | ||
========== | ||
|
||
When we want a test plan to contain a test what we do in Checkbox is including |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When we want a test plan to contain a test what we do in Checkbox is including | |
When we want a test plan to contain a test, what we do in Checkbox is including |
☑ : Test that the network speed is acceptable | ||
|
||
Note how, as we previously saw, Checkbox automatically pulled the resource | ||
job need. This operation, as we previously mention, is not the safe way to go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
job need. This operation, as we previously mention, is not the safe way to go | |
job needed. This operation, as we previously mentioned, is not the safe way to go |
``providers/tutorial/units/test-plan.pxu`` | ||
|
||
We now have a convenient container where to put all tests we previously | ||
developed, let's include them in a new ``test plan``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
developed, let's include them in a new ``test plan``. | |
developed, let's include them in a new ``test plan``: |
Excluding a test via ``exclude`` in the test plan is different from using | ||
``exclude`` in the launcher. If you use ``exclude`` in the launcher, you | ||
are modifying the test plan, so it will not be accepted as a submission on | ||
C3, while if you use ``exclude`` in a test plan, you are creating a new, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C3, while if you use ``exclude`` in a test plan, you are creating a new, | |
C3, whereas if you use ``exclude`` in a test plan, you are creating a new, |
jobs, you should most likely avoid doing that as you may inadvertently lose | ||
more jobs (and time) than you were aiming for. Try to always precisely match |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jobs, you should most likely avoid doing that as you may inadvertently lose | |
more jobs (and time) than you were aiming for. Try to always precisely match | |
jobs, you should most likely avoid doing that as you may inadvertently deselect | |
more jobs than you were aiming for. Try to always precisely match |
jobs, you should most likely avoid doing that as you may inadvertently lose | ||
more jobs (and time) than you were aiming for. Try to always precisely match | ||
what you want to exclude, for templates, for example, use the template id | ||
whenever you can instead of regex matching the generated id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whenever you can instead of regex matching the generated id | |
whenever you can instead of regex matching the generated id. |
The reason is that all tests in the ``submission-cert-automated`` are mandatory | ||
includes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason is that all tests in the ``submission-cert-automated`` are mandatory | |
includes | |
The reason is that all tests in the ``submission-cert-automated`` nested part are mandatory | |
includes: they will be executed regardless of any other rule in your test plan. |
bootstrap_include: | ||
network_iface_info | ||
include: | ||
network_available_.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You were using a template id in the previous test plan definition, and you switched to regex. Is this intentional?
Description
This is an additional advanced tutorial about test plans. It should introduce all topics related to test plan writing and useful tips to work with them
Resolved issues
Fixes: CHECKBOX-760
Documentation
(this is documentation)
Tests
N/A