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

Upload videos #150

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

thomaswinkler
Copy link
Contributor

Another approach at uploading videos to the launch log in suiteEnd(). To support Cypress videosFolder and videoUploadOnPasses config options, this options need to be passed to reporterOptions 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 in suitesStackTempInfo needs to be updated to failed if any of it's sub suites fails.

* 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
Comment on lines +105 to +121
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,
},
};
};

Copy link
Contributor Author

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.

@krutarth0
Copy link

Is there any update on this ? It'd be great to have this in the repo.

@bmanubolu
Copy link

when can we expect this PR to be merged?

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