Skip to content

Add minitest test suite and CI workflow - #5

Open
Copilot wants to merge 1 commit into
mainfrom
copilot/add-test-suite
Open

Add minitest test suite and CI workflow#5
Copilot wants to merge 1 commit into
mainfrom
copilot/add-test-suite

Conversation

Copilot AI commented Aug 6, 2026

Copy link
Copy Markdown

Summary

This repo had no tests at all (lib/faker/ only contains version.rb, no test/, spec/, or CI). This PR adds a minimal but real test setup so future changes have something to build on.

Changes

  • test/test_helper.rb: sets up SimpleCov + minitest/test-unit, matching upstream faker-ruby conventions
  • test/faker/test_version.rb: tests for Faker::VERSION (defined, is a String, matches semver format, and matches the gemspec version)
  • Rakefile: adds a test rake task (default task) that runs all test/**/test_*.rb files
  • .github/workflows/ci.yml: runs bundle exec rake test on push/PR to main across Ruby 3.2, 3.3, 3.4
  • .gitignore: excludes coverage/ and bundler artifacts

Verification

$ bundle exec rake test
4 tests, 4 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Also ran bundle exec rubocop test/ Rakefile with no offenses.

- Add test/test_helper.rb with simplecov + minitest/test-unit setup
- Add test/faker/test_version.rb covering Faker::VERSION
- Add Rakefile with a test task (rake test) as the default task
- Add .github/workflows/ci.yml to run tests on push/PR across Ruby 3.2-3.4
- Add .gitignore to exclude coverage/ and bundler artifacts

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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