Skip to content

Commit b9e335e

Browse files
NickGerlemanfacebook-github-bot
authored andcommitted
Put generated Java tests in a "generated" folder (facebook#1673)
Summary: Pull Request resolved: facebook#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
1 parent 1a3bc6b commit b9e335e

24 files changed

+2
-2
lines changed

gentest/gentest-driver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ for (const fileName of fixtures) {
106106
);
107107

108108
await fs.writeFile(
109-
`${yogaDir}/java/tests/com/facebook/yoga/${fileNameNoExtension}.java`,
109+
`${yogaDir}/java/tests/generated/com/facebook/yoga/${fileNameNoExtension}.java`,
110110
addSignatureToSourceCode(
111111
JSON.parse(logs[1].message.replace(/^[^"]*/, '')).replace(
112112
'YogaTest',

gentest/gentest-validate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const filesToValidate = await glob(
1919
[
2020
'tests/generated/**/*.{h,cpp}',
2121
'javascript/tests/generated/**/*.test.ts',
22-
'java/tests/com/facebook/yoga/**/*.java',
22+
'java/tests/generated/com/facebook/yoga/**/*.java',
2323
],
2424
{
2525
cwd: yogaRootDir,

0 commit comments

Comments
 (0)