elaichenkov / cypress-zephyr

Cypress reporter and plugin for Zephyr Scale
MIT License
8 stars 2 forks source link

Testcase key regex forces to refactor all testcases #199

Closed SergioOrozco-KSO closed 1 week ago

SergioOrozco-KSO commented 1 week ago

Cheking the plugin it enfoces that the title must have [TXX] at the beginning of the test, the problem is that I'm using currenly a different pattern like

Description of my test - TXX

In this scenario we have 2 options, a huge refactor, going test by test to adopt this naming schema or allowing the plugin to accept a different regex, that can be done using an environment variable that overrides this definition, and accept this value as the default one

https://github.com/elaichenkov/cypress-zephyr/blob/8f1b92964bda1d52e71c92d4ae46a2f40cd9cd88/src/reporter.ts#L12

SergioOrozco-KSO commented 1 week ago

Sorry, I used the wrong user to report it