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

Support for multiple test summary Plists/destinations #20

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

lyricsboy
Copy link

Related to #4.

This adds:

  • support for overriding the path parameter via the Fastfile (0724404)
  • properties to the JUnit XML output that help distinguish run destinations
  • a package attribute based on the run destination's name + OS Version

It changes:

  • the way that TestSummaries.plist files are searched for. It uses a recursive path spec to find any files ending in _TestSummaries.plist. This avoids creating output based on the duplicative TestSummaries.plist file in the root of the result bundle.

@KrauseFx
Copy link
Member

KrauseFx commented May 3, 2018

Cool, thanks 👍 Do you think you can test this in production and ensure this doesn't break anything existing, and works with the new setup?

@lyricsboy
Copy link
Author

I can't guarantee my availability to test it in production but I'll try. @CraigLn is this something you can test?

@@ -4,7 +4,7 @@ class TrainerAction < Action
def self.run(params)
require "trainer"

params[:path] = Actions.lane_context[Actions::SharedValues::SCAN_GENERATED_PLIST_FILE] if Actions.lane_context[Actions::SharedValues::SCAN_GENERATED_PLIST_FILE]
params[:path] ||= Actions.lane_context[Actions::SharedValues::SCAN_GENERATED_PLIST_FILE] if Actions.lane_context[Actions::SharedValues::SCAN_GENERATED_PLIST_FILE]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you weren't previously setting 'path' it will now always be '.' (the options default) even if SCAN_GENERATED_PLIST_FILE exists. If you want everything to be passive you could do something like this. I'm not sure what the best fix is for people using with/without Fastlane, since they're both assuming different default values.

Looks good; thanks for creating the PR.

@sudheer549
Copy link

Has any one tried this commit, needed this one as need to run multiple devices

@BlackWolf
Copy link

Any advice on what's preventing this from being merged? This would be really valuable for us :-)

@slk9
Copy link

slk9 commented Aug 14, 2020

Any plans to merge this PR? It is 2 years old and I don't see why it is not in yet when everyone including me :) needs it. Time fly so, Xcode 11 supports test configurations which another test suite distinguish information needed to be added to JUnit.xml

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.

6 participants