Skip to content
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