Closed johannesjh closed 5 years ago
As far as I understand, the tests in this project are not for this project. They got copied when the repository was forked from asciidoc-bib, but never updated after that. Feel free to correct me if that's mistaken.
It is unfortunately true. I will try to add some tests this weekend.
That's great news. Thanks!
Can someone provide hints/directsions for how to run the tests? I am willing to contribute documentation once we get them to run. EDIT: Note that I am a beginner in ruby, so some of what is unclear to me might be easy for others.
Some problems I ran into, as well as suggestions for improvement:
bundle install
throws an error because the Gemfile is missing. Adding this very simpleGemfile
should fix the isse:spec
task. I guess these lines should be added toasciidoctor-bibtex.gemspec
:spec
task looks for files named*_spec.rb
. Since the tests in this repo are using a different naming convention, a different pattern needs to be specified in theRakefile
:bundle exec rake spec
, then rspec suceeds in finding the test cases, but it throws a lot of load errors. Further investigation of thetest_helpers.rb
file suggests that simplecov and minitests are used in addition to rspec. That's when I gave up and started writing this ticket.