Skip to content

Conversation

@hfern
Copy link
Owner

@hfern hfern commented Aug 25, 2025

This adds an example provider and wires up some e2e tests to verify tf can actually work against the real tofu CLI.

@hfern hfern force-pushed the hgf/e2e-test branch 2 times, most recently from 16472a1 to 039755b Compare August 25, 2025 04:10
@hfern hfern marked this pull request as ready for review August 25, 2025 04:12
@hfern hfern requested a review from Copilot August 25, 2025 04:12
Copy link

Copilot AI left a 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 adds comprehensive end-to-end (e2e) testing infrastructure to verify the tf library works correctly against the real OpenTofu CLI. The tests use an example math provider to validate provider functionality, data sources, and CLI integration.

  • Creates a complete e2e testing framework for running tests against actual OpenTofu installations
  • Implements a sample math provider with division data source for testing purposes
  • Integrates e2e tests into CI pipeline with multiple OpenTofu versions

Reviewed Changes

Copilot reviewed 12 out of 17 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
e2e/e2e_framework/ New testing framework with CLI tools for installing/running OpenTofu and base test classes
e2e/mathprovider/ Example provider implementation with division data source and comprehensive test coverage
.github/workflows/python-package.yml CI integration for e2e tests across multiple OpenTofu versions
Makefile Updates formatting commands to include e2e directories
.pyre_configuration Adds e2e directories to type checker search path
CHANGELOG.md Documents the new e2e testing feature

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@hfern hfern merged commit 8ddc80f into master Aug 26, 2025
6 checks passed
@hfern hfern deleted the hgf/e2e-test branch August 26, 2025 02:58
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.

3 participants