plu / pxctest

Execute tests in parallel on multiple iOS Simulators
MIT License
800 stars 57 forks source link

No log file created when using Xcode UI Tests #23

Open plu opened 7 years ago

plu commented 7 years ago

See discussion here:

https://github.com/plu/pxctest/commit/dc69f3be518e06f4c637e87928ccf42c045405c0

plu commented 7 years ago

So far I cannot reproduce the issue. I've created a sample iOS project, using Xcode's UI tests. The log file is created successfully:

$ run-tests --testrun build/Products/UITestSample_iphonesimulator10.2-i386.xctestrun --destination "name=iPhone 5,OS=iOS 10.2" --output out\ put
...

$ ls -la out\ put/UITestSampleUITests/iOS\ 10.2/iPhone\ 5/UITestSampleUITests-Runner.log
-rw-r--r--  1 plu  staff  8339 Feb 26 08:36 out put/UITestSampleUITests/iOS 10.2/iPhone 5/UITestSampleUITests-Runner.log

I'm on mac OS Sierra 10.12.3 (16D32), using Xcode Version 8.2.1 (8C1002).

@davetobin are you on the same mac OS and Xcode version?

davetobin commented 7 years ago

@plu Thanks for checking this out. I'll start with a clean slate when I get a chance and check this out again. I'm on the same Xcode version but OS Sierra 10.12.2 (16C67). I'll update also. You can close this issue if you like and I can reopen with steps to reproduce if it doesn't work for me.

davetobin commented 7 years ago

@plu Having tried this from scratch on Sierra 10.12.3, it seems I am now getting a log file but it's the UITests-Runner.log file as opposed to the AppName.log that I got previously. Do you know if there's a way to get the app log file like before?

plu commented 7 years ago

I need to investigate this. We could go back to the previous way of obtaining logs, but I'd like to avoid that, if possible.