sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

Minitest.run

This is the top-level run method. Everything starts from here. It
tells each Runnable sub-class to run, and each of those are
responsible for doing whatever they do.

The overall structure of a run looks like this:

  Minitest.autorun
    Minitest.run(args)
      Minitest.__run(reporter, options)
        Runnable.runnables.each
          runnable.run(reporter, options)
            self.runnable_methods.each
              self.run_one_method(self, runnable_method, reporter)
                Minitest.run_one_method(klass, runnable_method)
                  klass.new(runnable_method).run

Source | Google | Stack overflow

Edit

git clone [email protected]:sonic-pi-net/sonic-pi.git

cd sonic-pi

open app/server/ruby/vendor/minitest-5.18.1/lib/minitest.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Minitest-run-for-pr


# Commit to git

git add app/server/ruby/vendor/minitest-5.18.1/lib/minitest.rbgit commit -m "better docs for Minitest.run"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Minitest-run-for-pr

hub pull-request


# Celebrate!