-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
5,693 additions
and
549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// cucumber.js | ||
let common = [ | ||
'features/**/*.feature', // Specify our feature files | ||
'--require-module ts-node/register', // Load TypeScript module | ||
'--require features/**/*.ts', // Load step definitions | ||
'-f @cucumber/pretty-formatter', | ||
// '-t @new', | ||
'--no-strict', | ||
'--force-exit', | ||
].join(' '); | ||
|
||
module.exports = { | ||
default: common | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Feature: OpenTelemetry metrics | ||
Scenario: Worker metrics published | ||
Given Worker is configured to point to mock Cloudflare API | ||
Given Worker is configured to send metrics to a mock OpenTelemetry collector | ||
When Worker is triggered | ||
Then Worker metrics are published | ||
And Meter name should include "cloudflare_worker_requests" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import {Given, When, Then} from '@cucumber/cucumber'; | ||
|
||
Given('Worker is configured to point to mock Cloudflare API', function () { | ||
// Write code here that turns the phrase above into concrete actions | ||
return 'pending'; | ||
}); | ||
|
||
Given('Worker is configured to send metrics to a mock OpenTelemetry collector', function () { | ||
// Write code here that turns the phrase above into concrete actions | ||
return 'pending'; | ||
}); | ||
|
||
When('Worker is triggered', function () { | ||
// Write code here that turns the phrase above into concrete actions | ||
return 'pending'; | ||
}); | ||
|
||
Then('Worker metrics are published', function () { | ||
// Write code here that turns the phrase above into concrete actions | ||
return 'pending'; | ||
}); | ||
|
||
|
||
Then('Meter name should include {string}', function (string) { | ||
// Write code here that turns the phrase above into concrete actions | ||
return 'pending'; | ||
}); |
Oops, something went wrong.