Compare commits
24 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e50667b392 | |||
| d4db64f404 | |||
| 05858078d1 | |||
| f75f0378bf | |||
| c3d2fb32e2 | |||
| 1fe30fc7e7 | |||
| 43cc151138 | |||
| 1fee4f276d | |||
| 0b17f36fde | |||
| aca92fdae1 | |||
| c7bf62062a | |||
| b853ca6fe4 | |||
| d5919fc82a | |||
| e2395989f4 | |||
| e93868a483 | |||
| 7f6fc24872 | |||
| 776ec0d30d | |||
| 6861740d00 | |||
| 77e72d18e1 | |||
| 1792d94082 | |||
| 16d17bcadb | |||
| f5d1361d59 | |||
| c4932dd6cc | |||
| 031a30ed5f |
Vendored
+14
-4
@@ -25,7 +25,7 @@ pipeline {
|
||||
}
|
||||
stage('Run tests') {
|
||||
steps {
|
||||
sh 'cucumber features --format json --out cucumber.json'
|
||||
sh 'cucumber features --format html --out coverage/cucumber.html'
|
||||
}
|
||||
}
|
||||
stage('Report results') {
|
||||
@@ -36,11 +36,21 @@ pipeline {
|
||||
alwaysLinkToLastBuild: false,
|
||||
keepAll: true,
|
||||
reportDir: 'coverage',
|
||||
reportFiles: 'index.html',
|
||||
reportFiles: 'cucumber.html, index.html',
|
||||
reportName: 'Test Results',
|
||||
reportTitles: 'Test Coverage'])
|
||||
cucumber buildStatus: 'UNCHANGED', customCssFiles: '', customJsFiles: '', failedFeaturesNumber: -1, failedScenariosNumber: -1, failedStepsNumber: -1, fileIncludePattern: '**/cucumber.json', pendingStepsNumber: -1, skippedStepsNumber: -1, sortingMethod: 'ALPHABETICAL', undefinedStepsNumber: -1
|
||||
reportTitles: 'Cucumber Results, Test Coverage'])
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
mattermostSend channel: 'git-messages', color: 'good', message: "[${JOB_NAME}](${JOB_URL}) [#${BUILD_NUMBER}](${BUILD_URL}) ([Gitea](${GIT_URL}))", text: 'Build Finished Successfully'
|
||||
}
|
||||
unstable {
|
||||
mattermostSend channel: 'git-messages', color: 'warning', message: "[${JOB_NAME}](${JOB_URL}) [#${BUILD_NUMBER}](${BUILD_URL}) ([Gitea](${GIT_URL}))", text: "Build Unstable"
|
||||
}
|
||||
failure {
|
||||
mattermostSend channel: 'git-messages', color: 'danger', message: "[${JOB_NAME}](${JOB_URL}) [#${BUILD_NUMBER}](${BUILD_URL}) ([Gitea](${GIT_URL}))", text: "Build Failed"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,26 +10,3 @@ Feature: Homepage
|
||||
And I should see the message "Enter a URL"
|
||||
And I should see a form field "url"
|
||||
And I should see a "Submit" button
|
||||
|
||||
Scenario: Submitting the form without entering a URL
|
||||
Given I visit the "/" page
|
||||
When I click the "Submit" button
|
||||
Then I should be on "/" page
|
||||
And I should see the message "Please enter a valid URL"
|
||||
|
||||
@db-test
|
||||
Scenario: Submitting the form with a correct URL
|
||||
Given I visit the "/" page
|
||||
When I type "http://google.com" in the "url" field
|
||||
And I click the "Submit" button
|
||||
Then I should be on "/create" page
|
||||
And I should see the message "Link created"
|
||||
|
||||
@db-test
|
||||
Scenario: Submitting the form with an existing URL
|
||||
Given I visit the "/" page
|
||||
And A link already exists with the url "http://google.com"
|
||||
When I type "http://google.com" in the "url" field
|
||||
And I click the "Submit" button
|
||||
Then I should be on "/create" page
|
||||
And I should see the message "Link exists"
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
# features/submit.feature
|
||||
|
||||
Feature: Submit
|
||||
|
||||
Submitting URL's on the homepage
|
||||
|
||||
Scenario: Submitting the form without entering a URL
|
||||
Given I visit the "/" page
|
||||
When I click the "Submit" button
|
||||
Then I should be on "/" page
|
||||
And I should see the message "Please enter a valid URL"
|
||||
|
||||
@db-test
|
||||
Scenario: Submitting the form with a correct URL
|
||||
Given I visit the "/" page
|
||||
When I type "http://google.com" in the "url" field
|
||||
And I click the "Submit" button
|
||||
Then I should be on "/create" page
|
||||
And I should see the message "Link created"
|
||||
|
||||
@db-test
|
||||
Scenario: Submitting the form with an existing URL
|
||||
Given I visit the "/" page
|
||||
And A link already exists with the url "http://google.com"
|
||||
When I type "http://google.com" in the "url" field
|
||||
And I click the "Submit" button
|
||||
Then I should be on "/create" page
|
||||
And I should see the message "Link exists"
|
||||
Reference in New Issue
Block a user