-
Notifications
You must be signed in to change notification settings - Fork 39
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
Upload videos #150
base: develop
Are you sure you want to change the base?
Upload videos #150
Conversation
* develop: Screenshots from plugin event on(after:screenshot) (reportportal#146) 5.1.1 -> 5.1.2-SNAPSHOT Mention 5.1.1 version in changelog file 5.1.1 Update VERSION file with 5.1.1 Update changelog EPMRPP-81509 || Add mergeOptions config Fix passing mode property from config options (reportportal#142) Finish skipped tests (reportportal#141) Bump decode-uri-component from 0.2.0 to 0.2.2 (reportportal#136) Bump minimatch from 3.0.4 to 3.0.5 (reportportal#143) Bump qs from 6.5.2 to 6.5.3 (reportportal#137) Use patch version fragment 5.1.0 -> 5.1.1-SNAPSHOT # Conflicts: # lib/plugin/index.js # lib/reporter.js # test/utils.test.js
const prepareReporterOptions = (config) => { | ||
// copy this options from cypess config to report portal options | ||
const passthroughOptions = { | ||
videosFolder: config.videosFolder, | ||
screenshotsFolder: config.screenshotsFolder, | ||
videoUploadOnPasses: config.videoUploadOnPasses, | ||
}; | ||
|
||
return { | ||
...config, | ||
reporterOptions: { | ||
...passthroughOptions, | ||
...config.reporterOptions, | ||
}, | ||
}; | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AmsterGet I introduced a way of passing Cypress config options into reporterOptions
to access selected options within the reporter. Reporter will work without any of the current passed through options, but videoUploadOnPasses
is important to supported expected behavior from user perspective.
Is there any update on this ? It'd be great to have this in the repo. |
when can we expect this PR to be merged? |
Another approach at uploading videos to the launch log in
suiteEnd()
. To support CypressvideosFolder
andvideoUploadOnPasses
config options, this options need to be passed toreporterOptions
when the plugin is initialized. Not sure if there is another or better way, but seems to be working very well. Added tests to document the behavior.Please note, for
videoUploadOnPasses
to work, the status of the root suite insuitesStackTempInfo
needs to be updated tofailed
if any of it's sub suites fails.