require 'test_helper'

DocTest.examples_path = ['test/examples/html', 'test/examples/asciidoc-html']

class HtmlTest < DocTest::Test
  converter_opts backend_name: 'html', dialect: 'latex'
  generate_tests! DocTest::HTML::ExamplesSuite
end

require 'test_helper'

DocTest.examples_path.unshift 'test/examples/html', 'test/examples/asciidoc-html'

class HtmlTest < DocTest::Test
  converter_opts backend_name: 'html', dialect: 'latex'
  html_suite = DocTest::HTML::ExamplesSuite.new paragraph_xpath: './div/p/node()'
  generate_tests! html_suite
end

Enable using default tests for html conversion
Enable using default tests for html conversion

This includes a fix to the default xpath used to select the generated
inline output. Because asciidoctor-doctest development in branch dev is
mostly incompatible with the latex branch now, I'm not submitting this
upstream. We should rebase asap.
