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 testing tools #13

Merged
merged 20 commits into from
Dec 8, 2024
Merged

Add testing tools #13

merged 20 commits into from
Dec 8, 2024

Conversation

coordt
Copy link
Member

@coordt coordt commented Dec 1, 2024

Created a pytest plugin to help with testing.

coordt added 14 commits December 1, 2024 07:25
Updated `build_project` function to return a `BuildResult`, now including additional UI function parameter for better flexibility. The `render_env` function now identifies and returns the project root path, enhancing build tracking.
Introduce a new `project_forge.testing` module providing utilities such as `inside_dir`, `run_inside_dir`, and `use_default_ui` for testing Project Forge patterns and compositions. Additionally, implement tests for these utilities to ensure correct functionality, including context management, command execution, and handling of project creation using default settings.
Incorporate 'ask_question' as a UI function across CLI tests to enhance interactivity. Remove the 'inside_dir' context manager from conftest.py, streamlining the test setup by relying on pytest plugins for directory management.
Copy link

github-actions bot commented Dec 8, 2024

PR Preview Action v1.4.8
🚀 Deployed preview to https://callowayproject.github.io/project-forge/pr-preview/pr-13/
on branch gh-pages at 2024-12-08 12:37 UTC

Copy link

github-actions bot commented Dec 8, 2024

Version hint: minor
Current version: 0.2.0
New version (when merged): 0.3.0

Comment ID: Display the version hint-auto-generated

@coordt coordt merged commit 8329bcb into master Dec 8, 2024
8 checks passed
@coordt coordt deleted the add-testing-tools branch December 8, 2024 14:01
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.

1 participant