earth 0.3.11 → 0.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +7 -3
- data/features/automobile_fuel_type.feature +8 -18
- data/features/automobile_make_fleet_year.feature +4 -4
- data/features/automobile_make_model_year.feature +4 -4
- data/features/automobile_make_model_year_variant.feature +4 -4
- data/features/automobile_make_year.feature +4 -4
- data/features/automobile_size_class_year.feature +34 -0
- data/features/automobile_type_fuel_age.feature +54 -0
- data/features/automobile_type_fuel_control.feature +34 -0
- data/features/automobile_type_fuel_year.feature +54 -0
- data/features/automobile_type_fuel_year_control.feature +34 -0
- data/features/automobile_type_year.feature +44 -0
- data/features/computation_platform.feature +14 -0
- data/features/data_center_company.feature +14 -0
- data/features/egrid_region.feature +6 -0
- data/features/egrid_subregion.feature +4 -4
- data/features/flight_segment.feature +14 -0
- data/features/fuel_year.feature +44 -0
- data/features/greenhouse_gas.feature +44 -0
- data/features/server_type.feature +34 -0
- data/features/server_type_alias.feature +14 -0
- data/features/support/imports/automobile_make_fleet_year_bad.csv +1 -2
- data/features/support/imports/automobile_make_fleet_year_good.csv +1 -2
- data/features/support/imports/automobile_size_class_year_bad.csv +2 -0
- data/features/support/imports/automobile_size_class_year_good.csv +2 -0
- data/features/support/imports/automobile_type_fuel_age_bad.csv +3 -0
- data/features/support/imports/automobile_type_fuel_age_good.csv +3 -0
- data/features/support/imports/automobile_type_fuel_control_bad.csv +3 -0
- data/features/support/imports/automobile_type_fuel_control_good.csv +3 -0
- data/features/support/imports/automobile_type_fuel_year_bad.csv +2 -0
- data/features/support/imports/automobile_type_fuel_year_control_bad.csv +3 -0
- data/features/support/imports/automobile_type_fuel_year_control_good.csv +3 -0
- data/features/support/imports/automobile_type_fuel_year_good.csv +2 -0
- data/features/support/imports/automobile_type_year_bad.csv +2 -0
- data/features/support/imports/automobile_type_year_good.csv +2 -0
- data/features/support/imports/computation_platform_bad.csv +3 -0
- data/features/support/imports/computation_platform_good.csv +3 -0
- data/features/support/imports/data_center_company_bad.csv +3 -0
- data/features/support/imports/data_center_company_good.csv +3 -0
- data/features/support/imports/egrid_subregion_good.csv +2 -2
- data/features/support/imports/flight_segment_bad.csv +8 -0
- data/features/support/imports/flight_segment_good.csv +8 -0
- data/features/support/imports/fuel_year_bad.csv +2 -0
- data/features/support/imports/fuel_year_good.csv +2 -0
- data/features/support/imports/greenhouse_gas_bad.csv +2 -0
- data/features/support/imports/greenhouse_gas_good.csv +2 -0
- data/features/support/imports/server_type_alias_bad.csv +3 -0
- data/features/support/imports/server_type_alias_good.csv +3 -0
- data/features/support/imports/server_type_bad.csv +3 -0
- data/features/support/imports/server_type_good.csv +3 -0
- data/lib/earth/air/aircraft.rb +2 -3
- data/lib/earth/air/aircraft/data_miner.rb +2 -4
- data/lib/earth/air/aircraft_class/data_miner.rb +3 -1
- data/lib/earth/air/airport/data_miner.rb +4 -3
- data/lib/earth/air/flight_distance_class/data_miner.rb +2 -0
- data/lib/earth/air/flight_seat_class/data_miner.rb +4 -4
- data/lib/earth/air/flight_segment/data_miner.rb +7 -0
- data/lib/earth/all.rb +1 -0
- data/lib/earth/automobile.rb +6 -0
- data/lib/earth/automobile/automobile_fuel_type/data_miner.rb +68 -25
- data/lib/earth/automobile/automobile_make_fleet_year/data_miner.rb +5 -6
- data/lib/earth/automobile/automobile_make_model/data_miner.rb +1 -2
- data/lib/earth/automobile/automobile_make_model_year/data_miner.rb +3 -4
- data/lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb +14 -10
- data/lib/earth/automobile/automobile_make_year/data_miner.rb +2 -2
- data/lib/earth/automobile/automobile_size_class/data_miner.rb +28 -26
- data/lib/earth/automobile/automobile_size_class_year.rb +7 -0
- data/lib/earth/automobile/automobile_size_class_year/data_miner.rb +56 -0
- data/lib/earth/automobile/automobile_type_fuel_age.rb +7 -0
- data/lib/earth/automobile/automobile_type_fuel_age/data_miner.rb +195 -0
- data/lib/earth/automobile/automobile_type_fuel_control.rb +7 -0
- data/lib/earth/automobile/automobile_type_fuel_control/data_miner.rb +57 -0
- data/lib/earth/automobile/automobile_type_fuel_year.rb +7 -0
- data/lib/earth/automobile/automobile_type_fuel_year/data_miner.rb +164 -0
- data/lib/earth/automobile/automobile_type_fuel_year_control.rb +7 -0
- data/lib/earth/automobile/automobile_type_fuel_year_control/data_miner.rb +46 -0
- data/lib/earth/automobile/automobile_type_year.rb +7 -0
- data/lib/earth/automobile/automobile_type_year/data_miner.rb +55 -0
- data/lib/earth/automobile/data_miner.rb +6 -0
- data/lib/earth/computation.rb +4 -0
- data/lib/earth/computation/computation_platform.rb +9 -0
- data/lib/earth/computation/computation_platform/data_miner.rb +24 -0
- data/lib/earth/computation/data_center_company.rb +7 -0
- data/lib/earth/computation/data_center_company/data_miner.rb +22 -0
- data/lib/earth/computation/data_miner.rb +4 -0
- data/lib/earth/computation/server_type.rb +9 -0
- data/lib/earth/computation/server_type/data_miner.rb +49 -0
- data/lib/earth/computation/server_type_alias.rb +10 -0
- data/lib/earth/computation/server_type_alias/data_miner.rb +30 -0
- data/lib/earth/data_miner.rb +1 -0
- data/lib/earth/fuel.rb +2 -0
- data/lib/earth/fuel/data_miner.rb +2 -0
- data/lib/earth/fuel/fuel_year.rb +7 -0
- data/lib/earth/fuel/fuel_year/data_miner.rb +76 -0
- data/lib/earth/fuel/greenhouse_gas.rb +7 -0
- data/lib/earth/fuel/greenhouse_gas/data_miner.rb +59 -0
- data/lib/earth/locality/country/data_miner.rb +1 -1
- data/lib/earth/locality/egrid_region/data_miner.rb +8 -0
- data/lib/earth/locality/egrid_subregion/data_miner.rb +3 -3
- data/lib/earth/locality/urbanity/data_miner.rb +2 -2
- data/lib/earth/locality/zip_code/data_miner.rb +2 -3
- data/lib/earth/residence/air_conditioner_use/data_miner.rb +2 -2
- data/lib/earth/residence/clothes_machine_use/data_miner.rb +3 -3
- data/lib/earth/residence/dishwasher_use/data_miner.rb +1 -1
- data/lib/earth/residence/residence_class/data_miner.rb +2 -2
- data/lib/earth/residence/residential_energy_consumption_survey_response.rb +4 -4
- data/lib/earth/residence/residential_energy_consumption_survey_response/data_miner.rb +3 -4
- data/spec/earth_spec.rb +4 -5
- metadata +196 -81
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
earth (0.3.
|
|
4
|
+
earth (0.3.12)
|
|
5
5
|
activerecord (~> 3)
|
|
6
6
|
cohort_scope (>= 0.0.7)
|
|
7
7
|
conversions (>= 1.4.5)
|
|
@@ -65,6 +65,7 @@ GEM
|
|
|
65
65
|
falls_back_on (0.0.3)
|
|
66
66
|
activerecord
|
|
67
67
|
fast_timestamp (0.0.4)
|
|
68
|
+
fastercsv (1.5.4)
|
|
68
69
|
gemcutter (0.6.1)
|
|
69
70
|
geokit (1.5.0)
|
|
70
71
|
gherkin (2.2.9)
|
|
@@ -94,7 +95,7 @@ GEM
|
|
|
94
95
|
rake (0.8.7)
|
|
95
96
|
rcov (0.9.9)
|
|
96
97
|
rdiscount (1.6.5)
|
|
97
|
-
rdoc (3.
|
|
98
|
+
rdoc (3.3)
|
|
98
99
|
remote_table (0.2.32)
|
|
99
100
|
activesupport (>= 2.3.4)
|
|
100
101
|
escape (>= 0.0.4)
|
|
@@ -130,7 +131,7 @@ GEM
|
|
|
130
131
|
sinatra (1.0)
|
|
131
132
|
rack (>= 1.0)
|
|
132
133
|
slither (0.99.4)
|
|
133
|
-
sniff (0.4.
|
|
134
|
+
sniff (0.4.12)
|
|
134
135
|
aaronh-chronic (~> 0.3.9)
|
|
135
136
|
activerecord (~> 3.0.0)
|
|
136
137
|
activesupport (~> 3.0.0)
|
|
@@ -145,6 +146,7 @@ GEM
|
|
|
145
146
|
rocco
|
|
146
147
|
rspec (~> 2.0.0)
|
|
147
148
|
sqlite3-ruby (~> 1.3.0)
|
|
149
|
+
timecop
|
|
148
150
|
timeframe (~> 0.0.8)
|
|
149
151
|
spreadsheet (0.6.5.0)
|
|
150
152
|
ruby-ole
|
|
@@ -157,6 +159,7 @@ GEM
|
|
|
157
159
|
sinatra (~> 1.0.0)
|
|
158
160
|
sqlite3-ruby (~> 1.2)
|
|
159
161
|
term-ansicolor (1.0.5)
|
|
162
|
+
timecop (0.3.5)
|
|
160
163
|
timeframe (0.0.8)
|
|
161
164
|
activesupport (>= 2.3.5)
|
|
162
165
|
tzinfo (0.3.23)
|
|
@@ -174,6 +177,7 @@ DEPENDENCIES
|
|
|
174
177
|
data_miner (~> 0.5.6)
|
|
175
178
|
earth!
|
|
176
179
|
falls_back_on (>= 0.0.3)
|
|
180
|
+
fastercsv
|
|
177
181
|
geokit (>= 1.5.0)
|
|
178
182
|
loose_tight_dictionary (>= 0.0.8)
|
|
179
183
|
sniff (~> 0.4.11)
|
|
@@ -3,19 +3,14 @@ Feature: Data import for AutomobileFuelType
|
|
|
3
3
|
I want to import AutomobileFuelType data
|
|
4
4
|
So that I can perform fuel type-based calculations
|
|
5
5
|
|
|
6
|
-
Scenario: Successfully verifying that annual distance > 0
|
|
6
|
+
Scenario: Successfully verifying that annual distance and emission factor > 0
|
|
7
7
|
Given a "AutomobileFuelType" data import fetches results listed in "automobile_fuel_type_good"
|
|
8
|
-
When a data import verifies "Annual distance should be greater than zero"
|
|
8
|
+
When a data import verifies "Annual distance and emission factor should be greater than zero"
|
|
9
9
|
Then the verification should be successful
|
|
10
10
|
|
|
11
|
-
Scenario: Successfully verifying that annual distance units are
|
|
11
|
+
Scenario: Successfully verifying that annual distance units are kilometres
|
|
12
12
|
Given a "AutomobileFuelType" data import fetches results listed in "automobile_fuel_type_good"
|
|
13
|
-
When a data import verifies "Annual distance units should
|
|
14
|
-
Then the verification should be successful
|
|
15
|
-
|
|
16
|
-
Scenario: Successfully verifying that emission factor >= 0
|
|
17
|
-
Given a "AutomobileFuelType" data import fetches results listed in "automobile_fuel_type_good"
|
|
18
|
-
When a data import verifies "Emission factor should be zero or more"
|
|
13
|
+
When a data import verifies "Annual distance units should be kilometres"
|
|
19
14
|
Then the verification should be successful
|
|
20
15
|
|
|
21
16
|
Scenario: Successfully verifying that emission factor units are never missing
|
|
@@ -23,19 +18,14 @@ Feature: Data import for AutomobileFuelType
|
|
|
23
18
|
When a data import verifies "Emission factor units should never be missing"
|
|
24
19
|
Then the verification should be successful
|
|
25
20
|
|
|
26
|
-
Scenario: Failing to verify that annual distance > 0
|
|
27
|
-
Given a "AutomobileFuelType" data import fetches results listed in "automobile_fuel_type_bad"
|
|
28
|
-
When a data import verifies "Annual distance should be greater than zero"
|
|
29
|
-
Then the verification should not be successful
|
|
30
|
-
|
|
31
|
-
Scenario: Failing to verify that annual distance units are never missing
|
|
21
|
+
Scenario: Failing to verify that annual distance and emission factor > 0
|
|
32
22
|
Given a "AutomobileFuelType" data import fetches results listed in "automobile_fuel_type_bad"
|
|
33
|
-
When a data import verifies "Annual distance
|
|
23
|
+
When a data import verifies "Annual distance and emission factor should be greater than zero"
|
|
34
24
|
Then the verification should not be successful
|
|
35
25
|
|
|
36
|
-
Scenario: Failing to verify that
|
|
26
|
+
Scenario: Failing to verify that annual distance units are kilometres
|
|
37
27
|
Given a "AutomobileFuelType" data import fetches results listed in "automobile_fuel_type_bad"
|
|
38
|
-
When a data import verifies "
|
|
28
|
+
When a data import verifies "Annual distance units should be kilometres"
|
|
39
29
|
Then the verification should not be successful
|
|
40
30
|
|
|
41
31
|
Scenario: Failing to verify that emission factor units are never missing
|
|
@@ -3,9 +3,9 @@ Feature: Data import for AutomobileMakeFleetYear
|
|
|
3
3
|
I want to import MakeFleetYear data
|
|
4
4
|
So that I can perform year-based calculations
|
|
5
5
|
|
|
6
|
-
Scenario: Successfully verifying that year is
|
|
6
|
+
Scenario: Successfully verifying that year is from 1978 to 2009
|
|
7
7
|
Given a "AutomobileMakeFleetYear" data import fetches results listed in "automobile_make_fleet_year_good"
|
|
8
|
-
When a data import verifies "Year should be
|
|
8
|
+
When a data import verifies "Year should be from 1978 to 2009"
|
|
9
9
|
Then the verification should be successful
|
|
10
10
|
|
|
11
11
|
Scenario: Successfully verifying that fuel efficiency is greater than zero
|
|
@@ -23,9 +23,9 @@ Feature: Data import for AutomobileMakeFleetYear
|
|
|
23
23
|
When a data import verifies "Fuel efficiency units should be kilometres per litre"
|
|
24
24
|
Then the verification should be successful
|
|
25
25
|
|
|
26
|
-
Scenario: Failing to verify that year is
|
|
26
|
+
Scenario: Failing to verify that year is from 1978 to 2009
|
|
27
27
|
Given a "AutomobileMakeFleetYear" data import fetches results listed in "automobile_make_fleet_year_bad"
|
|
28
|
-
When a data import verifies "Year should be
|
|
28
|
+
When a data import verifies "Year should be from 1978 to 2009"
|
|
29
29
|
Then the verification should not be successful
|
|
30
30
|
|
|
31
31
|
Scenario: Failing to verify that fuel efficiency is greater than zero
|
|
@@ -3,9 +3,9 @@ Feature: Data import for AutomobileMakeModelYear
|
|
|
3
3
|
I want to import MakeModelYear data
|
|
4
4
|
So that I can perform model year-based calculations
|
|
5
5
|
|
|
6
|
-
Scenario: Successfully verifying that year is
|
|
6
|
+
Scenario: Successfully verifying that year is from 1985 to 2010
|
|
7
7
|
Given a "AutomobileMakeModelYear" data import fetches results listed in "automobile_make_model_year_good"
|
|
8
|
-
When a data import verifies "Year should be
|
|
8
|
+
When a data import verifies "Year should be from 1985 to 2010"
|
|
9
9
|
Then the verification should be successful
|
|
10
10
|
|
|
11
11
|
Scenario: Successfully verifying that fuel efficiences are greater than zero
|
|
@@ -18,9 +18,9 @@ Feature: Data import for AutomobileMakeModelYear
|
|
|
18
18
|
When a data import verifies "Fuel efficiency units should be kilometres per litre"
|
|
19
19
|
Then the verification should be successful
|
|
20
20
|
|
|
21
|
-
Scenario: Failing to verify that year is
|
|
21
|
+
Scenario: Failing to verify that year is from 1985 to 2010
|
|
22
22
|
Given a "AutomobileMakeModelYear" data import fetches results listed in "automobile_make_model_year_bad"
|
|
23
|
-
When a data import verifies "Year should be
|
|
23
|
+
When a data import verifies "Year should be from 1985 to 2010"
|
|
24
24
|
Then the verification should not be successful
|
|
25
25
|
|
|
26
26
|
Scenario: Failing to verify that fuel efficiences are greater than zero
|
|
@@ -3,9 +3,9 @@ Feature: Data import for AutomobileMakeModelYearVariant
|
|
|
3
3
|
I want to import MakeModelYearVariant data
|
|
4
4
|
So that I can perform variant-based calculations
|
|
5
5
|
|
|
6
|
-
Scenario: Successfully verifying that year is
|
|
6
|
+
Scenario: Successfully verifying that year is from 1985 to 2010
|
|
7
7
|
Given a "AutomobileMakeModelYearVariant" data import fetches results listed in "automobile_make_model_year_variant_good"
|
|
8
|
-
When a data import verifies "Year should be
|
|
8
|
+
When a data import verifies "Year should be from 1985 to 2010"
|
|
9
9
|
Then the verification should be successful
|
|
10
10
|
|
|
11
11
|
# FIXME TODO
|
|
@@ -24,9 +24,9 @@ Feature: Data import for AutomobileMakeModelYearVariant
|
|
|
24
24
|
When a data import verifies "Fuel efficiency units should be kilometres per litre"
|
|
25
25
|
Then the verification should be successful
|
|
26
26
|
|
|
27
|
-
Scenario: Failing to verify that year is
|
|
27
|
+
Scenario: Failing to verify that year is from 1985 to 2010
|
|
28
28
|
Given a "AutomobileMakeModelYearVariant" data import fetches results listed in "automobile_make_model_year_variant_bad"
|
|
29
|
-
When a data import verifies "Year should be
|
|
29
|
+
When a data import verifies "Year should be from 1985 to 2010"
|
|
30
30
|
Then the verification should not be successful
|
|
31
31
|
|
|
32
32
|
# FIXME TODO
|
|
@@ -3,9 +3,9 @@ Feature: Data import for AutomobileMakeYear
|
|
|
3
3
|
I want to import MakeYear data
|
|
4
4
|
So that I can perform year-based calculations
|
|
5
5
|
|
|
6
|
-
Scenario: Successfully verifying that year is
|
|
6
|
+
Scenario: Successfully verifying that year is from 1985 to 2010
|
|
7
7
|
Given a "AutomobileMakeYear" data import fetches results listed in "automobile_make_year_good"
|
|
8
|
-
When a data import verifies "Year should be
|
|
8
|
+
When a data import verifies "Year should be from 1985 to 2010"
|
|
9
9
|
Then the verification should be successful
|
|
10
10
|
|
|
11
11
|
Scenario: Successfully verifying that fuel efficiency is greater than zero
|
|
@@ -18,9 +18,9 @@ Feature: Data import for AutomobileMakeYear
|
|
|
18
18
|
When a data import verifies "Fuel efficiency units should be kilometres per litre"
|
|
19
19
|
Then the verification should be successful
|
|
20
20
|
|
|
21
|
-
Scenario: Failing to verify that year is
|
|
21
|
+
Scenario: Failing to verify that year is from 1985 to 2010
|
|
22
22
|
Given a "AutomobileMakeYear" data import fetches results listed in "automobile_make_year_bad"
|
|
23
|
-
When a data import verifies "Year should be
|
|
23
|
+
When a data import verifies "Year should be from 1985 to 2010"
|
|
24
24
|
Then the verification should not be successful
|
|
25
25
|
|
|
26
26
|
Scenario: Failing to verify that fuel efficiency is greater than zero
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Feature: Data import for AutomobileSizeClassYear
|
|
2
|
+
As a data user
|
|
3
|
+
I want to import AutomobileSizeClassYear data
|
|
4
|
+
So that I can perform size class year-based calculations
|
|
5
|
+
|
|
6
|
+
Scenario: Successfully verifying that year is from 1975 to 2010
|
|
7
|
+
Given a "AutomobileSizeClassYear" data import fetches results listed in "automobile_size_class_year_good"
|
|
8
|
+
When a data import verifies "Year should be from 1975 to 2010"
|
|
9
|
+
Then the verification should be successful
|
|
10
|
+
|
|
11
|
+
Scenario: Successfully verifying that fuel efficiencies > 0
|
|
12
|
+
Given a "AutomobileSizeClassYear" data import fetches results listed in "automobile_size_class_year_good"
|
|
13
|
+
When a data import verifies "Fuel efficiencies should be greater than zero"
|
|
14
|
+
Then the verification should be successful
|
|
15
|
+
|
|
16
|
+
Scenario: Successfully verifying that fuel efficiency units are kilometres per litre
|
|
17
|
+
Given a "AutomobileSizeClassYear" data import fetches results listed in "automobile_size_class_year_good"
|
|
18
|
+
When a data import verifies "Fuel efficiency units should be kilometres per litre"
|
|
19
|
+
Then the verification should be successful
|
|
20
|
+
|
|
21
|
+
Scenario: Failing to verify that year is from 1975 to 2010
|
|
22
|
+
Given a "AutomobileSizeClassYear" data import fetches results listed in "automobile_size_class_year_bad"
|
|
23
|
+
When a data import verifies "Year should be from 1975 to 2010"
|
|
24
|
+
Then the verification should not be successful
|
|
25
|
+
|
|
26
|
+
Scenario: Failing to verify that fuel efficiencies > 0
|
|
27
|
+
Given a "AutomobileSizeClassYear" data import fetches results listed in "automobile_size_class_year_bad"
|
|
28
|
+
When a data import verifies "Fuel efficiencies should be greater than zero"
|
|
29
|
+
Then the verification should not be successful
|
|
30
|
+
|
|
31
|
+
Scenario: Failing to verify that fuel efficiency units are kilometres per litre
|
|
32
|
+
Given a "AutomobileSizeClassYear" data import fetches results listed in "automobile_size_class_year_bad"
|
|
33
|
+
When a data import verifies "Fuel efficiency units should be kilometres per litre"
|
|
34
|
+
Then the verification should not be successful
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
Feature: Data import for AutomobileTypeFuelAge
|
|
2
|
+
As a data user
|
|
3
|
+
I want to import AutomobileTypeFuelAge data
|
|
4
|
+
So that I can perform type fuel age-based calculations
|
|
5
|
+
|
|
6
|
+
Scenario: Successfully verifying that type name and fuel common name are not missing
|
|
7
|
+
Given a "AutomobileTypeFuelAge" data import fetches results listed in "automobile_type_fuel_age_good"
|
|
8
|
+
When a data import verifies "Type name and fuel common name should never be missing"
|
|
9
|
+
Then the verification should be successful
|
|
10
|
+
|
|
11
|
+
Scenario: Successfully verifying that age is from zero to thirty
|
|
12
|
+
Given a "AutomobileTypeFuelAge" data import fetches results listed in "automobile_type_fuel_age_good"
|
|
13
|
+
When a data import verifies "Age should be from zero to thirty"
|
|
14
|
+
Then the verification should be successful
|
|
15
|
+
|
|
16
|
+
Scenario: Successfully verifying that age percent and total travel percent are from zero to one
|
|
17
|
+
Given a "AutomobileTypeFuelAge" data import fetches results listed in "automobile_type_fuel_age_good"
|
|
18
|
+
When a data import verifies "Age percent and total travel percent should be from zero to one"
|
|
19
|
+
Then the verification should be successful
|
|
20
|
+
|
|
21
|
+
Scenario: Successfully verifying that age annual distance and vehicles are greater than zero
|
|
22
|
+
Given a "AutomobileTypeFuelAge" data import fetches results listed in "automobile_type_fuel_age_good"
|
|
23
|
+
When a data import verifies "Annual distance and vehicles should be greater than zero"
|
|
24
|
+
Then the verification should be successful
|
|
25
|
+
|
|
26
|
+
Scenario: Successfully verifying that annual distance units are kilometres
|
|
27
|
+
Given a "AutomobileTypeFuelAge" data import fetches results listed in "automobile_type_fuel_age_good"
|
|
28
|
+
When a data import verifies "Annual distance units should be kilometres"
|
|
29
|
+
Then the verification should be successful
|
|
30
|
+
|
|
31
|
+
Scenario: Failing to verify that type name and fuel common name are not missing
|
|
32
|
+
Given a "AutomobileTypeFuelAge" data import fetches results listed in "automobile_type_fuel_age_bad"
|
|
33
|
+
When a data import verifies "Type name and fuel common name should never be missing"
|
|
34
|
+
Then the verification should not be successful
|
|
35
|
+
|
|
36
|
+
Scenario: Failing to verify that age is from zero to thirty
|
|
37
|
+
Given a "AutomobileTypeFuelAge" data import fetches results listed in "automobile_type_fuel_age_bad"
|
|
38
|
+
When a data import verifies "Age should be from zero to thirty"
|
|
39
|
+
Then the verification should not be successful
|
|
40
|
+
|
|
41
|
+
Scenario: Failing to verify that age percent and total travel percent are from zero to one
|
|
42
|
+
Given a "AutomobileTypeFuelAge" data import fetches results listed in "automobile_type_fuel_age_bad"
|
|
43
|
+
When a data import verifies "Age percent and total travel percent should be from zero to one"
|
|
44
|
+
Then the verification should not be successful
|
|
45
|
+
|
|
46
|
+
Scenario: Failing to verify that annual distance and vehicles are greater than zero
|
|
47
|
+
Given a "AutomobileTypeFuelAge" data import fetches results listed in "automobile_type_fuel_age_bad"
|
|
48
|
+
When a data import verifies "Annual distance and vehicles should be greater than zero"
|
|
49
|
+
Then the verification should not be successful
|
|
50
|
+
|
|
51
|
+
Scenario: Failing to verify that annual distance units are kilometres
|
|
52
|
+
Given a "AutomobileTypeFuelAge" data import fetches results listed in "automobile_type_fuel_age_bad"
|
|
53
|
+
When a data import verifies "Annual distance units should be kilometres"
|
|
54
|
+
Then the verification should not be successful
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Feature: Data import for AutomobileTypeFuelControl
|
|
2
|
+
As a data user
|
|
3
|
+
I want to import AutomobileTypeFuelControl data
|
|
4
|
+
So that I can perform type fuel control-based calculations
|
|
5
|
+
|
|
6
|
+
Scenario: Successfully verifying that type name, fuel common name, and control name are not missing
|
|
7
|
+
Given a "AutomobileTypeFuelControl" data import fetches results listed in "automobile_type_fuel_control_good"
|
|
8
|
+
When a data import verifies "Type name, fuel common name, and control name should never be missing"
|
|
9
|
+
Then the verification should be successful
|
|
10
|
+
|
|
11
|
+
Scenario: Successfully verifying that emission factors are greater than zero
|
|
12
|
+
Given a "AutomobileTypeFuelControl" data import fetches results listed in "automobile_type_fuel_control_good"
|
|
13
|
+
When a data import verifies "Emission factors should be greater than zero"
|
|
14
|
+
Then the verification should be successful
|
|
15
|
+
|
|
16
|
+
Scenario: Successfully verifying that emission factors units are kilograms per kilometre
|
|
17
|
+
Given a "AutomobileTypeFuelControl" data import fetches results listed in "automobile_type_fuel_control_good"
|
|
18
|
+
When a data import verifies "Emission factor units should be kilograms per kilometre"
|
|
19
|
+
Then the verification should be successful
|
|
20
|
+
|
|
21
|
+
Scenario: Failing to verify that type name, fuel common name, and control name are not missing
|
|
22
|
+
Given a "AutomobileTypeFuelControl" data import fetches results listed in "automobile_type_fuel_control_bad"
|
|
23
|
+
When a data import verifies "Type name, fuel common name, and control name should never be missing"
|
|
24
|
+
Then the verification should not be successful
|
|
25
|
+
|
|
26
|
+
Scenario: Failing to verify that emission factors are greater than zero
|
|
27
|
+
Given a "AutomobileTypeFuelControl" data import fetches results listed in "automobile_type_fuel_control_bad"
|
|
28
|
+
When a data import verifies "Emission factors should be greater than zero"
|
|
29
|
+
Then the verification should not be successful
|
|
30
|
+
|
|
31
|
+
Scenario: Failing to verify that emission factors units are kilograms per kilometre
|
|
32
|
+
Given a "AutomobileTypeFuelControl" data import fetches results listed in "automobile_type_fuel_control_bad"
|
|
33
|
+
When a data import verifies "Emission factor units should be kilograms per kilometre"
|
|
34
|
+
Then the verification should not be successful
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
Feature: Data import for AutomobileTypeFuelYear
|
|
2
|
+
As a data user
|
|
3
|
+
I want to import AutomobileTypeFuelYear data
|
|
4
|
+
So that I can perform type fuel year-based calculations
|
|
5
|
+
|
|
6
|
+
Scenario: Successfully verifying that type name and fuel common name are not missing
|
|
7
|
+
Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_good"
|
|
8
|
+
When a data import verifies "Type name and fuel common name should never be missing"
|
|
9
|
+
Then the verification should be successful
|
|
10
|
+
|
|
11
|
+
Scenario: Successfully verifying that year is from 1990 to 2008
|
|
12
|
+
Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_good"
|
|
13
|
+
When a data import verifies "Year should be from 1990 to 2008"
|
|
14
|
+
Then the verification should be successful
|
|
15
|
+
|
|
16
|
+
Scenario: Successfully verifying that total travel, fuel consumption, and emission factors are greater than zero
|
|
17
|
+
Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_good"
|
|
18
|
+
When a data import verifies "Total travel, fuel consumption, and emission factors should be greater than zero"
|
|
19
|
+
Then the verification should be successful
|
|
20
|
+
|
|
21
|
+
Scenario: Successfully verifying that HFC emissions are zero or more
|
|
22
|
+
Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_good"
|
|
23
|
+
When a data import verifies "HFC emission factor should be zero or more"
|
|
24
|
+
Then the verification should be successful
|
|
25
|
+
|
|
26
|
+
Scenario: Successfully verifying that units are correct
|
|
27
|
+
Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_good"
|
|
28
|
+
When a data import verifies "Units should be correct"
|
|
29
|
+
Then the verification should be successful
|
|
30
|
+
|
|
31
|
+
Scenario: Failing to verify that type name and fuel common name are not missing
|
|
32
|
+
Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_bad"
|
|
33
|
+
When a data import verifies "Type name and fuel common name should never be missing"
|
|
34
|
+
Then the verification should not be successful
|
|
35
|
+
|
|
36
|
+
Scenario: Failing to verify that year is from 1990 to 2008
|
|
37
|
+
Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_bad"
|
|
38
|
+
When a data import verifies "Year should be from 1990 to 2008"
|
|
39
|
+
Then the verification should not be successful
|
|
40
|
+
|
|
41
|
+
Scenario: Failing to verify that total travel, fuel consumption, and emission factors are greater than zero
|
|
42
|
+
Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_bad"
|
|
43
|
+
When a data import verifies "Total travel, fuel consumption, and emission factors should be greater than zero"
|
|
44
|
+
Then the verification should not be successful
|
|
45
|
+
|
|
46
|
+
Scenario: Failing to vefify that HFC emissions are zero or more
|
|
47
|
+
Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_bad"
|
|
48
|
+
When a data import verifies "HFC emission factor should be zero or more"
|
|
49
|
+
Then the verification should not be successful
|
|
50
|
+
|
|
51
|
+
Scenario: Failing to verify that units are correct
|
|
52
|
+
Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_bad"
|
|
53
|
+
When a data import verifies "Units should be correct"
|
|
54
|
+
Then the verification should not be successful
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Feature: Data import for AutomobileTypeFuelYearControl
|
|
2
|
+
As a data user
|
|
3
|
+
I want to import AutomobileTypeFuelYearControl data
|
|
4
|
+
So that I can perform type fuel year control-based calculations
|
|
5
|
+
|
|
6
|
+
Scenario: Successfully verifying that type name, fuel common name, and control name are not missing
|
|
7
|
+
Given a "AutomobileTypeFuelYearControl" data import fetches results listed in "automobile_type_fuel_year_control_good"
|
|
8
|
+
When a data import verifies "Type name, fuel common name, and control name should never be missing"
|
|
9
|
+
Then the verification should be successful
|
|
10
|
+
|
|
11
|
+
Scenario: Successfully verifying that year is from 1990 to 2008
|
|
12
|
+
Given a "AutomobileTypeFuelYearControl" data import fetches results listed in "automobile_type_fuel_year_control_good"
|
|
13
|
+
When a data import verifies "Year should be from 1990 to 2008"
|
|
14
|
+
Then the verification should be successful
|
|
15
|
+
|
|
16
|
+
# Scenario: Successfully verifying that total travel percent for each fuel type year sums to one
|
|
17
|
+
# Given a "AutomobileTypeFuelYearControl" data import fetches results listed in "automobile_type_fuel_year_control_good"
|
|
18
|
+
# When a data import verifies "Total travel percent for each type fuel year should sum to one"
|
|
19
|
+
# Then the verification should be successful
|
|
20
|
+
#
|
|
21
|
+
Scenario: Failing to verify that type name, fuel common name, and control name are not missing
|
|
22
|
+
Given a "AutomobileTypeFuelYearControl" data import fetches results listed in "automobile_type_fuel_year_control_bad"
|
|
23
|
+
When a data import verifies "Type name, fuel common name, and control name should never be missing"
|
|
24
|
+
Then the verification should not be successful
|
|
25
|
+
|
|
26
|
+
Scenario: Failing to verify that year is from 1990 to 2008
|
|
27
|
+
Given a "AutomobileTypeFuelYearControl" data import fetches results listed in "automobile_type_fuel_year_control_bad"
|
|
28
|
+
When a data import verifies "Year should be from 1990 to 2008"
|
|
29
|
+
Then the verification should not be successful
|
|
30
|
+
|
|
31
|
+
# Scenario: Failing to verify that total travel percent for each fuel type year sums to one
|
|
32
|
+
# Given a "AutomobileTypeFuelYearControl" data import fetches results listed in "automobile_type_fuel_year_control_bad"
|
|
33
|
+
# When a data import verifies "Total travel percent for each type fuel year should sum to one"
|
|
34
|
+
# Then the verification should not be successful
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Feature: Data import for AutomobileTypeYear
|
|
2
|
+
As a data user
|
|
3
|
+
I want to import AutomobileTypeYear data
|
|
4
|
+
So that I can perform type fuel year control-based calculations
|
|
5
|
+
|
|
6
|
+
Scenario: Successfully verifying that type name is never missing
|
|
7
|
+
Given a "AutomobileTypeYear" data import fetches results listed in "automobile_type_year_good"
|
|
8
|
+
When a data import verifies "Type name should never be missing"
|
|
9
|
+
Then the verification should be successful
|
|
10
|
+
|
|
11
|
+
Scenario: Successfully verifying that year is from 1990 to 2008
|
|
12
|
+
Given a "AutomobileTypeYear" data import fetches results listed in "automobile_type_year_good"
|
|
13
|
+
When a data import verifies "Year should be from 1990 to 2008"
|
|
14
|
+
Then the verification should be successful
|
|
15
|
+
|
|
16
|
+
Scenario: Successfully verifying that HFC emissions are zero or more
|
|
17
|
+
Given a "AutomobileTypeYear" data import fetches results listed in "automobile_type_year_good"
|
|
18
|
+
When a data import verifies "HFC emissions should be zero or more"
|
|
19
|
+
Then the verification should be successful
|
|
20
|
+
|
|
21
|
+
Scenario: Successfully verifying that HFC emissions units are kilograms CO2e
|
|
22
|
+
Given a "AutomobileTypeYear" data import fetches results listed in "automobile_type_year_good"
|
|
23
|
+
When a data import verifies "HFC emissions units should be kilograms CO2e"
|
|
24
|
+
Then the verification should be successful
|
|
25
|
+
|
|
26
|
+
Scenario: Failing to verify that type name is never missing
|
|
27
|
+
Given a "AutomobileTypeYear" data import fetches results listed in "automobile_type_year_bad"
|
|
28
|
+
When a data import verifies "Type name should never be missing"
|
|
29
|
+
Then the verification should not be successful
|
|
30
|
+
|
|
31
|
+
Scenario: Failing to verify that year is from 1990 to 2008
|
|
32
|
+
Given a "AutomobileTypeYear" data import fetches results listed in "automobile_type_year_bad"
|
|
33
|
+
When a data import verifies "Year should be from 1990 to 2008"
|
|
34
|
+
Then the verification should not be successful
|
|
35
|
+
|
|
36
|
+
Scenario: Failing to verify that HFC emissions are zero or more
|
|
37
|
+
Given a "AutomobileTypeYear" data import fetches results listed in "automobile_type_year_bad"
|
|
38
|
+
When a data import verifies "HFC emissions should be zero or more"
|
|
39
|
+
Then the verification should not be successful
|
|
40
|
+
|
|
41
|
+
Scenario: Failing to verify that HFC emissions units are kilograms CO2e
|
|
42
|
+
Given a "AutomobileTypeYear" data import fetches results listed in "automobile_type_year_bad"
|
|
43
|
+
When a data import verifies "HFC emissions units should be kilograms CO2e"
|
|
44
|
+
Then the verification should not be successful
|