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

Add integration tests for actor templates #1093

Open
Pijukatel opened this issue Mar 17, 2025 · 0 comments · May be fixed by #1109
Open

Add integration tests for actor templates #1093

Pijukatel opened this issue Mar 17, 2025 · 0 comments · May be fixed by #1109
Assignees
Labels
debt Code quality improvement or decrease of technical debt. t-tooling Issues with this label are in the ownership of the tooling team.

Comments

@Pijukatel
Copy link
Collaborator

Motivation:
Currently templates created through cli are not tested. The only test is that cli generating the templates is working, but the content of the templates is not tested. This situation leads to templates being broken from time to time and detection of such situation is rather random.

Proposed solution
Create an apify-platform integration test for each template. Templates can run in different environments, but our apify-platform is the typical environment and is predictable and specific.
(This will mean adding dev dependency to apify-sahred for the sake of tests).

Each integration test should contain:

  1. Creation of template through cli
  2. running apify-init in template space
  3. deploying to apify platform
  4. running the actor
  5. collecting the results and compare to expectations
@Pijukatel Pijukatel added debt Code quality improvement or decrease of technical debt. t-tooling Issues with this label are in the ownership of the tooling team. labels Mar 17, 2025
@Pijukatel Pijukatel self-assigned this Mar 17, 2025
@Pijukatel Pijukatel linked a pull request Mar 20, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debt Code quality improvement or decrease of technical debt. t-tooling Issues with this label are in the ownership of the tooling team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant