Sign generated tests #1503

Closed
joevilches wants to merge 5 commits from export-D51966201 into main

5 Commits

Author SHA1 Message Date
Joe Vilches
bfd9d05cb0 Sign generated tests (#1503)
Summary:
Pull Request resolved: https://github.com/facebook/yoga/pull/1503

This diff makes it so that our driver will sign all of the generated files to help ensure that they are not edited by hand. Next I will add CI to actually verify the signature

Differential Revision: D51966201

fbshipit-source-id: f86979a73088f3b01e123cb670ec2c1e1576f72c
2023-12-11 10:47:05 -08:00
Joe Vilches
35d292d7c4 Update README with new instructions on how to run the gentest script
Differential Revision: https://www.internalfb.com/diff/D51957351?entry_point=27

fbshipit-source-id: bba88bc98a8142a4b91fea8d74e95aa9134d4338
2023-12-11 10:46:40 -08:00
Joe Vilches
ebfb9225d7 Remove ruby files and regen tests
Differential Revision: D51956567

fbshipit-source-id: ddd6f4f10c63a88bf2ac4f0a1962f28cc7604a67
2023-12-11 10:46:40 -08:00
Joe Vilches
48b91f7190 Add command line options to new node-based gentest
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: 622ed8813ee05a8af7ef2729e8a665336f772898
2023-12-11 10:46:40 -08:00
Joe Vilches
8b4366d6be Create node version of gentest script
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: 604498e3f6880169bdb042cce18d6084e2bb8533
2023-12-11 10:46:40 -08:00