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

Move end to end tests to own crate #160

Merged
merged 1 commit into from
Apr 27, 2020

Conversation

ionut-arm
Copy link
Member

This commit moves the PARSEC end-to-end tests into their own crate and
refactors the test script along with it.

Signed-off-by: Ionut Mihalcea ionut.mihalcea@arm.com

Fixes #155

@ionut-arm ionut-arm added the enhancement New feature or request label Apr 27, 2020
@ionut-arm ionut-arm added this to the Parsec production ready milestone Apr 27, 2020
@ionut-arm ionut-arm self-assigned this Apr 27, 2020
@ionut-arm ionut-arm force-pushed the e2e-tests branch 2 times, most recently from f26593f to c7eea6b Compare April 27, 2020 10:36
@ionut-arm ionut-arm requested a review from hug-dev April 27, 2020 10:50
Copy link
Member

@hug-dev hug-dev left a comment

Choose a reason for hiding this comment

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

Thanks a lot, that makes much more sense and leave us the option of doing real integration testing on our modules 😉
I like the "end-to-end" naming! Make it clear and separate it nicely from integration testing in tests/.

I am sure it will speed up our tests as well.

Comment on lines +1 to +3
# This crate should NOT be upstreamed to crates.io; it is only intended for
# PARSEC testing purposes (both locally and on CI)
[package]
Copy link
Member

Choose a reason for hiding this comment

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

You can add this:

[package]
# ...
publish = false

to enforce it won't be done by mistake!

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

picky-asn1 = "0.2.1"
serde = { version = "1.0", features = ["derive"] }
sha2 = "0.8.1"
parsec-client = { version = "0.2.0", features = ["testing"] }
Copy link
Member

Choose a reason for hiding this comment

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

👏 Nice not to have to add the interface next to that!

@@ -63,12 +63,11 @@ while [ "$#" -gt 0 ]; do
error_msg "Only one provider name must be given"
fi
PROVIDER_NAME=$1
CONFIG_PATH="e2e_tests/provider_cfg/$1/config.toml"
Copy link
Member

Choose a reason for hiding this comment

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

🤯

This commit moves the PARSEC end-to-end tests into their own crate and
refactors the test script along with it.

Signed-off-by: Ionut Mihalcea <ionut.mihalcea@arm.com>
@ionut-arm ionut-arm merged commit 791b061 into parallaxsecond:master Apr 27, 2020
@ionut-arm ionut-arm deleted the e2e-tests branch April 27, 2020 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integration tests should be isolated in their crate
2 participants