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

Remove ruby files and regen tests #1501

Closed
wants to merge 3 commits into from

Conversation

joevilches
Copy link
Contributor

Summary: Now that we have gentest-driver.ts we can delete the ruby gentest. I also regened all of the tests that have a comment with the wrong file name for where it was generated.

Differential Revision: D51956567

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51956567

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51956567

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 11, 2023
Summary:
Pull Request resolved: facebook#1501

Now that we have `gentest-driver.ts` we can delete the ruby gentest. I also regened all of the tests that have a comment with the wrong file name for where it was generated.

Differential Revision: D51956567

fbshipit-source-id: 05c64ecb64c35dd9edf1e618bc664fe36e874166
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51956567

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 12, 2023
Summary:
Pull Request resolved: facebook#1501

Now that we have `gentest-driver.ts` we can delete the ruby gentest. I also regened all of the tests that have a comment with the wrong file name for where it was generated.

Reviewed By: yungsters, NickGerleman

Differential Revision: D51956567

fbshipit-source-id: 875afd501de0b0cd7efcd1ed48001d0e58b24e74
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51956567

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 13, 2023
Summary:
Pull Request resolved: facebook#1501

Now that we have `gentest-driver.ts` we can delete the ruby gentest. I also regened all of the tests that have a comment with the wrong file name for where it was generated.

Reviewed By: yungsters, NickGerleman

Differential Revision: D51956567

fbshipit-source-id: 01a65ce2f9a0f57d292d2262e27ca203ae2ecbe7
Joe Vilches and others added 3 commits December 13, 2023 13:47
Summary:
The only instance of ruby in this repository is `gentest.rb` used to generate test cases from html fixtures. This is quite annoying as ruby is not the most popular compared to something like Node and it does not integrate into the rest of our stack. I changed this to use Node.js instead. Instead of `watir` we now use `selenium-webdriver`. `watir` is backed by Selenium so I do not expect anything to change.

Next commits will add command line options, clean up gentest.rb and its references, and change the README

Differential Revision: https://www.internalfb.com/diff/D51874433?entry_point=27

fbshipit-source-id: 586a201cb5741241d2402f9dfd5bc382863e8d89
Summary: This uses the minimist library to parse the command line easily for flags and options. I added over the same ones in the ruby script (-f and -s). Unfortunately, there seems to be no way to fully suspend the script on command while waiting for user input like how you can in ruby. So, I am only able to suspend at the very end by not closing the browser immediately. Therefore, I only let this happen if -f is specified.

Differential Revision: https://www.internalfb.com/diff/D51877810?entry_point=27

fbshipit-source-id: a681c647f2cfcf39dd724cea7d2505f61d125318
Summary:
Pull Request resolved: facebook#1501

Now that we have `gentest-driver.ts` we can delete the ruby gentest. I also regened all of the tests that have a comment with the wrong file name for where it was generated.

Reviewed By: yungsters, NickGerleman

Differential Revision: D51956567

fbshipit-source-id: 1e09f5fdee762e2de37e3e54bc713486bbcb7158
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51956567

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in e61eb01.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants