Skip to content

Add integration tests #36

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

Merged
merged 2 commits into from
May 25, 2021
Merged

Add integration tests #36

merged 2 commits into from
May 25, 2021

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented May 24, 2021

This adds end to end testing of the tool to verify that the finished outputs are as expected.

@per1234 per1234 added type: enhancement Proposed improvement topic: infrastructure Related to project infrastructure labels May 24, 2021
@per1234 per1234 requested a review from silvanocerza May 24, 2021 09:41
"LibrariesIndex": working_dir_path.joinpath("libraries", "library_index.json").as_posix(),
"GitClonesFolder": working_dir_path.joinpath("gitclones").as_posix(),
# I was unable to get clamdscan working in the GitHub Actions runner, but the tests should pass with this set to
# False when run on a machine with ClamAV installed.
Copy link
Contributor

Choose a reason for hiding this comment

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

As we were discussing in our chats, being this application something that has to run on a well defined environment, could make sense to include in this repo a Dockerfile with a replica of the destination linux environment, included all the tools that this engine uses (like ClamAV)

Comment on lines +203 to +204
if platform.system() == "Windows":
cd_command += " /d"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same consideration as above, with a container that replicates the production environment we could get rid of this "OS dependant" code

Copy link
Contributor

@rsora rsora left a comment

Choose a reason for hiding this comment

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

The code is very ok, we could merge it and then address my comments about having a test container in a separate PR 👍

Copy link
Contributor

@silvanocerza silvanocerza left a comment

Choose a reason for hiding this comment

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

Everything looks great, just a small comment to edit to reach approval. 👍

per1234 and others added 2 commits May 25, 2021 00:30
This adds end to end testing of the tool to verify that the finished outputs are as expected.
Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com>
@per1234 per1234 merged commit 2ee48e4 into arduino:main May 25, 2021
@per1234 per1234 deleted the integration-tests branch May 25, 2021 07:34
@per1234 per1234 self-assigned this Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants