Skip to content

Adding Azure.Functions.Cli.TestFramework.csproj to have E2E tests run on #4363

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 8 commits into from
Apr 21, 2025

Conversation

aishwaryabh
Copy link
Contributor

@aishwaryabh aishwaryabh commented Apr 14, 2025

Issue describing the changes in this PR

resolves #4327

This PR is the second part of a series of PRs to set up a new testing framework for the Azure Functions CLI. This is the larger PR, which contains all the changes for the testing framework and the updated func start E2E test, if you would like to take a look at how it all fits in! I just decided to split it up since it would be easier to review and get feedback this way.

Func.TestFramework.csproj contains the new test framework that can be used for the E2E tests or even unit tests. FuncCommand is the base class that implements Command defined in the abstractions project. For debugging purposes, I also create a file for each FuncCommand created and dump the logs that are defined into the file. These logs are then published as an artifact in a folder called TestLogs, which can be useful for debugging in the future (the last step of publishing the logs will be in the final PR)!

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

@aishwaryabh aishwaryabh requested a review from a team as a code owner April 14, 2025 18:27
@liliankasem
Copy link
Member

Honesty you can probably just drop E2E Tests PART x: from these PR names, or at least please remove them from the commit message when you squash-merge :)

@aishwaryabh aishwaryabh changed the base branch from aibhandari/func-start-abstractions to main April 14, 2025 18:42
@aishwaryabh aishwaryabh changed the title E2E Tests PART 2: Adding Func.TestFramework to have E2E tests run on Adding Func.TestFramework to have E2E tests run on Apr 14, 2025
@aishwaryabh aishwaryabh force-pushed the aibhandari/func-start-framework branch from ddcbf35 to 79519d1 Compare April 17, 2025 21:57
@aishwaryabh aishwaryabh force-pushed the aibhandari/func-start-framework branch from 79519d1 to 736bc81 Compare April 18, 2025 21:39
@aishwaryabh aishwaryabh changed the title Adding Func.TestFramework to have E2E tests run on Adding Azure.Functions.Cli.Test.Framework to have E2E tests run on Apr 21, 2025
@aishwaryabh aishwaryabh force-pushed the aibhandari/func-start-framework branch from 6046327 to 29792f9 Compare April 21, 2025 18:39
@aishwaryabh aishwaryabh force-pushed the aibhandari/func-start-framework branch from 29792f9 to c398ff4 Compare April 21, 2025 19:09
@aishwaryabh aishwaryabh changed the title Adding Azure.Functions.Cli.Test.Framework to have E2E tests run on Adding Azure.Functions.Cli.TestFramework.csproj to have E2E tests run on Apr 21, 2025
@aishwaryabh aishwaryabh merged commit 313e44f into main Apr 21, 2025
11 checks passed
@aishwaryabh aishwaryabh deleted the aibhandari/func-start-framework branch April 21, 2025 21:48
@aishwaryabh aishwaryabh restored the aibhandari/func-start-framework branch May 9, 2025 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set up new test framework
4 participants