jasmine-coverage 0.1.6 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -20,6 +20,10 @@ the master branch of that project.
|
|
20
20
|
gem 'jasmine-coverage'
|
21
21
|
gem 'jasmine-headless-webkit', :git => 'git://github.com/johnbintz/jasmine-headless-webkit.git'
|
22
22
|
|
23
|
+
Finally, add this to your Rakefile
|
24
|
+
|
25
|
+
require 'jasmine/coverage'
|
26
|
+
|
23
27
|
# Usage
|
24
28
|
|
25
29
|
To use jasmine-coverage, run the rake task.
|
data/Rakefile
ADDED
@@ -16,13 +16,15 @@ module Jasmine::Headless
|
|
16
16
|
FileUtils.mkdir_p test_rigfolder
|
17
17
|
|
18
18
|
p "Copying all view files and potential javascript fixture folders so the jasmine-coverage run has access to the html fixtures."
|
19
|
-
#FileUtils.copy_entry("#{Jasmine::Coverage.output_dir}/../../spec", "#{test_rigfolder}/spec")
|
20
|
-
#FileUtils.copy_entry("#{Jasmine::Coverage.output_dir}/../../app", "#{test_rigfolder}/app")
|
21
19
|
FileUtils.mkdir_p "#{test_rigfolder}/target/fixtures"
|
22
20
|
FileUtils.copy_entry("#{Jasmine::Coverage.output_dir}/../fixtures", "#{test_rigfolder}/target/fixtures") rescue nil
|
23
21
|
FileUtils.mkdir_p "#{test_rigfolder}/target/views"
|
24
22
|
FileUtils.copy_entry("#{Jasmine::Coverage.output_dir}/../views", "#{test_rigfolder}/target/views") rescue nil
|
25
23
|
|
24
|
+
# Here we must also copy the spec and app folders to that we have access to all the files if we need them for the test rig
|
25
|
+
FileUtils.copy_entry("#{Jasmine::Coverage.output_dir}/../../spec", "#{test_rigfolder}/spec")
|
26
|
+
FileUtils.copy_entry("#{Jasmine::Coverage.output_dir}/../../app", "#{test_rigfolder}/app")
|
27
|
+
|
26
28
|
jss = str.scan(/<script type="text\/javascript" src="(.*)"><\/script>/)
|
27
29
|
jss << str.scan(/<link rel="stylesheet" href="(.*)" type="text\/css" \/>/)
|
28
30
|
jss << str.scan(/\.coffee\.js'\] = '(.*)';<\/script>/)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jasmine-coverage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -68,11 +68,13 @@ extra_rdoc_files: []
|
|
68
68
|
files:
|
69
69
|
- lib/jasmine/coverage.rb
|
70
70
|
- lib/jasmine/coverage/version.rb
|
71
|
+
- lib/jasmine/coverage/jasmine_coverage_railtie.rb
|
71
72
|
- lib/tasks/jasmine_headless_coverage_patches.rb
|
72
73
|
- lib/tasks/jasmine_coverage.rake
|
73
74
|
- lib/tasks/jscoverage.js
|
74
75
|
- lib/tasks/coverage_output_generator.js
|
75
76
|
- README.md
|
77
|
+
- Rakefile
|
76
78
|
homepage: https://github.com/firstbanco/jasmine-coverage
|
77
79
|
licenses: []
|
78
80
|
post_install_message:
|