Excellent, thank you. I wasn't sure what workflow / setup steps were needed.
In addition to the below, on a clean environment I also had to add the 'rdoc' gem, but then it worked beautifully. Are there any other articles or info about how the testing is set up (not unit testing specifically, but rake, using with bundler, what folder structure is needed, what files are read, etc)? On Friday, January 4, 2019 at 7:18:39 AM UTC-6, Christian MICHON wrote: > > Hi and welcome, > > if you look at https://rubygems.org/gems/sequel (dev dependencies) and > https://github.com/tzinfo/tzinfo/wiki/Resolving-TZInfo::DataSourceNotFound-Errors, > > you'll notice you need the following gems in your bundler environment: > > gem 'activemodel' > gem 'minitest' > gem 'minitest-hooks' > gem 'minitest-shared_description' > gem 'nokogiri' > gem 'rake' > gem 'tzinfo' > gem 'tzinfo-data' > > You can then hit "bundle exec rake" and on sequel 5.16.0 you'll get this: > > Finished in 2.976661s, 633.9318 runs/s, 1718.7043 assertions/s. > 1887 runs, 5116 assertions, 0 failures, 0 errors, 0 skips > Finished in 4.610282s, 290.2208 runs/s, 758.0881 assertions/s. > 1338 runs, 3495 assertions, 0 failures, 0 errors, 0 skips > Finished in 13.298185s, 210.0287 runs/s, 620.8366 assertions/s. > 2793 runs, 8256 assertions, 0 failures, 0 errors, 0 skips > > These tests are indeed unit tests for Sequel's code itself. Please note > you do not need any database drivers for this. > > HIH. > Christian > > On Friday, January 4, 2019 at 1:36:16 PM UTC+1, [email protected] > wrote: >> >> I apologize in advance for a question that will probably seem obvious, >> but please keep in mind this is coming from a beginner's perspective. >> >> Are unit tests present in the source? >> >> I'm totally new to mintest, as well as unit testing in Ruby, but a quick >> source search for "minitest" brought up some results that I looked through. >> I also looked at minitest's docs, and based off the guidance on running >> tests from the command line >> <http://docs.seattlerb.org/minitest/#label-Running+Your+Tests>, I ran >> "bundle exec ruby -Ilib:test spec/model/spec_helper.rb". However, the >> result of that was that there were "0 runs, 0 assertions, 0 failures, 0 >> errors, 0 skips". It seems like I'm on the wrong path altogether. >> >> Are the minitest bits of code just for testing code that uses Sequel >> <http://sequel.jeremyevans.net/rdoc/files/doc/testing_rdoc.html>? (I was >> thinking there would be unit tests for Sequel's code itself). >> > -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
