We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcb61fa commit 79c48a5Copy full SHA for 79c48a5
tasks/rspec.rake
@@ -2,10 +2,27 @@ begin
2
require 'rspec'
3
require 'rspec/core/rake_task'
4
5
+ desc " Run all examples with Valgrind"
6
+ namespace :spec do
7
+ task :valgrind do
8
+ VALGRIND_OPTS = %w{
9
+ --num-callers=50
10
+ --error-limit=no
11
+ --partial-loads-ok=yes
12
+ --undef-value-errors=no
13
+ --trace-children=yes
14
+ }
15
+ cmdline = "valgrind #{VALGRIND_OPTS.join(' ')} bundle exec rake spec"
16
+ puts cmdline
17
+ system cmdline
18
+ end
19
20
+
21
desc "Run all examples with RCov"
22
RSpec::Core::RakeTask.new('spec:rcov') do |t|
23
t.rcov = true
24
end
25
26
RSpec::Core::RakeTask.new('spec') do |t|
27
t.verbose = true
28
0 commit comments