earth 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/earth.gemspec +2 -2
- data/features/automobile_fuel.feature +100 -0
- data/features/bus_class.feature +12 -42
- data/features/bus_fuel.feature +114 -0
- data/features/egrid_subregion.feature +113 -15
- data/features/support/imports/automobile_fuel_bad.csv +3 -3
- data/features/support/imports/automobile_fuel_good.csv +3 -3
- data/features/support/imports/bus_class_bad.csv +2 -3
- data/features/support/imports/bus_class_good.csv +2 -3
- data/features/support/imports/bus_fuel_bad.csv +3 -0
- data/features/support/imports/bus_fuel_good.csv +3 -0
- data/features/support/imports/egrid_subregion_bad.csv +2 -3
- data/features/support/imports/egrid_subregion_good.csv +2 -3
- data/lib/earth/automobile/automobile_fuel.rb +63 -58
- data/lib/earth/automobile/automobile_fuel/data_miner.rb +110 -0
- data/lib/earth/bus.rb +3 -0
- data/lib/earth/bus/bus_class.rb +21 -2
- data/lib/earth/bus/bus_class/data_miner.rb +79 -43
- data/lib/earth/bus/bus_fuel.rb +18 -0
- data/lib/earth/bus/bus_fuel/data_miner.rb +204 -0
- data/lib/earth/bus/bus_fuel_control.rb +7 -0
- data/lib/earth/bus/bus_fuel_control/data_miner.rb +41 -0
- data/lib/earth/bus/bus_fuel_year_control.rb +13 -0
- data/lib/earth/bus/bus_fuel_year_control/data_miner.rb +35 -0
- data/lib/earth/bus/data_miner.rb +3 -0
- data/lib/earth/fuel/fuel.rb +16 -0
- data/lib/earth/fuel/fuel/data_miner.rb +6 -1
- data/lib/earth/locality/egrid_region.rb +3 -2
- data/lib/earth/locality/egrid_region/data_miner.rb +8 -31
- data/lib/earth/locality/egrid_subregion.rb +18 -2
- data/lib/earth/locality/egrid_subregion/data_miner.rb +109 -56
- data/spec/earth/automobile/automobile_fuel_spec.rb +9 -12
- data/spec/earth/bus/bus_class_spec.rb +12 -0
- data/spec/earth/bus/bus_fuel_control_spec.rb +12 -0
- data/spec/earth/bus/bus_fuel_year_control_spec.rb +16 -0
- data/spec/earth/pet/species_spec.rb +0 -1
- data/spec/earth_spec.rb +2 -2
- metadata +46 -16
data/earth.gemspec
CHANGED
@@ -4,8 +4,8 @@ require "earth/version"
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "earth"
|
7
|
-
s.version =
|
8
|
-
s.date = "2011-02-
|
7
|
+
s.version = "0.4.1"
|
8
|
+
s.date = "2011-02-21"
|
9
9
|
s.platform = Gem::Platform::RUBY
|
10
10
|
s.authors = ["Seamus Abshere", "Derek Kastner", "Andy Rossmeissl"]
|
11
11
|
s.email = %q{andy@rossmeissl.net}
|
@@ -23,6 +23,56 @@ Feature: Data import for AutomobileFuel
|
|
23
23
|
When a data import verifies "Blend portion should be from 0 to 1 if present"
|
24
24
|
Then the verification should be successful
|
25
25
|
|
26
|
+
Scenario: Successfully verifying that co2 emission factor is 0 or more
|
27
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_good"
|
28
|
+
When a data import verifies "Co2 emission factor should be 0 or more"
|
29
|
+
Then the verification should be successful
|
30
|
+
|
31
|
+
Scenario: Successfully verifying that co2 biogenic emission factor is 0 or more
|
32
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_good"
|
33
|
+
When a data import verifies "Co2 biogenic emission factor should be 0 or more"
|
34
|
+
Then the verification should be successful
|
35
|
+
|
36
|
+
Scenario: Successfully verifying that ch4 emission factor is > 0
|
37
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_good"
|
38
|
+
When a data import verifies "Ch4 emission factor should be > 0"
|
39
|
+
Then the verification should be successful
|
40
|
+
|
41
|
+
Scenario: Successfully verifying that n2o emission factor is > 0
|
42
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_good"
|
43
|
+
When a data import verifies "N2o emission factor should be > 0"
|
44
|
+
Then the verification should be successful
|
45
|
+
|
46
|
+
Scenario: Successfully verifying that hfc emission factor is > 0
|
47
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_good"
|
48
|
+
When a data import verifies "Hfc emission factor should be > 0"
|
49
|
+
Then the verification should be successful
|
50
|
+
|
51
|
+
Scenario: Successfully verifying that co2 emission factor units are kilograms per litre
|
52
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_good"
|
53
|
+
When a data import verifies "Co2 emission factor units should be kilograms per litre"
|
54
|
+
Then the verification should be successful
|
55
|
+
|
56
|
+
Scenario: Successfully verifying that co2 biogenic emission factor units are kilograms per litre
|
57
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_good"
|
58
|
+
When a data import verifies "Co2 biogenic emission factor units should be kilograms per litre"
|
59
|
+
Then the verification should be successful
|
60
|
+
|
61
|
+
Scenario: Successfully verifying that ch4 emission factor units are kilograms per litre
|
62
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_good"
|
63
|
+
When a data import verifies "Ch4 emission factor units should be kilograms co2e per litre"
|
64
|
+
Then the verification should be successful
|
65
|
+
|
66
|
+
Scenario: Successfully verifying that n2o emission factor units are kilograms per litre
|
67
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_good"
|
68
|
+
When a data import verifies "N2o emission factor units should be kilograms co2e per litre"
|
69
|
+
Then the verification should be successful
|
70
|
+
|
71
|
+
Scenario: Successfully verifying that hfc emission factor units are kilograms per litre
|
72
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_good"
|
73
|
+
When a data import verifies "Hfc emission factor units should be kilograms co2e per litre"
|
74
|
+
Then the verification should be successful
|
75
|
+
|
26
76
|
Scenario: Failing to verify that base fuel name is never missing
|
27
77
|
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_bad"
|
28
78
|
When a data import verifies "Base fuel name should never be missing"
|
@@ -42,3 +92,53 @@ Feature: Data import for AutomobileFuel
|
|
42
92
|
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_bad"
|
43
93
|
When a data import verifies "Blend portion should be from 0 to 1 if present"
|
44
94
|
Then the verification should not be successful
|
95
|
+
|
96
|
+
Scenario: Failing to verify that co2 emission factor is 0 or more
|
97
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_bad"
|
98
|
+
When a data import verifies "Co2 emission factor should be 0 or more"
|
99
|
+
Then the verification should not be successful
|
100
|
+
|
101
|
+
Scenario: Failing to verify that co2 biogenic emission factor is 0 or more
|
102
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_bad"
|
103
|
+
When a data import verifies "Co2 biogenic emission factor should be 0 or more"
|
104
|
+
Then the verification should not be successful
|
105
|
+
|
106
|
+
Scenario: Failing to verify that ch4 emission factor is > 0
|
107
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_bad"
|
108
|
+
When a data import verifies "Ch4 emission factor should be > 0"
|
109
|
+
Then the verification should not be successful
|
110
|
+
|
111
|
+
Scenario: Failing to verify that n2o emission factor is > 0
|
112
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_bad"
|
113
|
+
When a data import verifies "N2o emission factor should be > 0"
|
114
|
+
Then the verification should not be successful
|
115
|
+
|
116
|
+
Scenario: Failing to verify that hfc emission factor is > 0
|
117
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_bad"
|
118
|
+
When a data import verifies "Hfc emission factor should be > 0"
|
119
|
+
Then the verification should not be successful
|
120
|
+
|
121
|
+
Scenario: Failing to verify that co2 emission factor units are kilograms per litre
|
122
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_bad"
|
123
|
+
When a data import verifies "Co2 emission factor units should be kilograms per litre"
|
124
|
+
Then the verification should not be successful
|
125
|
+
|
126
|
+
Scenario: Failing to verify that co2 biogenic emission factor units are kilograms per litre
|
127
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_bad"
|
128
|
+
When a data import verifies "Co2 biogenic emission factor units should be kilograms per litre"
|
129
|
+
Then the verification should not be successful
|
130
|
+
|
131
|
+
Scenario: Failing to verify that ch4 emission factor units are kilograms per litre
|
132
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_bad"
|
133
|
+
When a data import verifies "Ch4 emission factor units should be kilograms co2e per litre"
|
134
|
+
Then the verification should not be successful
|
135
|
+
|
136
|
+
Scenario: Failing to verify that n2o emission factor units are kilograms per litre
|
137
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_bad"
|
138
|
+
When a data import verifies "N2o emission factor units should be kilograms co2e per litre"
|
139
|
+
Then the verification should not be successful
|
140
|
+
|
141
|
+
Scenario: Failing to verify that hfc emission factor units are kilograms per litre
|
142
|
+
Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_bad"
|
143
|
+
When a data import verifies "Hfc emission factor units should be kilograms co2e per litre"
|
144
|
+
Then the verification should not be successful
|
data/features/bus_class.feature
CHANGED
@@ -3,34 +3,19 @@ Feature: Data import for BusClass
|
|
3
3
|
I want to import BusClass data
|
4
4
|
So that I can perform bus class-based calculations
|
5
5
|
|
6
|
-
Scenario: Successfully verifying that
|
6
|
+
Scenario: Successfully verifying that some attributes are greater than zero
|
7
7
|
Given a "BusClass" data import fetches results listed in "bus_class_good"
|
8
|
-
When a data import verifies "
|
8
|
+
When a data import verifies "Some attributes should be greater than zero"
|
9
9
|
Then the verification should be successful
|
10
10
|
|
11
|
-
Scenario: Successfully verifying that
|
11
|
+
Scenario: Successfully verifying that some attributes are zero or more
|
12
12
|
Given a "BusClass" data import fetches results listed in "bus_class_good"
|
13
|
-
When a data import verifies "
|
13
|
+
When a data import verifies "Some attributes should be zero or more"
|
14
14
|
Then the verification should be successful
|
15
15
|
|
16
|
-
Scenario: Successfully verifying that distance units are
|
16
|
+
Scenario: Successfully verifying that distance units are correct
|
17
17
|
Given a "BusClass" data import fetches results listed in "bus_class_good"
|
18
|
-
When a data import verifies "
|
19
|
-
Then the verification should be successful
|
20
|
-
|
21
|
-
Scenario: Successfully verifying that speed units are kilometres per hour
|
22
|
-
Given a "BusClass" data import fetches results listed in "bus_class_good"
|
23
|
-
When a data import verifies "Speed units should be kilometres per hour"
|
24
|
-
Then the verification should be successful
|
25
|
-
|
26
|
-
Scenario: Successfully verifying that diesel intensity and alternative fuels intensity units are litres per kilometre
|
27
|
-
Given a "BusClass" data import fetches results listed in "bus_class_good"
|
28
|
-
When a data import verifies "Diesel intensity and alternative fuel intensity units should be litres per kilometre"
|
29
|
-
Then the verification should be successful
|
30
|
-
|
31
|
-
Scenario: Successfully verifying that air conditioning emission factor units are kilograms per kilometre
|
32
|
-
Given a "BusClass" data import fetches results listed in "bus_class_good"
|
33
|
-
When a data import verifies "Air conditioning emission factor units should be kilograms per kilometre"
|
18
|
+
When a data import verifies "Units should be correct"
|
34
19
|
Then the verification should be successful
|
35
20
|
|
36
21
|
Scenario: Successfully verifying that fallbacks satisfy same criteria as data
|
@@ -38,32 +23,17 @@ Feature: Data import for BusClass
|
|
38
23
|
When a data import verifies "Fallbacks should satisfy same constraints as data"
|
39
24
|
Then the verification should be successful
|
40
25
|
|
41
|
-
Scenario: Failing to verify that
|
42
|
-
Given a "BusClass" data import fetches results listed in "bus_class_bad"
|
43
|
-
When a data import verifies "Distance, passengers, speed, and diesel intensity should be greater than zero"
|
44
|
-
Then the verification should not be successful
|
45
|
-
|
46
|
-
Scenario: Failing to verify that alternative fuels intensity and air conditioning emission factor are zero or more
|
47
|
-
Given a "BusClass" data import fetches results listed in "bus_class_bad"
|
48
|
-
When a data import verifies "Alternative fuels intensity and air conditioning emission factor should be zero or more"
|
49
|
-
Then the verification should not be successful
|
50
|
-
|
51
|
-
Scenario: Failing to verify that distance units are kilometres
|
52
|
-
Given a "BusClass" data import fetches results listed in "bus_class_bad"
|
53
|
-
When a data import verifies "Distance units should be kilometres"
|
54
|
-
Then the verification should not be successful
|
55
|
-
|
56
|
-
Scenario: Failing to verify that speed units are kilometres per hour
|
26
|
+
Scenario: Failing to verify that some attributes are greater than zero
|
57
27
|
Given a "BusClass" data import fetches results listed in "bus_class_bad"
|
58
|
-
When a data import verifies "
|
28
|
+
When a data import verifies "Some attributes should be greater than zero"
|
59
29
|
Then the verification should not be successful
|
60
30
|
|
61
|
-
Scenario: Failing to verify that
|
31
|
+
Scenario: Failing to verify that some attributes are zero or more
|
62
32
|
Given a "BusClass" data import fetches results listed in "bus_class_bad"
|
63
|
-
When a data import verifies "
|
33
|
+
When a data import verifies "Some attributes should be zero or more"
|
64
34
|
Then the verification should not be successful
|
65
35
|
|
66
|
-
Scenario: Failing to verify that
|
36
|
+
Scenario: Failing to verify that distance units are correct
|
67
37
|
Given a "BusClass" data import fetches results listed in "bus_class_bad"
|
68
|
-
When a data import verifies "
|
38
|
+
When a data import verifies "Units should be correct"
|
69
39
|
Then the verification should not be successful
|
@@ -0,0 +1,114 @@
|
|
1
|
+
Feature: Data import for BusFuel
|
2
|
+
As a data user
|
3
|
+
I want to import BusFuel data
|
4
|
+
So that I can perform bus fuel-based calculations
|
5
|
+
|
6
|
+
Scenario: Successfully verifying that fuel name is never missing
|
7
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_good"
|
8
|
+
When a data import verifies "Fuel name should never be missing"
|
9
|
+
Then the verification should be successful
|
10
|
+
|
11
|
+
Scenario: Successfully verifying that energy content is greater than zero if present
|
12
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_good"
|
13
|
+
When a data import verifies "Energy content should be greater than zero if present"
|
14
|
+
Then the verification should be successful
|
15
|
+
|
16
|
+
Scenario: Successfully verifying that co2 emission factor is 0 or more
|
17
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_good"
|
18
|
+
When a data import verifies "Co2 emission factor should be 0 or more"
|
19
|
+
Then the verification should be successful
|
20
|
+
|
21
|
+
Scenario: Successfully verifying that co2 biogenic emission factor is 0 or more
|
22
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_good"
|
23
|
+
When a data import verifies "Co2 biogenic emission factor should be 0 or more"
|
24
|
+
Then the verification should be successful
|
25
|
+
|
26
|
+
Scenario: Successfully verifying that ch4 emission factor is > 0
|
27
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_good"
|
28
|
+
When a data import verifies "Ch4 emission factor should be > 0"
|
29
|
+
Then the verification should be successful
|
30
|
+
|
31
|
+
Scenario: Successfully verifying that n2o emission factor is > 0
|
32
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_good"
|
33
|
+
When a data import verifies "N2o emission factor should be > 0"
|
34
|
+
Then the verification should be successful
|
35
|
+
|
36
|
+
Scenario: Successfully verifying that energy content units are megajoules per litre if present
|
37
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_good"
|
38
|
+
When a data import verifies "Energy content units should be megajoules per litre if present"
|
39
|
+
Then the verification should be successful
|
40
|
+
|
41
|
+
Scenario: Successfully verifying that co2 emission factor units are kilgrams per litre
|
42
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_good"
|
43
|
+
When a data import verifies "Co2 emission factor units should be kilograms per litre"
|
44
|
+
Then the verification should be successful
|
45
|
+
|
46
|
+
Scenario: Successfully verifying that co2 biogenic emission factor units are kilgrams per litre
|
47
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_good"
|
48
|
+
When a data import verifies "Co2 biogenic emission factor units should be kilograms per litre"
|
49
|
+
Then the verification should be successful
|
50
|
+
|
51
|
+
Scenario: Successfully verifying that ch4 emission factor units are kilgrams co2e per kilometre
|
52
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_good"
|
53
|
+
When a data import verifies "Ch4 emission factor units should be kilograms co2e per kilometre"
|
54
|
+
Then the verification should be successful
|
55
|
+
|
56
|
+
Scenario: Successfully verifying that n2o emission factor units are kilgrams co2e per kilometre
|
57
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_good"
|
58
|
+
When a data import verifies "N2o emission factor units should be kilograms co2e per kilometre"
|
59
|
+
Then the verification should be successful
|
60
|
+
|
61
|
+
Scenario: Failing to verify that fuel name is never missing
|
62
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_bad"
|
63
|
+
When a data import verifies "Fuel name should never be missing"
|
64
|
+
Then the verification should not be successful
|
65
|
+
|
66
|
+
Scenario: Failing to verify that energy content is greater than zero if present
|
67
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_bad"
|
68
|
+
When a data import verifies "Energy content should be greater than zero if present"
|
69
|
+
Then the verification should not be successful
|
70
|
+
|
71
|
+
Scenario: Failing to verify that co2 emission factor is 0 or more
|
72
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_bad"
|
73
|
+
When a data import verifies "Co2 emission factor should be 0 or more"
|
74
|
+
Then the verification should not be successful
|
75
|
+
|
76
|
+
Scenario: Failing to verify that co2 biogenic emission factor is 0 or more
|
77
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_bad"
|
78
|
+
When a data import verifies "Co2 biogenic emission factor should be 0 or more"
|
79
|
+
Then the verification should not be successful
|
80
|
+
|
81
|
+
Scenario: Failing to verify that ch4 emission factor is > 0
|
82
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_bad"
|
83
|
+
When a data import verifies "Ch4 emission factor should be > 0"
|
84
|
+
Then the verification should not be successful
|
85
|
+
|
86
|
+
Scenario: Failing to verify that n2o emission factor is > 0
|
87
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_bad"
|
88
|
+
When a data import verifies "N2o emission factor should be > 0"
|
89
|
+
Then the verification should not be successful
|
90
|
+
|
91
|
+
Scenario: Failing to verify that energy content units are megajoules per litre if present
|
92
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_bad"
|
93
|
+
When a data import verifies "Energy content units should be megajoules per litre if present"
|
94
|
+
Then the verification should not be successful
|
95
|
+
|
96
|
+
Scenario: Failing to verify that co2 emission factor units are kilgrams per litre
|
97
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_bad"
|
98
|
+
When a data import verifies "Co2 emission factor units should be kilograms per litre"
|
99
|
+
Then the verification should not be successful
|
100
|
+
|
101
|
+
Scenario: Failing to verify that co2 biogenic emission factor units are kilgrams per litre
|
102
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_bad"
|
103
|
+
When a data import verifies "Co2 biogenic emission factor units should be kilograms per litre"
|
104
|
+
Then the verification should not be successful
|
105
|
+
|
106
|
+
Scenario: Failing to verify that ch4 emission factor units are kilgrams co2e per kilometre
|
107
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_bad"
|
108
|
+
When a data import verifies "Ch4 emission factor units should be kilograms co2e per kilometre"
|
109
|
+
Then the verification should not be successful
|
110
|
+
|
111
|
+
Scenario: Failing to verify that n2o emission factor units are kilgrams co2e per kilometre
|
112
|
+
Given a "BusFuel" data import fetches results listed in "bus_fuel_bad"
|
113
|
+
When a data import verifies "N2o emission factor units should be kilograms co2e per kilometre"
|
114
|
+
Then the verification should not be successful
|
@@ -3,15 +3,64 @@ Feature: Data import for EgridSubregion
|
|
3
3
|
I want to import EgridSubregion data
|
4
4
|
So that I can perform eGRID subregion-based calculations
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
Scenario: Successfully verifying that egrid region name is never missing
|
7
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
|
8
|
+
When a data import verifies "Egrid region name should never be missing"
|
9
|
+
Then the verification should be successful
|
10
|
+
|
11
|
+
Scenario: Successfully verifying that net generation is > 0
|
12
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
|
13
|
+
When a data import verifies "Net generation should be > 0"
|
14
|
+
Then the verification should be successful
|
15
|
+
|
16
|
+
Scenario: Successfully verifying that electricity co2 emission factor is > 0
|
17
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
|
18
|
+
When a data import verifies "Electricity co2 emission factor should be > 0"
|
19
|
+
Then the verification should be successful
|
20
|
+
|
21
|
+
Scenario: Successfully verifying that electricity ch4 emission factor is > 0
|
22
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
|
23
|
+
When a data import verifies "Electricity ch4 emission factor should be > 0"
|
24
|
+
Then the verification should be successful
|
25
|
+
|
26
|
+
Scenario: Successfully verifying that electricity n2o emission factor is > 0
|
27
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
|
28
|
+
When a data import verifies "Electricity n2o emission factor should be > 0"
|
29
|
+
Then the verification should be successful
|
30
|
+
|
31
|
+
Scenario: Successfully verifying that electricity emission factor is > 0
|
32
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
|
33
|
+
When a data import verifies "Electricity emission factor should be > 0"
|
34
|
+
Then the verification should be successful
|
11
35
|
|
12
|
-
Scenario: Successfully verifying that electricity emission factor is
|
36
|
+
Scenario: Successfully verifying that electricity co2 biogenic emission factor is 0
|
13
37
|
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
|
14
|
-
When a data import verifies "Electricity emission factor should be
|
38
|
+
When a data import verifies "Electricity co2 biogenic emission factor should be 0"
|
39
|
+
Then the verification should be successful
|
40
|
+
|
41
|
+
Scenario: Successfully verifying that net generation units are megawatt hours
|
42
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
|
43
|
+
When a data import verifies "Net generation units should be megawatt hours"
|
44
|
+
Then the verification should be successful
|
45
|
+
|
46
|
+
Scenario: Successfully verifying that electricity co2 emission factor units are kilograms per kilowatt hour
|
47
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
|
48
|
+
When a data import verifies "Electricity co2 emission factor units should be kilograms per kilowatt hour"
|
49
|
+
Then the verification should be successful
|
50
|
+
|
51
|
+
Scenario: Successfully verifying that electricity co2 biogenic emission factor units are kilograms per kilowatt hour
|
52
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
|
53
|
+
When a data import verifies "Electricity co2 biogenic emission factor units should be kilograms per kilowatt hour"
|
54
|
+
Then the verification should be successful
|
55
|
+
|
56
|
+
Scenario: Successfully verifying that electricity ch4 emission factor units are kilograms co2e per kilowatt hour
|
57
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
|
58
|
+
When a data import verifies "Electricity ch4 emission factor units should be kilograms co2e per kilowatt hour"
|
59
|
+
Then the verification should be successful
|
60
|
+
|
61
|
+
Scenario: Successfully verifying that electricity n2o emission factor units are kilograms co2e per kilowatt hour
|
62
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
|
63
|
+
When a data import verifies "Electricity n2o emission factor units should be kilograms co2e per kilowatt hour"
|
15
64
|
Then the verification should be successful
|
16
65
|
|
17
66
|
Scenario: Successfully verifying that electricity emission factor units are kilograms co2e per kilowatt hour
|
@@ -19,18 +68,67 @@ Feature: Data import for EgridSubregion
|
|
19
68
|
When a data import verifies "Electricity emission factor units should be kilograms co2e per kilowatt hour"
|
20
69
|
Then the verification should be successful
|
21
70
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
71
|
+
Scenario: Failing to verify that egrid region name is never missing
|
72
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
|
73
|
+
When a data import verifies "Egrid region name should never be missing"
|
74
|
+
Then the verification should not be successful
|
75
|
+
|
76
|
+
Scenario: Failing to verify that net generation is > 0
|
77
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
|
78
|
+
When a data import verifies "Net generation should be > 0"
|
79
|
+
Then the verification should not be successful
|
80
|
+
|
81
|
+
Scenario: Failing to verify that electricity co2 emission factor is > 0
|
82
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
|
83
|
+
When a data import verifies "Electricity co2 emission factor should be > 0"
|
84
|
+
Then the verification should not be successful
|
85
|
+
|
86
|
+
Scenario: Failing to verify that electricity ch4 emission factor is > 0
|
87
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
|
88
|
+
When a data import verifies "Electricity ch4 emission factor should be > 0"
|
89
|
+
Then the verification should not be successful
|
90
|
+
|
91
|
+
Scenario: Failing to verify that electricity n2o emission factor is > 0
|
92
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
|
93
|
+
When a data import verifies "Electricity n2o emission factor should be > 0"
|
94
|
+
Then the verification should not be successful
|
95
|
+
|
96
|
+
Scenario: Failing to verify that electricity emission factor is > 0
|
97
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
|
98
|
+
When a data import verifies "Electricity emission factor should be > 0"
|
99
|
+
Then the verification should not be successful
|
27
100
|
|
28
|
-
Scenario: Failing to verify that electricity emission factor is
|
101
|
+
Scenario: Failing to verify that electricity co2 biogenic emission factor is 0
|
29
102
|
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
|
30
|
-
When a data import verifies "Electricity emission factor should be
|
103
|
+
When a data import verifies "Electricity co2 biogenic emission factor should be 0"
|
104
|
+
Then the verification should not be successful
|
105
|
+
|
106
|
+
Scenario: Failing to verify that net generation units are megawatt hours
|
107
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
|
108
|
+
When a data import verifies "Net generation units should be megawatt hours"
|
109
|
+
Then the verification should not be successful
|
110
|
+
|
111
|
+
Scenario: Failing to verify that electricity co2 emission factor units are kilograms per kilowatt hour
|
112
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
|
113
|
+
When a data import verifies "Electricity co2 emission factor units should be kilograms per kilowatt hour"
|
114
|
+
Then the verification should not be successful
|
115
|
+
|
116
|
+
Scenario: Failing to verify that electricity co2 biogenic emission factor units are kilograms per kilowatt hour
|
117
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
|
118
|
+
When a data import verifies "Electricity co2 biogenic emission factor units should be kilograms per kilowatt hour"
|
119
|
+
Then the verification should not be successful
|
120
|
+
|
121
|
+
Scenario: Failing to verify that electricity ch4 emission factor units are kilograms co2e per kilowatt hour
|
122
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
|
123
|
+
When a data import verifies "Electricity ch4 emission factor units should be kilograms co2e per kilowatt hour"
|
124
|
+
Then the verification should not be successful
|
125
|
+
|
126
|
+
Scenario: Failing to verify that electricity n2o emission factor units are kilograms co2e per kilowatt hour
|
127
|
+
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
|
128
|
+
When a data import verifies "Electricity n2o emission factor units should be kilograms co2e per kilowatt hour"
|
31
129
|
Then the verification should not be successful
|
32
130
|
|
33
131
|
Scenario: Failing to verify that electricity emission factor units are kilograms co2e per kilowatt hour
|
34
132
|
Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
|
35
133
|
When a data import verifies "Electricity emission factor units should be kilograms co2e per kilowatt hour"
|
36
|
-
Then the verification should not be successful
|
134
|
+
Then the verification should not be successful
|