Compare commits

...

6 Commits

Author SHA1 Message Date
bucky cc1fe1c3b7 Merge pull request 'cucumber-jenkins' (#19) from cucumber-jenkins into master
Reviewed-on: #19
2023-10-10 09:44:14 -07:00
bucky 72e1cee9d5 split features into 2 separate feature files 2023-10-09 20:19:34 -07:00
bucky a90ff753b1 use cucumber plugin 2023-10-09 18:52:48 -07:00
bucky b6010cd431 remove the config in there 2023-10-09 18:37:46 -07:00
bucky 33bfb23405 add a setting for it 2023-10-09 18:35:50 -07:00
bucky ad4f8492d4 add jenkins cucumber functionality 2023-10-09 18:30:50 -07:00
3 changed files with 21 additions and 15 deletions
Vendored
+2 -1
View File
@@ -25,7 +25,7 @@ pipeline {
}
stage('Run tests') {
steps {
sh 'cucumber'
sh 'cucumber features --format json --out cucumber.json'
}
}
stage('Report results') {
@@ -39,6 +39,7 @@ pipeline {
reportFiles: '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
}
}
}
-14
View File
@@ -33,17 +33,3 @@ Feature: Homepage
And I click the "Submit" button
Then I should be on "/create" page
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
+19
View File
@@ -0,0 +1,19 @@
# 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