From 37be7d7c2801c9d00c8b360a1a81ec538af47cd0 Mon Sep 17 00:00:00 2001 From: Alessandro Palmeira + Daniel Alves + Diego Araújo + Guilherme Rojas Date: Thu, 28 Feb 2013 17:54:30 -0300 Subject: [PATCH] [Mezuro] Preparing files for merge commits. --- plugins/mezuro/features/adding_metric_configuration.feature | 63 --------------------------------------------------------------- plugins/mezuro/features/adding_ranges.feature | 64 ---------------------------------------------------------------- plugins/mezuro/features/creating_configuration.feature | 53 ----------------------------------------------------- plugins/mezuro/features/editing_configuration.feature | 49 ------------------------------------------------- plugins/mezuro/features/reading.feature | 34 ---------------------------------- plugins/mezuro/features/removing_metric_configuration.feature | 32 -------------------------------- plugins/mezuro/features/repository.feature | 252 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 7 files changed, 0 insertions(+), 547 deletions(-) delete mode 100644 plugins/mezuro/features/adding_metric_configuration.feature delete mode 100644 plugins/mezuro/features/adding_ranges.feature delete mode 100644 plugins/mezuro/features/creating_configuration.feature delete mode 100644 plugins/mezuro/features/editing_configuration.feature delete mode 100644 plugins/mezuro/features/reading.feature delete mode 100644 plugins/mezuro/features/removing_metric_configuration.feature delete mode 100644 plugins/mezuro/features/repository.feature diff --git a/plugins/mezuro/features/adding_metric_configuration.feature b/plugins/mezuro/features/adding_metric_configuration.feature deleted file mode 100644 index dc85558..0000000 --- a/plugins/mezuro/features/adding_metric_configuration.feature +++ /dev/null @@ -1,63 +0,0 @@ -Feature: Add metric configuration to a configuration - As a mezuro user - I want to add metric configurations to a Kalibro configuration - - Background: - Given the following users - | login | name | - | joaosilva | Joao Silva | - And I am logged in as "joaosilva" - And "Mezuro" plugin is enabled - And I go to the Control panel - And I create a Mezuro configuration with the following data - | Title | My Configuration | - | Description | A sample description | - - Scenario: adding a native metric configuration - When I follow "Add Metric" - And I follow "Analizo" - And I follow "Lines of Code" - And I fill in the following: - | Code: | Sample Code | - | Weight: | 10.0 | - And I select "Average" from "Aggregation Form:" - And I press "Add" - Then I should see "Lines of Code" - And I should see "Analizo" - And I should see "Sample Code" - - Scenario: adding a native metric configuration without code - When I follow "Add metric" - And I follow "Analizo" - And I follow "Number of Children" - And I don't fill anything - And I press "Add" - Then I should be at the url "/myprofile/my-community/plugin/mezuro/new_metric_configuration" - - Scenario: adding a compound metric configuration - When I follow "Add Metric" - And I follow "New Compound Metric" - And I fill in the following: - | Name: | Compound sample | - | Description: | 10.0 | - | Script: | return 42; | - | Code: | anyCode | - | Weight: | 10.0 | - And I select "Class" from "Scope:" - And I select "Average" from "Aggregation Form:" - And I press "Add" - Then I should see "Compound sample" - - Scenario: adding a compound metric configuration with invalid script - When I follow "Add metric" - And I follow "New Compound Metric" - And I fill in the following: - | Name: | Compound sample | - | Description: | 10.0 | - | Script: | invalid script | - | Code: | anyCode | - | Weight: | 10.0 | - And I select "Class" from "Scope:" - And I select "Average" from "Aggregation Form:" - And I press "Add" - Then I should see "Metric with invalid code or script: invalid script" diff --git a/plugins/mezuro/features/adding_ranges.feature b/plugins/mezuro/features/adding_ranges.feature deleted file mode 100644 index 71e55ca..0000000 --- a/plugins/mezuro/features/adding_ranges.feature +++ /dev/null @@ -1,64 +0,0 @@ -Feature: Add range to a metric configuration - As a mezuro user - I want to add ranges to a Kalibro metric configuration - - Background: - Given the following users - | login | name | - | joaosilva | Joao Silva | - And I am logged in as "joaosilva" - And "Mezuro" plugin is enabled - And I go to the Control Panel - And I create a Mezuro configuration with the following data - | Title | My Configuration | - | Description | A sample description | - And I follow "Add Metric" - And I follow "Analizo" - And I follow "Lines of Code" - And I fill in the following: - | Code: | Sample Code | - | Weight: | 10.0 | - And I select "Average" from "Aggregation Form:" - And I press "Add" - - Scenario: adding a range to a metric configuration - When I follow "New Range" and wait - And I fill in the following: - | (*) Label: | label | - | (*) Beginning: | 1 | - | (*) End: | 10 | - | (*) Grade: | 100 | - | (*) Color: | FF00FF | - | Comments: | Comentário | - And I press "Save Range" and wait - Then I should see "label" within "#ranges" - - Scenario: adding a range with invalid beginning field - When I follow "New Range" and wait - And I fill in the following: - | (*) Label: | label | - | (*) Beginning: | teste | - | (*) End: | 10 | - | (*) Grade: | 100 | - | (*) Color: | FF00FF | - | Comments: | Comentário | - And I press "Save Range" and wait - Then I should see "Beginning, End and Grade must be numeric values." inside an alert - - Scenario: adding a range with beginning greater than end - When I follow "New Range" and wait - And I fill in the following: - | (*) Label: | label | - | (*) Beginning: | 100 | - | (*) End: | 10 | - | (*) Grade: | 100 | - | (*) Color: | FF00FF | - | Comments: | Comentário | - And I press "Save Range" and wait - Then I should see "End must be greater than Beginning." inside an alert - - Scenario: adding a range with no parameters - When I follow "New Range" and wait - And I dont't fill anything - And I press "Save Range" and wait - Then I should see "Please fill all fields marked with (*)." inside an alert diff --git a/plugins/mezuro/features/creating_configuration.feature b/plugins/mezuro/features/creating_configuration.feature deleted file mode 100644 index 404eae1..0000000 --- a/plugins/mezuro/features/creating_configuration.feature +++ /dev/null @@ -1,53 +0,0 @@ -Feature: Create configuration - As a mezuro user - I want to create a Mezuro configuration - - Background: - Given the following users - | login | name | - | joaosilva | Joao Silva | - And I am logged in as "joaosilva" - And "Mezuro" plugin is enabled - - Scenario: I see Mezuro Configuration on my control panel - When I go to the Control panel - Then I should see "Mezuro configuration" - - Scenario: I see an empty set of clone configurations - When I go to the Control panel - And there is no previous configurations created - And I follow "Mezuro configuration" - Then I should see "None" - And I should not see "error" - - Scenario: creating with valid attributes - When I go to the Control panel - And I create a Mezuro configuration with the following data - | Title | Qt_Calculator | - | Description | A sample description | - Then I should see "Name" - And I should see "Qt_Calculator" - And I should see "Description" - And I should see "A sample description" - - Scenario: I see a set of clone configurations - When I go to the Control panel - And I follow "Mezuro configuration" - Then I should see "None" - And I should not see "error" - - Scenario: creating with duplicated name - When I go to the Control panel - And I create a Mezuro configuration with the following data - | Title | Original Title | - And I go to the Control panel - And I create a Mezuro configuration with the following data - | Title | Original Title | - Then I should see "1 error prohibited this article from being saved" - - Scenario: creating without title - When I go to the Control panel - And I create a Mezuro configuration with the following data - | Title | | - Then I should see "1 error prohibited this article from being saved" - diff --git a/plugins/mezuro/features/editing_configuration.feature b/plugins/mezuro/features/editing_configuration.feature deleted file mode 100644 index 68b9153..0000000 --- a/plugins/mezuro/features/editing_configuration.feature +++ /dev/null @@ -1,49 +0,0 @@ -Feature: editing a configuration - As a mezuro user - I want to edit a Mezuro configuration - - Background: - Given the following users - | login | name | - | joaosilva | Joao Silva | - And I am logged in as "joaosilva" - And "Mezuro" plugin is enabled - And the following community - | identifier | name | - | mycommunity | My Community | - And "Joao Silva" is admin of "My Community" - And I am on My Community's cms - And I create a content of type "Mezuro configuration" with the following data - | Title | My Configuration | - | Description | A sample description | - And I follow "Add metric" - And I follow "Analizo" - And I follow "Lines of Code" - And I fill in the following: - | Code: | SampleCode | - | Weight: | 10.0 | - And I select "Average" from "Aggregation Form:" - And I press "Add" - And I press "Save" and wait - - Scenario: Keep metrics after editing configuration - When I follow "Edit" within "article-actions" and wait - And I press "Save" - Then I should see "Lines of Code" - - #FIXME: Create new step for this scenario - Scenario: Check if title is edit-disabled - When I follow "Edit" within "article-actions" and wait - And I fill in the following: - | Title | Some Title | - And I press "Save" and wait - Then I should not see "Some Title" - - - Scenario: Check if description is edit-enabled - When I follow "Edit" within "article-actions" and wait - And I fill in the following: - | Description | Some Description | - And I press "Save" and wait - Then I should see "Some Description" - And I should see "Lines of Code" diff --git a/plugins/mezuro/features/reading.feature b/plugins/mezuro/features/reading.feature deleted file mode 100644 index cb5454c..0000000 --- a/plugins/mezuro/features/reading.feature +++ /dev/null @@ -1,34 +0,0 @@ -Feature: Reading - As a Mezuro user - I want to create, edit and remove a reading - - Background: - Given the following users - | login | name | - | joaosilva | Joao Silva | - And I am logged in as "joaosilva" - And "Mezuro" plugin is enabled - And I have a Mezuro reading group with the following data - | name | Sample Reading Group | - | description | Sample Description | - | user | joaosilva | - And I am on article "Sample Reading Group" - - @selenium @kalibro_restart - Scenario: I want to see the Mezuro reading input form - When I follow "Add Reading" - Then I should see "Sample Reading Group Reading Group" in a link - And I should see "Label" - And I should see "Grade" - And I should see "Color" - And I should see "Save" button - - @selenium @kalibro_restart - Scenario: I want to add a reading with no name - When I follow "Add Reading" - When I fill the fields with the new following data - | reading_label | | - | reading_grade | 10.2 | - | reading_color | ABCDEF | - And I press "Save" - Then I should see "Please fill all fields marked with (*)." inside an alert diff --git a/plugins/mezuro/features/removing_metric_configuration.feature b/plugins/mezuro/features/removing_metric_configuration.feature deleted file mode 100644 index 9ad9f62..0000000 --- a/plugins/mezuro/features/removing_metric_configuration.feature +++ /dev/null @@ -1,32 +0,0 @@ -Feature: Remove a metric configuration from a configuration - As a mezuro user - I want to remove metric configurations from a configuration - - Background: - Given the following users - | login | name | - | joaosilva | Joao Silva | - And I am logged in as "joaosilva" - And "Mezuro" plugin is enabled - And the following community - | identifier | name | - | mycommunity | My Community | - And "Joao Silva" is admin of "My Community" - And I am on My Community's cms - And I create a content of type "Mezuro configuration" with the following data - | Title | My Configuration | - | Description | A sample description | - When I follow "Add metric" - And I follow "Analizo" - And I follow "Lines of Code" - And I fill in the following: - | Code: | Sample Code | - | Weight: | 10.0 | - And I select "Average" from "Aggregation Form:" - And I press "Add" - And I press "Save" - And I should see "Lines of Code" - - Scenario: I remove a metric configuration - When I follow "Remove" - Then I should not see "Lines of Code" diff --git a/plugins/mezuro/features/repository.feature b/plugins/mezuro/features/repository.feature deleted file mode 100644 index 6740d75..0000000 --- a/plugins/mezuro/features/repository.feature +++ /dev/null @@ -1,252 +0,0 @@ -@kalibro_restart -Feature: Repository - As a Mezuro user - I want to create, edit, remove and process a repository - - Background: - Given the following users - | login | name | - | joaosilva | Joao Silva | - And I am logged in as "joaosilva" - And "Mezuro" plugin is enabled - And the following community - | identifier | name | - | mycommunity | My Community | - And "Joao Silva" is admin of "My Community" - And I have a Mezuro project with the following data - | name | Sample Project | - | description | Sample Description | - | community | mycommunity | - And I have a Mezuro configuration with the following data - | name | Sample Configuration| - | description | Sample Description | - | user | joaosilva | - And I have a Mezuro reading group with the following data - | name | Sample Reading group | - | description | Sample Description | - | user | joaosilva | - And I have a Mezuro metric configuration with previous created configuration and reading group - And I am on article "Sample Project" - - Scenario: I want to see the Mezuro repository input form - When I follow "Add Repository" - Then I should see "Name" - And I should see "Description" - And I should see "License" - And I should see "Process Period" - And I should see "Type" - And I should see "Address" - And I should see "Configuration" - And I should see "Add" button - - @selenium - Scenario: I try to add a repository with no name - Given I follow "Add Repository" - When I fill the fields with the new following data - | repository_name | | - | repository_description | My Description | - | repository_license | ISC License (ISC) | - | repository_process_period | Not Periodically | - | repository_type | SUBVERSION | - | repository_address | https://project.svn.sourceforge.net/svnroot/project | - | repository_configuration_id | Sample Configuration | - And I press "Add" - Then I should see "Please fill all fields marked with (*)." inside an alert - - @selenium - Scenario: I try to add a repository with no address - Given I follow "Add Repository" - When I fill the fields with the new following data - | repository_name | My Name | - | repository_description | My Description | - | repository_license | ISC License (ISC) | - | repository_process_period | Not Periodically | - | repository_type | SUBVERSION | - | repository_address | | - | repository_configuration_id | Sample Configuration | - And I press "Add" - Then I should see "Please fill all fields marked with (*)." inside an alert - - @selenium - Scenario: I try to add a repository with a invalid address - Given I follow "Add Repository" - When I fill the fields with the new following data - | repository_name | My Name | - | repository_description | My Description | - | repository_license | ISC License (ISC) | - | repository_process_period | Not Periodically | - | repository_type | GIT | - | repository_address | https://invalid-address.any-extension | - | repository_configuration_id | Sample Configuration | - And I press "Add" - Then I should see "Address does not match type GIT chosen." inside an alert - - @selenium-teste - Scenario: I want to add a repository with valid attributes - Given I follow "Add Repository" - When I fill the fields with the new following data - | repository_name | My Name | - | repository_description | My Description | - | repository_license | ISC License (ISC) | - | repository_process_period | Not Periodically | - | repository_type | GIT | - | repository_address | https://github.com/user/project.git | - | repository_configuration_id | Sample Configuration | - And I press "Add" - Then I should see "My Name" - And I should see "My Description" - And I should see "ISC License (ISC)" - And I should see "Not Periodically" - And I should see "GIT" - And I should see "https://github.com/user/project.git" - And I should see "Sample Configuration" - And I should see "Status" - - #FIXME: create the step given I have repository... - @selenium-teste - Scenario: I want to see the repository edit form - Given I follow "Add Repository" - And I fill the fields with the new following data - | repository_name | My Name | - | repository_description | My Description | - | repository_license | ISC License (ISC) | - | repository_process_period | Not Periodically | - | repository_type | GIT | - | repository_address | https://github.com/user/project.git | - | repository_configuration_id | Sample Configuration | - And I press "Add" - And I am on article "Sample Project" - When I follow "Edit" - Then I should see "My Name" in the "repository_name" input - And I should see "My Description" in the "repository_description" input - And I should see "ISC License (ISC)" in the "repository_license" select - And I should see "Not Periodically" in the process period select field - And I should see "GIT" in the "repository_type" select - And I should see "https://github.com/user/project.git" in the "repository_address" input - And I should see "Sample Configuration" in the repository configuration select field - - #FIXME: create the step given I have repository... - @selenium - Scenario: I edit a Mezuro project with valid attributes - Given I follow "Add Repository" - And I fill the fields with the new following data - | repository_name | My Name | - | repository_description | My Description | - | repository_license | ISC License (ISC) | - | repository_process_period | Not Periodically | - | repository_type | GIT | - | repository_address | https://github.com/user/project.git | - | repository_configuration_id | Sample Configuration | - And I press "Add" - And I am on article "Sample Project" - When I follow "Edit" - And I fill the fields with the new following data - | repository_name | Another Name | - | repository_description | Another Description | - | repository_license | Apple Public Source License (APSL-2.0) | - | repository_process_period | Weekly | - | repository_type | SUBVERSION | - | repository_address | https://project.svn.sourceforge.net/svnroot/project | - | repository_configuration_id | Sample Configuration | - And I press "Add" - Then I should see "Another Name" - And I should see "Another Description" - And I should see "Apple Public Source License (APSL-2.0)" - And I should see "Weekly" - And I should see "SUBVERSION" - And I should see "https://project.svn.sourceforge.net/svnroot/project" - And I should see "Sample Configuration" - - #FIXME: create the step given I have repository... - @selenium - Scenario: I try to edit a Mezuro project leaving empty its title - Given I follow "Add Repository" - And I fill the fields with the new following data - | repository_name | My Name | - | repository_description | My Description | - | repository_license | ISC License (ISC) | - | repository_process_period | Not Periodically | - | repository_type | GIT | - | repository_address | https://github.com/user/project.git | - | repository_configuration_id | Sample Configuration | - And I press "Add" - And I am on article "Sample Project" - And I follow "Edit" - When I erase the "repository_name" field - And I press "Add" - Then I should see "Please fill all fields marked with (*)." inside an alert - - #FIXME: create the step given I have repository... - @selenium - Scenario: I try to edit a Mezuro project leaving empty its address - Given I follow "Add Repository" - And I fill the fields with the new following data - | repository_name | My Name | - | repository_description | My Description | - | repository_license | ISC License (ISC) | - | repository_process_period | Not Periodically | - | repository_type | GIT | - | repository_address | https://github.com/user/project.git | - | repository_configuration_id | Sample Configuration | - And I press "Add" - And I am on article "Sample Project" - And I follow "Edit" - When I erase the "repository_address" field - And I press "Add" - Then I should see "Please fill all fields marked with (*)." inside an alert - - #FIXME: create the step given I have repository... - @selenium - Scenario: I try to edit a repository with an existing repository name - Given I follow "Add Repository" - And I fill the fields with the new following data - | repository_name | My Name | - | repository_description | My Description | - | repository_license | ISC License (ISC) | - | repository_process_period | Not Periodically | - | repository_type | GIT | - | repository_address | https://github.com/user/project.git | - | repository_configuration_id | Sample Configuration | - And I press "Add" - And I am on article "Sample Project" - And I follow "Add Repository" - And I fill the fields with the new following data - | repository_name | Another Name | - | repository_description | Another Description | - | repository_license | Apple Public Source License (APSL-2.0) | - | repository_process_period | Weekly | - | repository_type | SUBVERSION | - | repository_address | https://project.svn.sourceforge.net/svnroot/project | - | repository_configuration_id | Sample Configuration | - And I press "Add" - And I am on article "Sample Project" - When I follow the edit link for "My Name" repository - And I fill the fields with the new following data - | repository_name | Another Name | - | repository_description | Another Description | - | repository_license | Apple Public Source License (APSL-2.0) | - | repository_process_period | Weekly | - | repository_type | SUBVERSION | - | repository_address | https://project.svn.sourceforge.net/svnroot/project | - | repository_configuration_id | Sample Configuration | - And I press "Add" - #Then I should see "Slug The title (article name) is already being used by another article, please use another title." - #FIXME fix this validation - - #FIXME: Need to define permissions? - @selenium - Scenario: I delete a Mezuro repository - Given I follow "Add Repository" - And I fill the fields with the new following data - | repository_name | My Name | - | repository_description | My Description | - | repository_license | ISC License (ISC) | - | repository_process_period | Not Periodically | - | repository_type | GIT | - | repository_address | https://github.com/user/project.git | - | repository_configuration_id | Sample Configuration | - And I press "Add" - And I am on article "Sample Project" - When I follow the remove link for "My Name" repository - And I should not see "My Name" - -- libgit2 0.21.2