jasmine-coverage 0.2.9 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTU5NzdiY2RjODFhOTkzOWI4OTMzNDFlZWYxN2M2OGRkOTY4MTUyNA==
4
+ M2ZhNTNlNWJmZTliMGM1Njk5ZDA0NWI1NDYyZmY1ZDVlYjQ2MjQ3OA==
5
5
  data.tar.gz: !binary |-
6
- MzdmYThiZmZhMTZkMjkzYWJiYmU0ZDc5NGRlYTUwYzVmOWNjMzhkZQ==
6
+ MDY5MDkzNWU1NjJkNTRmNDA2MjVjNTMxMTNkNTI3Yjk5NzgyYmNjMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2EwZTEyYjk2YzMxMzZhNmM3ZjAyY2JiZjcwMjhkYmUxMTU1ZGIwY2ZhNzZi
10
- ZjYxZDdmMzk1NzI3ZGIwNDY5Yjg4Nzk5NGQ5NmI5YTA3MDM1NzgzNmIzNTFi
11
- ODc3MGNkODg3ZGVlMzUwYTQ2YTNiNTIyYTI0OGU4YzUzMTY0NDk=
9
+ YjVmMmM4YzdkODIxZDIwNWMxN2UwYWM1ZDYyODdhYmU2NDY2MzdkOGQwNDY4
10
+ OWI4N2NiMGYxM2QyMjVlOThlNzg5YjQ0YTBhMmZmMmRlNDhkZDQ2MTMzNGMy
11
+ MzMxMzlmYWQ4ZjNlMWUxODk4NGFmYjNkMGQyYTkxNjY2NTAzZTA=
12
12
  data.tar.gz: !binary |-
13
- Y2FjNzliN2QzODAwODk2NGRkNDM0YWYyYjVkODg1NWNjZWI3ZTFhNzc2ZTI3
14
- ODgzZTMzODc0NzQxZDk4Y2YzMDg0MGM4ZGMxYjVjM2ExMjIzMjI4MzFjMDcx
15
- Y2I2ZjQ2ODRmNmExODBiMTM5N2MzZGFhNGY0NWJjMzUzNTJkMDE=
13
+ N2Y5NDE5Y2NiNjc0NGZkMThjNGMwMDZlYWYxMzBiNzE4NGM3NDk5M2I3YzNj
14
+ MDUyYzA2OWJmYzc4Y2ViNjk1Y2UxYTdkZjJkNDM3YjAyMWFhNDEyNzE4NjY2
15
+ OGQ4MTQ4ZjA3MzA3OTk1YmVjZTJiMzJlZWI2OTFjNDJmZTUwYTA=
data/README.md CHANGED
@@ -10,8 +10,11 @@ Coverage is provided by the [jscoverage](http://siliconforks.com/jscoverage/manu
10
10
 
11
11
  ## Installation
12
12
 
13
- First, ensure you have a binary of [jscoverage](http://siliconforks.com/jscoverage/manual.html)
14
- available on your path. The installation steps are on the webpage.
13
+ First, make sure you have jscoverage and qtmake installed. Qtmake is required by a gem we depend on called jasmine-headless-webkit. Eg on Linux:
14
+
15
+ sudo apt-get install jscoverage libqtwebkit-dev qt4-dev-tools
16
+
17
+ Then add jasmine-coverage to your Gemfile
15
18
 
16
19
  gem 'jasmine-coverage'
17
20
 
@@ -1,5 +1,5 @@
1
1
  module Jasmine
2
2
  module Coverage
3
- VERSION = '0.2.9'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
@@ -6,6 +6,9 @@ if env =~ /^(development|test)$/
6
6
  namespace :jasmine do
7
7
  desc 'Runs jasmine with a coverage report'
8
8
  task :coverage do
9
+ spec = Gem::Specification.find_by_name("jasmine-headless-webkit-firstbanco")
10
+ specrunner_executable = "#{spec.gem_dir}/ext/jasmine-webkit-specrunner/jasmine-webkit-specrunner"
11
+ raise "Gem jasmine-headless-webkit-firstbanco was not installed properly. A compiled executable is not available at #{specrunner_executable}" unless File.exist?(specrunner_executable)
9
12
 
10
13
  require 'jasmine-headless-webkit'
11
14
  # Instill our patches for jasmine-headless to work
@@ -63,7 +66,7 @@ if env =~ /^(development|test)$/
63
66
  errStr = <<-EOS
64
67
  **********************************************************************************************
65
68
 
66
- JSCoverage exited with error code: #{status_code}
69
+ JSCoverage or Jasmine Headless Webkit exited with error code: #{status_code}
67
70
 
68
71
  This implies one of six things:
69
72
  0) Your JS files had exactly zero instructions. Are they all blank or just comments?
@@ -87,8 +90,9 @@ The file can be found here: #{test_rig_folder}/jscoverage-test-rig.html
87
90
  **********************************************************************************************
88
91
 
89
92
  EOS
93
+ p "Jasmine Coverage ran jasmine-headless-webkit and it returned status code #{status_code}"
90
94
 
91
- fail errStr if status_code == 1
95
+ fail errStr if status_code == 1 || !File.exist?(rr_file)
92
96
  # Delete the test_rig folder if not required
93
97
  if ENV['JASMINE_COVERAGE_KEEP_TEST_RIG'] == 'false'
94
98
  FileUtils.rm_rf test_rig_folder
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasmine-coverage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harry Lascelles
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-17 00:00:00.000000000 Z
11
+ date: 2014-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jasmine-headless-webkit-firstbanco
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.0.rc.4
19
+ version: 0.9.0.rc.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.9.0.rc.4
26
+ version: 0.9.0.rc.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: coffee-script-source
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -52,7 +52,8 @@ dependencies:
52
52
  - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description:
55
+ description: A gem that runs jasmine javascript tests with all the goodness of coverage
56
+ reports.
56
57
  email:
57
58
  - harry@harrylascelles.com
58
59
  executables: []