File: unit_test.rake

package info (click to toggle)
ruby-liquid-c 4.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 504 kB
  • sloc: ansic: 3,866; ruby: 1,151; makefile: 7
file content (14 lines) | stat: -rw-r--r-- 334 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

namespace :test do
  unit_test_config = lambda do |t|
    t.libs << "lib" << "test"
    t.test_files = FileList["test/unit/**/*_test.rb"]
  end

  Rake::TestTask.new(unit: :compile, &unit_test_config)

  namespace :unit do
    RubyMemcheck::TestTask.new(valgrind: :compile, &unit_test_config)
  end
end