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

Update Jest-related docs #355

Merged
merged 3 commits into from
Oct 25, 2017
Merged

Update Jest-related docs #355

merged 3 commits into from
Oct 25, 2017

Conversation

Kureev
Copy link
Contributor

@Kureev Kureev commented Oct 21, 2017

Scope of changes:

  • Add jest to detox --help command
  • Add missing flags for "test:e2e" script

@@ -46,13 +46,15 @@ Add this part to your `package.json`:
"setupTestFrameworkScriptFile": "./e2e/init.js"
},
"scripts": {
"test:e2e": "detox test",
"test:e2e": "detox test -c ios.sim.debug -a e2e",
Copy link
Member

Choose a reason for hiding this comment

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

-a sets artifacts output location, what did you mean by that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

for some reason, if you don't specify anything, _getAbsolutePath tries to create artifacts folder under undefined/

Copy link
Member

Choose a reason for hiding this comment

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

That’s a different issue then, but we certainly don’t want them in our e2e tests library (or anywhere for that matter, it’s unrelated to this part of the docs). Let’s open an issue to fix that ASAP

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it is related to process.cwd() in child process. I'll follow up on this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rotemmiz ok, it seems to happen only if I use xcode config (to debug using xcode), because binaryPath is not specified. Should I make an exception here?

Copy link
Member

Choose a reason for hiding this comment

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

Not sure I follow why _getAbsolutePath is needed in that case, but I'll take a look in the code later.
I still think the issue you're trying to debug is out of the scope of this PR, so we can change the docs, and open a new issue with that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry for miscommunication. process.cwd() has nothing to do with the issue. Yeah, I can remove artifacts part as far as it is only related to xcode debug configuration. I'll follow up on this in separated issue

Copy link
Contributor

@DanielMSchmidt DanielMSchmidt left a comment

Choose a reason for hiding this comment

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

Great job 👍

@Kureev
Copy link
Contributor Author

Kureev commented Oct 23, 2017

@rotemmiz I updated this PR by removing -a e2e. I think it is good to go now.

@Kureev
Copy link
Contributor Author

Kureev commented Oct 24, 2017

Should we merge it in?

@rotemmiz
Copy link
Member

Still trying to figure out why e2e fails on Xcode 8.3.3, re ran the build, see you on the other side.

@rotemmiz rotemmiz merged commit 4aae350 into wix:master Oct 25, 2017
@Kureev Kureev deleted the feature/update-docs branch October 28, 2017 23:38
@wix wix locked and limited conversation to collaborators Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants