Compare commits
No commits in common. "cc1fe1c3b772a5e0717a0eb77fc0d0ec93e373f1" and "e6cc0959a40d3a8d7229de1ee9dc2c0d02c562f8" have entirely different histories.
cc1fe1c3b7
...
e6cc0959a4
|
|
@ -25,7 +25,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Run tests') {
|
stage('Run tests') {
|
||||||
steps {
|
steps {
|
||||||
sh 'cucumber features --format json --out cucumber.json'
|
sh 'cucumber'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Report results') {
|
stage('Report results') {
|
||||||
|
|
@ -39,7 +39,6 @@ pipeline {
|
||||||
reportFiles: 'index.html',
|
reportFiles: 'index.html',
|
||||||
reportName: 'Test Results',
|
reportName: 'Test Results',
|
||||||
reportTitles: 'Test Coverage'])
|
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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,3 +33,17 @@ Feature: Homepage
|
||||||
And I click the "Submit" button
|
And I click the "Submit" button
|
||||||
Then I should be on "/create" page
|
Then I should be on "/create" page
|
||||||
And I should see the message "Link exists"
|
And I should see the message "Link exists"
|
||||||
|
|
||||||
|
@db-test
|
||||||
|
Scenario: Accessing the URL based on the shortcode
|
||||||
|
Given A link already exists with the url "https://google.com" and code "aaaaaa"
|
||||||
|
When I visit the "/aaaaaa" location
|
||||||
|
Then I should be redirected to "https://google.com"
|
||||||
|
|
||||||
|
Scenario: Accessing a nonexistent URL code
|
||||||
|
Given I visit the "/aaaaaa" location
|
||||||
|
Then I should be on "/aaaaaa" page
|
||||||
|
And The status code should be 404
|
||||||
|
And I should see the message "Link aaaaaa doesn't exist"
|
||||||
|
And I should see a form field "url"
|
||||||
|
And I should see a "Submit" button
|
||||||
|
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
# features/visit.feature
|
|
||||||
|
|
||||||
Feature: Visit
|
|
||||||
|
|
||||||
Accessing a URL from it's link code
|
|
||||||
|
|
||||||
@db-test
|
|
||||||
Scenario: Accessing the URL based on the shortcode
|
|
||||||
Given A link already exists with the url "https://google.com" and code "aaaaaa"
|
|
||||||
When I visit the "/aaaaaa" location
|
|
||||||
Then I should be redirected to "https://google.com"
|
|
||||||
|
|
||||||
Scenario: Accessing a nonexistent URL code
|
|
||||||
Given I visit the "/aaaaaa" location
|
|
||||||
Then I should be on "/aaaaaa" page
|
|
||||||
And The status code should be 404
|
|
||||||
And I should see the message "Link aaaaaa doesn't exist"
|
|
||||||
And I should see a form field "url"
|
|
||||||
And I should see a "Submit" button
|
|
||||||
Loading…
Reference in New Issue