Improve test run by module as rake task

Open
#3,837 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

  • #3843 by @stbnrivas — closed without merging

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
github-actions, rails, ruby

Research direction

Read the CircleCI config.yml and inspect the existing test paths listed in the issue, such as test/controller/gobierto_admin and test/models/gobierto_admin. Check how Rails test tasks are defined and how those paths map to Gobierto modules. Done means each requested module can be run with its own bin/rails test:<module> task.

Written by the indexing model from the issue text.

Description

I'd like to have modularized the test run by gobierto module. Something like:

bin/rails test:admin # which run gobierto_admin module 
bin/rails test:attachments
bin/rails test:budget
bin/rails test:calendars
bin/rails test:cms
bin/rails test:common
bin/rails test:core
bin/rails test:dashboard
bin/rails test:data
bin/rails test:export
bin/rails test:indicators
...

because this is tedious run and error prone

bin/rails test test/controller/gobierto_admin
bin/rails test test/models/gobierto_admin
bin/rails test test/systemgobierto_admin
....

I would take advantage of circle ci config.yml

Dominant language
Ruby
Stars
79
Forks
31
Avg merge
2d 1h
Merged PRs (30d)
23

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • Has a pull request template
  • No 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.

More from PopulateTools/gobierto

All issues in PopulateTools/gobierto

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.