File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ GoGem::RakeTask.new("gem_name")
47
47
Following tasks are generated
48
48
49
49
* ` rake go:test `
50
+ * ` rake go:testrace `
50
51
51
52
#### Example (With config)
52
53
``` ruby
63
64
Following tasks are generated
64
65
65
66
* ` rake go5:test `
67
+ * ` rake go5:testrace `
66
68
67
69
#### Available configurations
68
70
* ` task_namespace ` : task namespace (default: ` :go ` )
Original file line number Diff line number Diff line change @@ -65,6 +65,13 @@ def initialize(gem_name)
65
65
sh RakeTask . build_env_vars , "#{ go_bin_path } test #{ go_test_args } ./..."
66
66
end
67
67
end
68
+
69
+ desc "Run go test -race"
70
+ task ( :testrace ) do
71
+ within_ext_dir do
72
+ sh RakeTask . build_env_vars , "#{ go_bin_path } test #{ go_test_args } -race ./..."
73
+ end
74
+ end
68
75
end
69
76
end
70
77
Original file line number Diff line number Diff line change 15
15
end
16
16
17
17
it { should be_task_defined ( "go:test" ) }
18
+ it { should be_task_defined ( "go:testrace" ) }
18
19
end
19
20
20
21
context "with params" do
28
29
end
29
30
30
31
it { should be_task_defined ( "go5:test" ) }
32
+ it { should be_task_defined ( "go5:testrace" ) }
31
33
end
32
34
end
33
35
end
You can’t perform that action at this time.
0 commit comments