File: test_helper.rb

package info (click to toggle)
ruby-prof 1.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,048 kB
  • sloc: ruby: 9,805; ansic: 2,968; makefile: 7
file content (20 lines) | stat: -rw-r--r-- 668 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# encoding: UTF-8

# To make testing/debugging easier test within this source tree versus an installed gem
require 'bundler/setup'

# Add ext directory to load path to make it easier to test locally built extensions
ext_path = File.expand_path(File.join(__dir__, '..', 'ext', 'ruby_prof'))
$LOAD_PATH.unshift(File.expand_path(ext_path))

# Now load code
require 'ruby-prof'

# Disable minitest parallel tests. The problem is the thread switching will change test results
# (self vs wait time)
ENV["MT_CPU"] = "0" # New versions of minitest
ENV["N"] = "0" # Older versions of minitest

require 'minitest/autorun'
class TestCase < Minitest::Test
end