Skip to content

Sync test assets workflow with templates #227

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 19 commits into from
Aug 5, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
94c1820
Move integration test runs to dedicated workflow
per1234 Aug 4, 2021
683d54e
Move generated code sync check to dedicated workflow
per1234 Aug 4, 2021
78c8d43
Move tester build generation to dedicated workflow
per1234 Aug 4, 2021
94e425d
Use standardized filename for test runner workflow
per1234 Aug 4, 2021
5dc498b
Replace discouraged shell syntax in taskfile dynamic variable
per1234 Aug 5, 2021
745aa44
Use standardized name for build and test tasks
per1234 Aug 5, 2021
35421dd
Use Python dependency installation task in integration test task
per1234 Aug 5, 2021
f9a2457
Move build task to the `go:test-integration` task's `deps` key
per1234 Aug 5, 2021
e957cf5
Use standardized name for integration test folder
per1234 Aug 5, 2021
9c9f5b0
Remove project-specific references from integration test files
per1234 Aug 5, 2021
3b7e653
Improve formatting of integration test helper functions
per1234 Aug 5, 2021
bf9cb89
Make integration test work directory path canonical
per1234 Aug 5, 2021
59f0894
Clean up integration test working directory
per1234 Aug 5, 2021
db50dfd
Bump pytest integration testing dependency to ^6.2.4
per1234 Aug 5, 2021
6015029
Bump `invoke` integration test dependency to ^1.5.0
per1234 Aug 5, 2021
b338cfb
Add linebreaks to `go test` command
per1234 Aug 5, 2021
75ab8aa
Use more specific override variable name for unit test regex
per1234 Aug 5, 2021
fd35878
Fix error in `go test` command template
per1234 Aug 5, 2021
3bc729c
Add source URL comments to testing assets
per1234 Aug 5, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add source URL comments to testing assets
This will make it easier for the maintainers to sync fixes and improvements in either direction between the upstream
"template" assets and their installation in this repository.
  • Loading branch information
per1234 committed Aug 5, 2021
commit 3bc729c237a3f3aec2e0f16a6279bd345f1361aa
2 changes: 2 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ tasks:
- go generate ./...
- task: go:format

# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/test-go-task/Taskfile.yml
go:test:
desc: Run unit tests
cmds:
Expand All @@ -77,6 +78,7 @@ tasks:
-coverprofile=coverage_unit.txt \
{{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}

# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/test-go-integration-task/Taskfile.yml
go:test-integration:
desc: Run integration tests
deps:
Expand Down
2 changes: 2 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Source:
# https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/test-python/__init__.py
# Copyright 2020 ARDUINO SA(http: // www.arduino.cc/)
#
# This software is released under the GNU General Public License version 3,
Expand Down
1 change: 1 addition & 0 deletions tests/pytest.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/test-python/pytest.ini
[pytest]
filterwarnings =
error
Expand Down
2 changes: 2 additions & 0 deletions tests/test_all.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Source:
# https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/test-integration/test_all.py
# Copyright 2020 ARDUINO SA(http: // www.arduino.cc/)
#
# This software is released under the GNU General Public License version 3,
Expand Down