Skip to content

Testing

Douglas Eichelberger edited this page May 16, 2021 · 1 revision

Testing against brew

The humble unit tests in this repo can feel inadequate, so macOS users with brew installed can test changes on brew itself. To get started, clone the documentation browser:

git clone https://github.com/Homebrew/rubydoc.brew.sh.git
cd rubydoc.brew.sh

Edit the Gemfile to the sha at the head of your branch, e.g.:

gem "yard-sorbet", git: 'https://github.com/dduugg/yard-sorbet.git', ref: '689f82ce47110abf4f52a34d7938f533480b4dc8'

Finally, generate the docs:

ln -s $(brew --repo) brew
bundle exec rake yard build
Clone this wiki locally