-
Notifications
You must be signed in to change notification settings - Fork 919
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
unit test setup #687
unit test setup #687
Conversation
Signed-off-by: Lorenzo Fontana <lo@linux.com> Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com> Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com> Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
/hold |
Signed-off-by: Lorenzo Fontana <lo@linux.com> Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com> Co-Authored-By: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com> Co-Authored-By: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com> Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: leodido The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
LGTM label has been added. Git tree hash: 01cc25da86d7eecea8dd41ecfef828caa2171488
|
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds support to use catch2 as a testing framework, initially it allows only to test falco_engine but it will be expanded to other areas as soon as we extract functionalities into libraries.
There's no actual tests in this PR since this one is to setup the environment that will then be used in other PRs checking in the tests.
Here's how a unit test will look like:
Tests will be organized under the
tests
folder.For example,
falco_engine
tests will go undertests/engine
using the same structure as foruserspace
.For every other type of assertion and details, refer to the the catch2 documentation.
Which issue(s) this PR fixes:
Fixes #686
Special notes for your reviewer:

Does this PR introduce a user-facing change?: