kalibro_gem 0.0.1.rc7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +21 -0
- data/AUTHORS +4 -0
- data/COPYING +674 -0
- data/COPYING.LESSER +165 -0
- data/Gemfile +4 -0
- data/README.md +77 -0
- data/Rakefile +6 -0
- data/cucumber.yml +1 -0
- data/features/base_tool/all_names.feature +8 -0
- data/features/base_tool/find_by_name.feature +12 -0
- data/features/configuration/all.feature +10 -0
- data/features/metric_configuration/find.feature +18 -0
- data/features/metric_configuration/metric_configurations_of.feature +18 -0
- data/features/metric_result/descendant_results.feature +19 -0
- data/features/metric_result/history_of.feature +20 -0
- data/features/metric_result/metric_results_of.feature +19 -0
- data/features/module_result/children.feature +18 -0
- data/features/module_result/find.feature +15 -0
- data/features/module_result/history_of.feature +11 -0
- data/features/processing/first_processing_after.feature +18 -0
- data/features/processing/first_processing_of.feature +18 -0
- data/features/processing/has_processing.feature +18 -0
- data/features/processing/has_processing_after.feature +18 -0
- data/features/processing/has_processing_before.feature +18 -0
- data/features/processing/has_ready_processing.feature +18 -0
- data/features/processing/last_processing_before.feature +18 -0
- data/features/processing/last_processing_of.feature +18 -0
- data/features/processing/last_processing_state_of.feature +18 -0
- data/features/processing/last_ready_processing_of.feature +18 -0
- data/features/processing/processing_of.feature +32 -0
- data/features/processing/processing_with_date_of.feature +32 -0
- data/features/project/all.feature +10 -0
- data/features/project/creation.feature +9 -0
- data/features/project/destroy.feature +10 -0
- data/features/project/exists.feature +9 -0
- data/features/project/find.feature +10 -0
- data/features/range/ranges_of.feature +22 -0
- data/features/range/save.feature +32 -0
- data/features/reading/find.feature +11 -0
- data/features/reading/readings_of.feature +11 -0
- data/features/reading_group/all.feature +10 -0
- data/features/repository/all.feature +14 -0
- data/features/repository/cancel_processing.feature +14 -0
- data/features/repository/exists.feature +14 -0
- data/features/repository/find.feature +14 -0
- data/features/repository/of.feature +15 -0
- data/features/repository/process.feature +16 -0
- data/features/repository/types.feature +9 -0
- data/features/step_definitions/base_tool_steps.rb +28 -0
- data/features/step_definitions/configuration_steps.rb +11 -0
- data/features/step_definitions/metric_configuration_steps.rb +52 -0
- data/features/step_definitions/metric_result_steps.rb +29 -0
- data/features/step_definitions/metric_steps.rb +3 -0
- data/features/step_definitions/module_result_steps.rb +30 -0
- data/features/step_definitions/processing_steps.rb +91 -0
- data/features/step_definitions/project_steps.rb +48 -0
- data/features/step_definitions/range_steps.rb +41 -0
- data/features/step_definitions/reading_group_steps.rb +19 -0
- data/features/step_definitions/reading_steps.rb +20 -0
- data/features/step_definitions/repository_steps.rb +61 -0
- data/features/support/env.rb +25 -0
- data/features/support/kalibro_cucumber_helpers.yml.sample +10 -0
- data/kalibro_gem.gemspec +48 -0
- data/lib/kalibro_gem.rb +61 -0
- data/lib/kalibro_gem/entities.rb +37 -0
- data/lib/kalibro_gem/entities/base_tool.rb +54 -0
- data/lib/kalibro_gem/entities/configuration.rb +33 -0
- data/lib/kalibro_gem/entities/date_metric_result.rb +39 -0
- data/lib/kalibro_gem/entities/date_module_result.rb +39 -0
- data/lib/kalibro_gem/entities/metric.rb +21 -0
- data/lib/kalibro_gem/entities/metric_configuration.rb +70 -0
- data/lib/kalibro_gem/entities/metric_configuration_snapshot.rb +57 -0
- data/lib/kalibro_gem/entities/metric_result.rb +74 -0
- data/lib/kalibro_gem/entities/model.rb +162 -0
- data/lib/kalibro_gem/entities/module.rb +27 -0
- data/lib/kalibro_gem/entities/module_result.rb +77 -0
- data/lib/kalibro_gem/entities/process_time.rb +31 -0
- data/lib/kalibro_gem/entities/processing.rb +113 -0
- data/lib/kalibro_gem/entities/project.rb +34 -0
- data/lib/kalibro_gem/entities/range.rb +75 -0
- data/lib/kalibro_gem/entities/range_snapshot.rb +37 -0
- data/lib/kalibro_gem/entities/reading.rb +51 -0
- data/lib/kalibro_gem/entities/reading_group.rb +43 -0
- data/lib/kalibro_gem/entities/repository.rb +86 -0
- data/lib/kalibro_gem/entities/repository_observer.rb +50 -0
- data/lib/kalibro_gem/entities/stack_trace_element.rb +31 -0
- data/lib/kalibro_gem/entities/throwable.rb +42 -0
- data/lib/kalibro_gem/errors.rb +18 -0
- data/lib/kalibro_gem/errors/record_not_found.rb +22 -0
- data/lib/kalibro_gem/errors/standard.rb +24 -0
- data/lib/kalibro_gem/helpers/aggregation_options.rb +25 -0
- data/lib/kalibro_gem/helpers/hash_converters.rb +48 -0
- data/lib/kalibro_gem/helpers/request_methods.rb +47 -0
- data/lib/kalibro_gem/helpers/xml_converters.rb +20 -0
- data/lib/kalibro_gem/kalibro_cucumber_helpers.rb +40 -0
- data/lib/kalibro_gem/kalibro_cucumber_helpers/configuration.rb +39 -0
- data/lib/kalibro_gem/kalibro_cucumber_helpers/hooks.rb +50 -0
- data/lib/kalibro_gem/kalibro_cucumber_helpers/scripts/delete_all_kalibro_entries.sh +23 -0
- data/lib/kalibro_gem/kalibro_cucumber_helpers/scripts/prepare_kalibro_query_file.sh +38 -0
- data/lib/kalibro_gem/kalibro_cucumber_helpers/scripts/put_kalibro_on_test_mode.sh +35 -0
- data/lib/kalibro_gem/kalibro_cucumber_helpers/scripts/return_kalibro_from_test_mode.sh +26 -0
- data/lib/kalibro_gem/version.rb +19 -0
- data/lib/rake/test_task.rb +57 -0
- data/spec/entities/base_tool_spec.rb +168 -0
- data/spec/entities/configuration_spec.rb +61 -0
- data/spec/entities/date_metric_result_spec.rb +62 -0
- data/spec/entities/date_module_result_spec.rb +61 -0
- data/spec/entities/metric_configuration_snapshot_spec.rb +107 -0
- data/spec/entities/metric_configuration_spec.rb +149 -0
- data/spec/entities/metric_result_spec.rb +201 -0
- data/spec/entities/metric_spec.rb +47 -0
- data/spec/entities/model_spec.rb +275 -0
- data/spec/entities/module_result_spec.rb +163 -0
- data/spec/entities/process_time_spec.rb +33 -0
- data/spec/entities/processing_spec.rb +334 -0
- data/spec/entities/project_spec.rb +68 -0
- data/spec/entities/range_snapshot_spec.rb +50 -0
- data/spec/entities/range_spec.rb +181 -0
- data/spec/entities/reading_group_spec.rb +90 -0
- data/spec/entities/reading_spec.rb +106 -0
- data/spec/entities/repository_observer_spec.rb +123 -0
- data/spec/entities/repository_spec.rb +191 -0
- data/spec/entities/stack_trace_element_spec.rb +26 -0
- data/spec/entities/throwable_spec.rb +51 -0
- data/spec/factories/base_tools.rb +31 -0
- data/spec/factories/configurations.rb +29 -0
- data/spec/factories/date_metric_results.rb +28 -0
- data/spec/factories/date_module_results.rb +22 -0
- data/spec/factories/metric_configurations.rb +28 -0
- data/spec/factories/metric_configurations_snapshot.rb +26 -0
- data/spec/factories/metric_results.rb +24 -0
- data/spec/factories/metrics.rb +35 -0
- data/spec/factories/models.rb +20 -0
- data/spec/factories/module_results.rb +33 -0
- data/spec/factories/modules.rb +22 -0
- data/spec/factories/process_times.rb +27 -0
- data/spec/factories/processings.rb +25 -0
- data/spec/factories/projects.rb +29 -0
- data/spec/factories/ranges.rb +30 -0
- data/spec/factories/ranges_snapshot.rb +26 -0
- data/spec/factories/reading_groups.rb +23 -0
- data/spec/factories/readings.rb +25 -0
- data/spec/factories/repositories.rb +34 -0
- data/spec/factories/repository_observers.rb +24 -0
- data/spec/factories/stack_trace_elements.rb +24 -0
- data/spec/factories/throwables.rb +23 -0
- data/spec/helpers/aggregation_options_spec.rb +31 -0
- data/spec/helpers/hash_converters_spec.rb +111 -0
- data/spec/helpers/xml_converters_spec.rb +64 -0
- data/spec/kalibro_entities_spec.rb +108 -0
- data/spec/savon/fixtures/config.yml +1 -0
- data/spec/savon/fixtures/invalid_config.yml +2 -0
- data/spec/savon/fixtures/project/does_not_exists.xml +1 -0
- data/spec/savon/savon_test_helper.rb +14 -0
- data/spec/spec_helper.rb +60 -0
- metadata +463 -0
@@ -0,0 +1,18 @@
|
|
1
|
+
Feature: First processing of
|
2
|
+
In order to be able to retrieve processing results
|
3
|
+
As a developer
|
4
|
+
I want to be able to retrieve the first processing
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: With one repository just after starting to process
|
8
|
+
Given I have a project with name "Kalibro"
|
9
|
+
And I have a configuration with name "Java"
|
10
|
+
And I have a reading group with name "Group"
|
11
|
+
And I have a metric configuration within the given configuration
|
12
|
+
And the given project has the following Repositories:
|
13
|
+
| name | type | address |
|
14
|
+
| Kalibro | GIT | https://github.com/mezuro/kalibro.git |
|
15
|
+
And I call the process method for the given repository
|
16
|
+
And I wait up to 1 seconds
|
17
|
+
When I call the first_processing_of method for the given repository
|
18
|
+
Then I should get a Processing
|
@@ -0,0 +1,18 @@
|
|
1
|
+
Feature: Has processing
|
2
|
+
In order to be retrieve processing results
|
3
|
+
As a developer
|
4
|
+
I want to be able to check if a repository has processings
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: With one repository after process
|
8
|
+
Given I have a project with name "Kalibro"
|
9
|
+
And I have a configuration with name "Java"
|
10
|
+
And I have a reading group with name "Group"
|
11
|
+
And I have a metric configuration within the given configuration
|
12
|
+
And the given project has the following Repositories:
|
13
|
+
| name | type | address |
|
14
|
+
| Kalibro | GIT | https://github.com/mezuro/kalibro.git |
|
15
|
+
And I call the process method for the given repository
|
16
|
+
And I wait up to 1 seconds
|
17
|
+
When I call the has_processing for the given repository
|
18
|
+
Then I should get true
|
@@ -0,0 +1,18 @@
|
|
1
|
+
Feature: Has processing after
|
2
|
+
In order to be retrieve processing results from a given date
|
3
|
+
As a developer
|
4
|
+
I want to be able to check if a repository has processings after it
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: With one repository just after starting to process
|
8
|
+
Given I have a project with name "Kalibro"
|
9
|
+
And I have a configuration with name "Java"
|
10
|
+
And I have a reading group with name "Group"
|
11
|
+
And I have a metric configuration within the given configuration
|
12
|
+
And the given project has the following Repositories:
|
13
|
+
| name | type | address |
|
14
|
+
| Kalibro | GIT | https://github.com/mezuro/kalibro.git |
|
15
|
+
And I call the process method for the given repository
|
16
|
+
And I wait up to 1 seconds
|
17
|
+
When I call the has_processing_after for the given repository with yerterday's date
|
18
|
+
Then I should get true
|
@@ -0,0 +1,18 @@
|
|
1
|
+
Feature: Has processing before
|
2
|
+
In order to be retrieve processing results from a given date
|
3
|
+
As a developer
|
4
|
+
I want to be able to check if a repository has processings before it
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: With one repository just after starting to process
|
8
|
+
Given I have a project with name "Kalibro"
|
9
|
+
And I have a configuration with name "Java"
|
10
|
+
And I have a reading group with name "Group"
|
11
|
+
And I have a metric configuration within the given configuration
|
12
|
+
And the given project has the following Repositories:
|
13
|
+
| name | type | address |
|
14
|
+
| Kalibro | GIT | https://github.com/mezuro/kalibro.git |
|
15
|
+
And I call the process method for the given repository
|
16
|
+
And I wait up to 1 seconds
|
17
|
+
When I call the has_processing_before for the given repository with tomorrows's date
|
18
|
+
Then I should get true
|
@@ -0,0 +1,18 @@
|
|
1
|
+
Feature: Has ready processing
|
2
|
+
In order to be retrieve processing results
|
3
|
+
As a developer
|
4
|
+
I want to be able to check if a repository has ready processings
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: With one repository just after starting to process
|
8
|
+
Given I have a project with name "Kalibro"
|
9
|
+
And I have a configuration with name "Java"
|
10
|
+
And I have a reading group with name "Group"
|
11
|
+
And I have a metric configuration within the given configuration
|
12
|
+
And the given project has the following Repositories:
|
13
|
+
| name | type | address |
|
14
|
+
| Kalibro | GIT | https://github.com/mezuro/kalibro.git |
|
15
|
+
And I call the process method for the given repository
|
16
|
+
And I wait up to 1 seconds
|
17
|
+
When I call the has_ready_processing for the given repository
|
18
|
+
Then I should get false
|
@@ -0,0 +1,18 @@
|
|
1
|
+
Feature: Last processing before
|
2
|
+
In order to be able to retrieve processing results
|
3
|
+
As a developer
|
4
|
+
I want to be able to retrieve the last processing before a given date
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: With one repository just after starting to process
|
8
|
+
Given I have a project with name "Kalibro"
|
9
|
+
And I have a configuration with name "Java"
|
10
|
+
And I have a reading group with name "Group"
|
11
|
+
And I have a metric configuration within the given configuration
|
12
|
+
And the given project has the following Repositories:
|
13
|
+
| name | type | address |
|
14
|
+
| Kalibro | GIT | https://github.com/mezuro/kalibro.git |
|
15
|
+
And I call the process method for the given repository
|
16
|
+
And I wait up to 1 seconds
|
17
|
+
When I call the last_processing_before method for the given repository and tomorrow's date
|
18
|
+
Then I should get a Processing
|
@@ -0,0 +1,18 @@
|
|
1
|
+
Feature: Last processing of
|
2
|
+
In order to be able to retrieve processing results
|
3
|
+
As a developer
|
4
|
+
I want to be able to retrieve the last processing
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: With one repository just after starting to process
|
8
|
+
Given I have a project with name "Kalibro"
|
9
|
+
And I have a configuration with name "Java"
|
10
|
+
And I have a reading group with name "Group"
|
11
|
+
And I have a metric configuration within the given configuration
|
12
|
+
And the given project has the following Repositories:
|
13
|
+
| name | type | address |
|
14
|
+
| Kalibro | GIT | https://github.com/mezuro/kalibro.git |
|
15
|
+
And I call the process method for the given repository
|
16
|
+
And I wait up to 1 seconds
|
17
|
+
When I call the last_processing_of method for the given repository
|
18
|
+
Then I should get a Processing
|
@@ -0,0 +1,18 @@
|
|
1
|
+
Feature: Last processing state of
|
2
|
+
In order to be retrieve processing results
|
3
|
+
As a developer
|
4
|
+
I want to be able to check the last processing status
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: With one repository just after starting to process
|
8
|
+
Given I have a project with name "Kalibro"
|
9
|
+
And I have a configuration with name "Java"
|
10
|
+
And I have a reading group with name "Group"
|
11
|
+
And I have a metric configuration within the given configuration
|
12
|
+
And the given project has the following Repositories:
|
13
|
+
| name | type | address |
|
14
|
+
| Kalibro | GIT | https://github.com/mezuro/kalibro.git |
|
15
|
+
And I call the process method for the given repository
|
16
|
+
And I wait up to 1 seconds
|
17
|
+
When I call the last_processing_state_of method for the given repository
|
18
|
+
Then I should get "LOADING"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
Feature: Last ready processing of
|
2
|
+
In order to be able to retrieve processing results
|
3
|
+
As a developer
|
4
|
+
I want to be able to check the last ready processing
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: With one repository just after with ready processing
|
8
|
+
Given I have a project with name "Kalibro"
|
9
|
+
And I have a configuration with name "Java"
|
10
|
+
And I have a reading group with name "Group"
|
11
|
+
And I have a metric configuration within the given configuration
|
12
|
+
And the given project has the following Repositories:
|
13
|
+
| name | type | address |
|
14
|
+
| Kalibro | GIT | https://github.com/mezuro/kalibro.git |
|
15
|
+
And I call the process method for the given repository
|
16
|
+
And I wait up for a ready processing
|
17
|
+
When I call the last_ready_processing_of method for the given repository
|
18
|
+
Then I should get a Processing
|
@@ -0,0 +1,32 @@
|
|
1
|
+
Feature: Processing of
|
2
|
+
In order to be able to retrieve processing results
|
3
|
+
As a developer
|
4
|
+
I want to be able to retrieve the processing
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: With one repository just after starting to process
|
8
|
+
Given I have a project with name "Kalibro"
|
9
|
+
And I have a configuration with name "Java"
|
10
|
+
And I have a reading group with name "Group"
|
11
|
+
And I have a metric configuration within the given configuration
|
12
|
+
And the given project has the following Repositories:
|
13
|
+
| name | type | address |
|
14
|
+
| Kalibro | GIT | https://github.com/mezuro/kalibro.git |
|
15
|
+
And I call the process method for the given repository
|
16
|
+
And I wait up to 1 seconds
|
17
|
+
When I call the processing_of method for the given repository
|
18
|
+
Then I should get a Processing with state "LOADING"
|
19
|
+
|
20
|
+
@kalibro_restart
|
21
|
+
Scenario: With one repository just after with ready processing
|
22
|
+
Given I have a project with name "Kalibro"
|
23
|
+
And I have a configuration with name "Java"
|
24
|
+
And I have a reading group with name "Group"
|
25
|
+
And I have a metric configuration within the given configuration
|
26
|
+
And the given project has the following Repositories:
|
27
|
+
| name | type | address |
|
28
|
+
| Kalibro | GIT | https://github.com/mezuro/kalibro.git |
|
29
|
+
And I call the process method for the given repository
|
30
|
+
And I wait up for a ready processing
|
31
|
+
When I call the processing_of method for the given repository
|
32
|
+
Then I should get a Processing with state "READY"
|
@@ -0,0 +1,32 @@
|
|
1
|
+
Feature: Processing with date of
|
2
|
+
In order to be able to retrieve processing results
|
3
|
+
As a developer
|
4
|
+
I want to be able to retrieve the processing for a given date
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: With one repository just after starting to process and tomorrow's date
|
8
|
+
Given I have a project with name "Kalibro"
|
9
|
+
And I have a configuration with name "Java"
|
10
|
+
And I have a reading group with name "Group"
|
11
|
+
And I have a metric configuration within the given configuration
|
12
|
+
And the given project has the following Repositories:
|
13
|
+
| name | type | address |
|
14
|
+
| Kalibro | GIT | https://github.com/mezuro/kalibro.git |
|
15
|
+
And I call the process method for the given repository
|
16
|
+
And I wait up to 1 seconds
|
17
|
+
When I call the processing_with_date_of method for the given repository and tomorrow's date
|
18
|
+
Then I should get a Processing
|
19
|
+
|
20
|
+
@kalibro_restart
|
21
|
+
Scenario: With one repository just after starting to process and yesterday's date
|
22
|
+
Given I have a project with name "Kalibro"
|
23
|
+
And I have a configuration with name "Java"
|
24
|
+
And I have a reading group with name "Group"
|
25
|
+
And I have a metric configuration within the given configuration
|
26
|
+
And the given project has the following Repositories:
|
27
|
+
| name | type | address |
|
28
|
+
| Kalibro | GIT | https://github.com/mezuro/kalibro.git |
|
29
|
+
And I call the process method for the given repository
|
30
|
+
And I wait up to 1 seconds
|
31
|
+
When I call the processing_with_date_of method for the given repository and yesterday's date
|
32
|
+
Then I should get a Processing
|
@@ -0,0 +1,10 @@
|
|
1
|
+
Feature: All
|
2
|
+
In order to be able to have projects
|
3
|
+
As an developer
|
4
|
+
I want to get all the available projects
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: one project
|
8
|
+
Given I have a project with name "Kalibro"
|
9
|
+
When I ask for all the projects
|
10
|
+
Then I should get a list with the given project
|
@@ -0,0 +1,10 @@
|
|
1
|
+
Feature: Destroy
|
2
|
+
In order to be able to have projects
|
3
|
+
As an developer
|
4
|
+
I want to detroy projects
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: destroy an existing project
|
8
|
+
Given I have a project with name "Kalibro"
|
9
|
+
When I destroy the project with the same id of the given project
|
10
|
+
Then the project should not exist
|
@@ -0,0 +1,10 @@
|
|
1
|
+
Feature: Find
|
2
|
+
In order to be able to have projects
|
3
|
+
As an developer
|
4
|
+
I want to find projects
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: find a valid project
|
8
|
+
Given I have a project with name "Kalibro"
|
9
|
+
When I search a project with the same id of the given project
|
10
|
+
Then it should return the same project as the given one
|
@@ -0,0 +1,22 @@
|
|
1
|
+
Feature: Range of
|
2
|
+
In order to be able to get all the ranges of a metric configuration
|
3
|
+
As a developer
|
4
|
+
I want to see all the ranges of the given metric configuration
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: With a inexistent range
|
8
|
+
Given I have a configuration with name "Java"
|
9
|
+
And I have a reading group with name "Group"
|
10
|
+
And I have a metric configuration within the given configuration
|
11
|
+
When I ask ranges of the given metric configuration
|
12
|
+
Then I should get an empty list
|
13
|
+
|
14
|
+
@kalibro_restart
|
15
|
+
Scenario: With an existing range
|
16
|
+
Given I have a configuration with name "Java"
|
17
|
+
And I have a reading group with name "Group"
|
18
|
+
And I have a metric configuration within the given configuration
|
19
|
+
And I have a reading within the given reading group
|
20
|
+
And I have a range within the given reading
|
21
|
+
When I ask ranges of the given metric configuration
|
22
|
+
Then I should get a list with the given range
|
@@ -0,0 +1,32 @@
|
|
1
|
+
Feature: Save
|
2
|
+
In order to be able to use ranges
|
3
|
+
As a developer
|
4
|
+
I want to save it on kalibro database
|
5
|
+
|
6
|
+
|
7
|
+
@kalibro_restart
|
8
|
+
Scenario: When there is not a reading
|
9
|
+
Given I have a configuration with name "Java"
|
10
|
+
And I have a reading group with name "Group"
|
11
|
+
And I have a metric configuration within the given configuration
|
12
|
+
And I have an unsaved range
|
13
|
+
When I ask to save the given range
|
14
|
+
Then I should get an error in range kalibro errors attribute
|
15
|
+
|
16
|
+
@kalibro_restart
|
17
|
+
Scenario: When there is not a metric configuration
|
18
|
+
Given I have a reading group with name "Group"
|
19
|
+
And I have a reading within the given reading group
|
20
|
+
And I have an unsaved range within the given reading
|
21
|
+
When I ask to save the given range with an inexistent metric configuration
|
22
|
+
Then I should get an error in range kalibro errors attribute
|
23
|
+
|
24
|
+
@kalibro_restart
|
25
|
+
Scenario: When there is a metric configuration
|
26
|
+
Given I have a configuration with name "Java"
|
27
|
+
And I have a reading group with name "Group"
|
28
|
+
And I have a metric configuration within the given configuration
|
29
|
+
And I have a reading within the given reading group
|
30
|
+
And I have an unsaved range within the given reading
|
31
|
+
When I ask to save the given range
|
32
|
+
Then the id of the given range should be set
|
@@ -0,0 +1,11 @@
|
|
1
|
+
Feature: Find
|
2
|
+
In order to be able to have readings
|
3
|
+
As an developer
|
4
|
+
I want to find reading
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: find a valid reading
|
8
|
+
Given I have a reading group with name "Kalibro"
|
9
|
+
And I have a reading within the given reading group
|
10
|
+
When I ask for a reading with the same id of the given reading
|
11
|
+
Then I should get the given reading
|
@@ -0,0 +1,11 @@
|
|
1
|
+
Feature: Find
|
2
|
+
In order to be able to have readings
|
3
|
+
As an developer
|
4
|
+
I want to get the readings of the given reading group
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: readings of a valid reading group
|
8
|
+
Given I have a reading group with name "Kalibro"
|
9
|
+
And I have a reading within the given reading group
|
10
|
+
When I ask for the readings of the given reading group
|
11
|
+
Then I should get a list with the given reading
|
@@ -0,0 +1,10 @@
|
|
1
|
+
Feature: All
|
2
|
+
In order to be able to have reading groups
|
3
|
+
As a developer
|
4
|
+
I want to get all the available reading groups
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: one reading group
|
8
|
+
Given I have a reading group with name "Kalibro"
|
9
|
+
When I ask for all the reading groups
|
10
|
+
Then I should get a list with the given reading group
|
@@ -0,0 +1,14 @@
|
|
1
|
+
Feature: Repositories listing
|
2
|
+
In order to be able to visualize repositories
|
3
|
+
As a developer
|
4
|
+
I want to see all the repositories on the service
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: With existing project repository
|
8
|
+
Given I have a project with name "Kalibro"
|
9
|
+
And I have a configuration with name "Java"
|
10
|
+
And the given project has the following Repositories:
|
11
|
+
| name | type | address |
|
12
|
+
| "Kalibro" | GIT | https://github.com/mezuro/kalibro.git |
|
13
|
+
When I ask for all the repositories
|
14
|
+
Then the response should contain the given repository
|
@@ -0,0 +1,14 @@
|
|
1
|
+
Feature: Process
|
2
|
+
In order to be have repositories
|
3
|
+
As a developer
|
4
|
+
I want to cancel the repository processing
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: With one repository
|
8
|
+
Given I have a project with name "Kalibro"
|
9
|
+
And I have a configuration with name "Java"
|
10
|
+
And the given project has the following Repositories:
|
11
|
+
| name | type | address |
|
12
|
+
| "Kalibro" | GIT | https://github.com/mezuro/kalibro.git |
|
13
|
+
When I call the cancel_process method for the given repository
|
14
|
+
Then I should get success
|
@@ -0,0 +1,14 @@
|
|
1
|
+
Feature: Repositories listing
|
2
|
+
In order to be able to check know if a repository still exists
|
3
|
+
As a developer
|
4
|
+
I want to check that on the service
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: With existing project repository
|
8
|
+
Given I have a project with name "Kalibro"
|
9
|
+
And I have a configuration with name "Java"
|
10
|
+
And the given project has the following Repositories:
|
11
|
+
| name | type | address |
|
12
|
+
| "Kalibro" | GIT | https://github.com/mezuro/kalibro.git |
|
13
|
+
When I ask to check if the given repository exists
|
14
|
+
Then I should get true
|
@@ -0,0 +1,14 @@
|
|
1
|
+
Feature: Repositories listing
|
2
|
+
In order to be able to visualize a specific repository
|
3
|
+
As a developer
|
4
|
+
I want to find that repository
|
5
|
+
|
6
|
+
@kalibro_restart
|
7
|
+
Scenario: With existing project repository
|
8
|
+
Given I have a project with name "Kalibro"
|
9
|
+
And I have a configuration with name "Java"
|
10
|
+
And the given project has the following Repositories:
|
11
|
+
| name | type | address |
|
12
|
+
| "Kalibro" | GIT | https://github.com/mezuro/kalibro.git |
|
13
|
+
When I ask to find the given repository
|
14
|
+
Then I should get the given repository
|