Skip to content

feat: Update test suite to use latest Picotest #239

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 4 commits into from
Jul 7, 2025

Conversation

hasumikin
Copy link
Member

This commit updates the test infrastructure to be compatible with the latest Picotest framework from the picoruby submodule.

Key changes include:

  • Modified to directly require gem.
  • Updated and to use for executing the test runner script, aligning with Picotest's execution model.
  • Adjusted for host tests to .
  • Added target to for comprehensive testing.
  • Fixed array literal syntax in .

@hasumikin hasumikin force-pushed the fix-test branch 2 times, most recently from d215f5f to 0b50b41 Compare July 7, 2025 06:46
This commit updates the test infrastructure to be compatible with the latest
Picotest framework from the picoruby submodule.

Key changes include:
- Modified  to directly require  gem.
- Updated  and  to use  for
  executing the test runner script, aligning with Picotest's execution model.
- Adjusted  for host tests to .
- Added  target to  for comprehensive testing.
- Fixed array literal syntax in .
Copy link
Contributor

@Copilot 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 updates the test suite to work with the latest Picotest framework sourced from the Picoruby submodule.

  • Switched array literal syntax in a unit test to %W for string arrays.
  • Updated the test runner script to require Picotest from the submodule and improved test execution commands.
  • Added a test_all target and unified various Makefile and CI steps to invoke Ruby directly.

Reviewed Changes

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

File Description
test/array_test.rb Changed %() to %W() to ensure proper array-of-strings syntax.
test/0_runner.rb Replaced require 'picotest' with explicit submodule path and added context comments.
Makefile Introduced test_all target; updated platform test commands to use ruby runner and new config.
.github/workflows/test.yml Cloned Picoruby submodule and switched CI test invocations to use ruby runner.
Comments suppressed due to low confidence (2)

.github/workflows/test.yml:19

  • [nitpick] Instead of a manual git clone, consider using actions/checkout@v4 with submodules: recursive to pull in the Picoruby submodule automatically.
    - name: Clone PicoRuby

.github/workflows/test.yml:140

  • [nitpick] This commented-out tmate configuration adds noise. Consider removing or moving it into a separate troubleshooting guide.
      #    - name: Setup tmate session

hasumikin and others added 3 commits July 7, 2025 16:13
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@hasumikin hasumikin merged commit b6ea893 into mrubyc:master Jul 7, 2025
8 checks passed
@hasumikin hasumikin deleted the fix-test branch July 7, 2025 07:19
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy