-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
screenshot artifacts don't get created #805
Comments
my init.js looks like this:
|
I'm not sure if I can investigate it within the next few days. Hopefully on Monday I'll be able to take a good look at it. The only thing that looks kinda "suspicious" to me is the |
I tried with and without --reuse, the outcome is the same. I looked at the code a little, some observations:
I hope this helps! |
Yes. That helps. I had once a similar issue.
Ensure your beforeEach and afterEach statements indeed get called
in`init.js`. I know I may sound ridiculous because you supplied me with the
contents of your init file which clearly show you have these statements,
etc.
But nevertheless please put there some console.logs and check that the
Mocha adapter.beforeEach() and adapter.afterEach() gets called on practice.
Thanks in advance.
|
yeap did that. If I add bogus code in there and try to run the tests, I get an error on init.js. So that makes me think it is getting called. Also log recording is working but I am not sure this is tied to the beforeEach and afterEach using the adapter. |
The thing is that only log recording can work without beforeEach and afterEach - it will be recording everything from the start till the end in startup.log file. What kind of error do you get in init.js with your bogus code? Please post details. |
for example, if I add this:
I get:
|
@tachtevrenidis, could you please add something less "bogus" 😃, e.g.: beforeEach(async function () {
try {
console.log('KOTACHTE TRY BEFORE_EACH');
await adapter.beforeEach(this);
console.log('KOTACHTE SUCCESS BEFORE_EACH');
} catch (e) {
console.error('KOTACHTE CAUGHT ERROR', e);
}
}); Please post your experiences. |
here is an excerpt:
|
I also see this:
as I was saying earlier, I only see this 'takeScreenshot' reference if detox has to boot my simulator. If it is already booted, I don't see this. |
I am available all day, if you need more debug info (we can chat, screen share etc if you want). Being able to generate screenshots is of high priority to us! Also, I want to thank you for taking the time to add this feature, and also taking the time to troubleshoot with me! Very appreciative! |
Ping me tomorrow. You'll find my email in git log. |
@tachtevrenidis, your issue will be addressed by the next |
I am on RN 0.55 and Detox 8.0.0. I am running tests like this:
The artifacts folder is created and a subfolder with my test's name in it, but the folder is EMPTY. If I pass in --record-logs, I DO SEE the logs in the test artifacts folder.
The output from detox looks like this:
Help! :-)
The text was updated successfully, but these errors were encountered: