swagger-api / swagger-api/swagger-codegen

[Ruby] Rakefile for running multiple test cases

Open
#3,634 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: Ruby Enhancement: General help wanted
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

I would like to run multiple test cases written using minitest; it would be good to have Rakefile generated for the same to that rake task can be incorporated to run all the test cases.

# file: Rakefile
require 'rake/testtask'

Rake::TestTask.new do |task|
  task.libs << %w(test lib)
  task.pattern = 'test/test_*.rb'
end

task :default => :test
Swagger-codegen version

Version 2.1.5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the requested Rakefile content and its test/test_*.rb and lib paths; inspect how the Ruby output is generated and where project-level files are defined. Confirm that the generated Ruby project can run all Minitest cases through the default rake task.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
build-system, testing
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.