opal-test-unit 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opal/test/unit/rake_task.rb +14 -10
- data/lib/opal/test/unit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a914df461787b1ed9bb27737904dfd37ab5279f7
|
4
|
+
data.tar.gz: 650292db78b2cf43b46cc4d7b58353b36d3fc138
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 357f2dd79936402f9e8aac415a5f8840a39b147dc6579e05f899a99074955ef9c427f66a0e9a3b8798ae04aa218582923e3e9b7071f10664504dcd4075ad16e1
|
7
|
+
data.tar.gz: f3f84f0f5c7a484bdda1c39e97162803e8874582e804d1e458acc6ba6273586b0c61ea32eaf4097708bea31397ec0deba3d8e69507deb65de5a96c9ae5e681e9
|
@@ -2,17 +2,21 @@ require "opal"
|
|
2
2
|
require "rake"
|
3
3
|
require_relative "runner"
|
4
4
|
|
5
|
-
module Opal
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
module Opal
|
6
|
+
module Test
|
7
|
+
module Unit
|
8
|
+
class RakeTask
|
9
|
+
include Rake::DSL
|
10
|
+
DEFAULT_NAME = "test:opal"
|
11
|
+
attr_reader :rake_task
|
10
12
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
def initialize(name = DEFAULT_NAME, directory, **options)
|
14
|
+
runner = Opal::Test::Unit::Runner.new(directory, **options)
|
15
|
+
desc "Run test cases on opal"
|
16
|
+
@rake_task = task name do
|
17
|
+
runner.run
|
18
|
+
end
|
19
|
+
end
|
16
20
|
end
|
17
21
|
end
|
18
22
|
end
|