asciidoctor / asciidoctor-doctest

:hammer: Test suite for Asciidoctor backends
MIT License
12 stars 16 forks source link

add PATTERN modifier to rake test #5

Closed DavidGamba closed 7 years ago

DavidGamba commented 9 years ago

Just like you might want to only generate AST blocks incrementally, we might want to run tests incrementally with the PATTERN modifier.

rake test PATTERN='block_paragraph:*'

jirutka commented 9 years ago

I agree that this would be definitely a nice feature.

Meanwhile, since DocTest uses Minitest as a test runner, you can use minitest’s ability to filter tests:

bundle exec rake test TESTOPTS='--name=/block_paragraph:/'

Keep a note that minitest uses regex to filter tests, not glob as DocTest’s generator.

DavidGamba commented 9 years ago

Awesome, thanks for giving me that Minitest tip :+1:

jirutka commented 7 years ago

This is already implemented in 2.x version (currently in beta, latest is 2.0.0.beta.4).