Code infrastructure and support for local and remote command runner action unit tests
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 6.5k
- Forks
- 787
- PR merge metrics
- No merged PRs in 30d
Description
We now have an infrastructure and code in place for writing Python runner action unit tests, but we don't have such code infrastructure in place for other runners such as local and remote ones.
We should add some code infrastructure in-place which will make writing such tests easier. We can start simple by adding some code infrastructure for writing remote and local command runner action tests. In this case we can simply intercept a final shell command and return it to the test case which can assert that the command is correct.
This is still valuable since a lot of actions (e.g. many of the actions in linux pack) consists of metadata which dynamically constructs a command based on the action parameters.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing Python runner action unit-test infrastructure, then locate the local and remote command runner paths. The work is done when tests for both runners can intercept the final shell command and assert that it matches the expected command for the action parameters.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100