-
Notifications
You must be signed in to change notification settings - Fork 21
testing: Unify component integration tests structure #199
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
base: main
Are you sure you want to change the base?
testing: Unify component integration tests structure #199
Conversation
License Check Results🚀 The license check job ran with the Bazel command: bazel run //:license-checkStatus: Click to expand output |
|
The created documentation from the pull request is available at: docu-html |
3e28bc9 to
9b6691f
Compare
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.
Pull request overview
This PR standardizes the naming and structure of component integration tests across the repository. The main changes include:
- Renaming test directories from language-prefixed names (
rust_test_scenarios,cpp_test_scenarios,python_test_cases) to a unified structure undertests/test_scenarios/{language}andtests/test_cases - Updating all build files, configuration files, and documentation to reference the new paths
- Removing language prefixes from binary and package names for consistency
Reviewed changes
Copilot reviewed 16 out of 41 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/test_scenarios/rust/Cargo.toml | Renamed package from rust_test_scenarios to test_scenarios |
| tests/test_scenarios/rust/BUILD | Updated binary name and visibility path to reflect new directory structure |
| tests/test_scenarios/cpp/src/test_basic.cpp | Updated namespace reference and reformatted braces (Allman style) |
| tests/test_scenarios/cpp/BUILD | Renamed binary from cpp_test_scenarios to test_scenarios |
| tests/test_cases/tests/conftest.py | Updated default target paths to new directory structure |
| tests/test_cases/requirements.txt.orig | Contains unresolved merge conflict markers |
| tests/test_cases/pyproject.toml | Renamed project from python_test_cases to test_cases |
| tests/test_cases/BUILD | Updated all target paths and comments to reference new structure |
| tests/integration_test_scenarios/init_rpi4.build | Updated commented path for QNX rust scenarios |
| tests/integration_test_scenarios/BUILD | Updated commented paths for QNX rust scenarios |
| tests/README.md | Updated all documentation paths and commands to reflect new structure |
| src/cpp/src/BUILD | Updated visibility path for test scenarios |
| MODULE.bazel | Updated requirements lock file path |
| Cargo.toml | Updated workspace member path |
| BUILD | Updated test suite target paths |
| .github/workflows/component_integration_tests.yml | Updated all workflow paths to new structure |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
9b6691f to
7fbf983
Compare
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.
Pull request overview
Copilot reviewed 15 out of 40 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tests/test_cases/pyproject.toml
Outdated
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.
correct location should be in repo root. Content of the file can be extended with options to pytest, ruff etc. Check kyron repo
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.
Done
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.
imho, PYTHONPATH should be added and . removed from import statements in test files
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.
Done
| - name: Run Python tests with pytest | ||
| working-directory: tests/python_test_cases | ||
| working-directory: tests/test_cases |
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.
remove this line, calling pytest from repo root will secure auto discovery and loading pyproject.toml correctly
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.
Done
| working-directory: tests/test_cases | ||
| run: | | ||
| python -m venv .venv | ||
| source .venv/bin/activate | ||
| pip install . | ||
| pip install -r requirements.txt |
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.
we can make venv in repo root
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.
Done
pyproject.toml
Outdated
| skip-magic-trailing-comma = false | ||
|
|
||
| # Like Black, automatically detect the appropriate line ending. | ||
| line-ending = "auto" No newline at end of file |
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.
empty line pls
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.
Done
| [tool.pytest] | ||
| addopts = ["-v"] | ||
| pythonpath = [ | ||
| "tests/test_cases", |
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.
did you check if tests/test_cases/tests is not needed when running pytest from repo root?
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.
Right, it is not working when cwd is a root. Added required path.
| working-directory: tests/test_cases | ||
| run: | | ||
| source .venv/bin/activate | ||
| python -m pytest |
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.
add --traces=all
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.
Done
PiotrKorkus
left a comment
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.
lgtm
01ef5d7 to
a9130f3
Compare
|
Squashed commits |
No description provided.