Skip to content

add: handling for different folder structure turboscale #967

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

Merged
merged 3 commits into from
Feb 19, 2025
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bin/helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,11 @@ exports.getNumberOfSpecFiles = (bsConfig, args, cypressConfig, turboScaleSession
logger.debug(`${files ? files.length : 0} spec files found`);

if (turboScaleSession) {
if (bsConfig.run_settings.turboScaleOptions && bsConfig.run_settings.turboScaleOptions.integrationFolder) {
// this is in case the user's project does not use the default path 'cypress/e2e'
// add integrationFolder in turboScaleOptions in browserstack.json
testFolderPath = bsConfig.run_settings.turboScaleOptions.integrationFolder;
}
// remove unwanted path prefix for turboscale
files = files.map((x) => { return path.join(testFolderPath, x.split(testFolderPath)[1]) })
// setting specs for turboScale as we don't have patched API for turboscale so we will rely on info from CLI
Expand Down