chore: e2e test edgehog -- Rust#1064
Open
lusergit wants to merge 4 commits intoedgehog-device-manager:mainfrom
Open
chore: e2e test edgehog -- Rust#1064lusergit wants to merge 4 commits intoedgehog-device-manager:mainfrom
lusergit wants to merge 4 commits intoedgehog-device-manager:mainfrom
Conversation
c4db2b3 to
59cc5ed
Compare
97aa963 to
556ccad
Compare
acf3c18 to
9ce42ef
Compare
9ce42ef to
b25d035
Compare
Pull Request Test Coverage Report for Build a3639c530a2f5391afc5864f2fdf06a33da57b72-PR-1064Details
💛 - Coveralls |
b25d035 to
2f7a1c1
Compare
39ac499 to
97ed64e
Compare
Init a new Rust project to serve as e2e test suite Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
The default rust `test` utilities are quite powerful. This PR leverages them in order to: - natively use multiprocessing to run tests in parallel - have comprehensive `pass` and `error` logs Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
Adds a github action triggering an end to end test of edgehog on backend changes. Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
E2E test edgehog -- [Rust]
The following PR adds a new e2e tool to test edgehog. Starting a painful, yet important task: ensuring things work without human testing.
Integration in the CI
Ideally this tool can be compiled once and run in CI at each backend change. It could test a specific path in the backend in an end to end fashion: it makes a request, expects some side effects and a specific response from the server.
The tool runs each test in parallel, aggregating the result of each test and prompting the user what went wrong where.
Seamless intefgration with the schema graphql
the rust graphql client generates all the types necessary to understand queries and mutations based on the schema and a provided
.graphqlfile, contianing the specific request.the library reads the graphql schema, generated by the backend with
mix absinthe.schema.sdl --schema EdgehogWeb.Schema ../tools/e2e_test/schema/schema.graphql