Skip to content

Commit

Permalink
Put generated Java tests in a "generated" folder (#1673)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #1673

Separate the generated Java tests from the non-generated ones, like all the other tests.

Reviewed By: javache

Differential Revision: D58989535

fbshipit-source-id: 4ffe92d079acdf3ba24731f7f1ef1ae6eba97da5
  • Loading branch information
NickGerleman authored and facebook-github-bot committed Jun 26, 2024
1 parent 1a3bc6b commit b9e335e
Show file tree
Hide file tree
Showing 24 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gentest/gentest-driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ for (const fileName of fixtures) {
);

await fs.writeFile(
`${yogaDir}/java/tests/com/facebook/yoga/${fileNameNoExtension}.java`,
`${yogaDir}/java/tests/generated/com/facebook/yoga/${fileNameNoExtension}.java`,
addSignatureToSourceCode(
JSON.parse(logs[1].message.replace(/^[^"]*/, '')).replace(
'YogaTest',
Expand Down
2 changes: 1 addition & 1 deletion gentest/gentest-validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const filesToValidate = await glob(
[
'tests/generated/**/*.{h,cpp}',
'javascript/tests/generated/**/*.test.ts',
'java/tests/com/facebook/yoga/**/*.java',
'java/tests/generated/com/facebook/yoga/**/*.java',
],
{
cwd: yogaRootDir,
Expand Down
File renamed without changes.

0 comments on commit b9e335e

Please sign in to comment.