Skip to content

Add Functional Tests#632

Merged
hahwul merged 26 commits intomainfrom
add-functional-test
Mar 3, 2025
Merged

Add Functional Tests#632
hahwul merged 26 commits intomainfrom
add-functional-test

Conversation

@hahwul
Copy link
Owner

@hahwul hahwul commented Feb 5, 2025

Signed-off-by: HAHWUL hahwul@gmail.com

Signed-off-by: HAHWUL <hahwul@gmail.com>
Signed-off-by: HAHWUL <hahwul@gmail.com>
Signed-off-by: HAHWUL <hahwul@gmail.com>
@hahwul hahwul self-assigned this Feb 5, 2025
@hahwul hahwul added this to the v2.10.0 milestone Feb 5, 2025
@hahwul
Copy link
Owner Author

hahwul commented Mar 2, 2025

/gemini summary

@gemini-code-assist
Copy link
Contributor

Summary of Changes

This pull request introduces functional tests to the project. It adds a new workflow for running these tests on push and pull requests to the main branch. It also includes necessary dependencies and configurations for running functional tests using RSpec and Aruba. The tests themselves are basic, verifying the help output and error handling of the CLI.

Highlights

  • Functional Test Workflow: Adds a new GitHub Actions workflow (.github/workflows/test-functional.yml) to run functional tests on push and pull requests to the main branch.
  • Dependency Updates: Updates the Gemfile and Gemfile.lock to include necessary gems like aruba, rspec, and logger for functional testing.
  • Rake Task Configuration: Configures Rake tasks in Rakefile to run functional tests, including setup and execution tasks. Also adds tasks for unit tests and running all tests.
  • Basic Functional Tests: Adds a basic functional test suite (spec/functional_tests/basic_spec.rb) using Aruba to verify the CLI's help output and error handling.

Changelog

  • .github/workflows/test-functional.yml
    • Adds a new workflow to run functional tests on push and pull requests to the main branch.
    • Configures the workflow to use Ruby 3.4 and cache installed gems.
  • Gemfile
    • Adds gems aruba, rake, rspec, and logger to the Gemfile.
  • Gemfile.lock
    • Updates the Gemfile.lock to reflect the addition of new gems and their dependencies.
  • Rakefile
    • Adds a Rake task for running functional tests using RSpec.
    • Adds tasks for setting up the test environment, running unit tests, and running all tests.
    • Adds a functional_setup task to run go mod vendor and go build .
  • spec/functional_tests/basic_spec.rb
    • Adds a basic functional test suite using Aruba.
    • Tests the CLI's help output and error handling for unknown commands.
  • spec/spec_helper.rb
    • Adds require 'aruba/rspec' to the spec helper.

Activity

  • The author, hahwul, requested a summary using the command /gemini summary.

@hahwul hahwul marked this pull request as ready for review March 3, 2025 01:37
@hahwul hahwul merged commit 3767658 into main Mar 3, 2025
1 check passed
@hahwul hahwul deleted the add-functional-test branch March 3, 2025 01:37
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