Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Start/stop performance metrics collection for each test case without glue code #236

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

PreethiMaai
Copy link
Contributor

No description provided.

Copy link

Issue with linting detected.
Linting failed with the following errors:

yarn run v1.22.22
$ eslint .

/home/runner/work/firebolt-certification-suite/firebolt-certification-suite/cypress/support/cypress-support/src/main.js
  264:3  error  Expected space or tab after '//' in comment  spaced-comment

✖ 1 problem (1 error, 0 warnings)
  1 error and 0 warnings potentially fixable with the `--fix` option.

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

For more information on our linting policies, please see our Linting-Guide.

*/
Cypress.Commands.add('initiatePerformanceMetrics', () => {
// Retrieve the scenario name from the env.
const scenarioName = Cypress.env(CONSTANTS.SCENARIO_NAME);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like we only need the scenarioName when we enter the if condition on line 1564. Do we need it to be defined outside of that block?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defined scenarioName inside if block.

*/
Cypress.Commands.add('performanceValidation', (object) => {
// Check if performance metrics are enabled
if (UTILS.getEnvVariable('performanceMetrics')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to constant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants