GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||
GeezerVison is showing github.com — fix(cli): support sketches with custom main file names by avinxshKD · Pull Request #1329 · processing/processing4 Conversation
|
|
@Stefterv, kindly review this too when you get a chance |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hi @avinxshKD the code looks great to me, the tests however could use some work. Could you please create a test that tests the actual issue? See https://github.com/processing/processing4/blob/main/app/test/processing/app/CLITest.kt on how to write tests for the Command Line Interface! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Added testSketchWithCustomMainFile() to CLITest.kt as requested by maintainer. This test provides a placeholder for manual testing of sketches with custom main files specified in sketch.properties. Follows the same pattern as existing CLI tests (testLSP, testLegacyCLI) and is intended to be run manually in IntelliJ IDEA.
Hi @Stefterv, thank you for the feedback! I've made the following updates:
The CLI test is ready for manual verification once you have a chance to test with a sketch that has a custom main file in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hi @avinxshKD please see here on how to create a temporary directory and temporary sketch so this does not need to be a manual test. We do not do any manual testing unfortunately processing4/app/test/processing/app/SketchbookTest.kt Lines 16 to 23 in ef226c9
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Converted testSketchWithCustomMainFile() from manual to automated test. Now creates a temporary sketch folder with custom main file and sketch.properties, then tests the CLI build command. Follows the pattern from SchemaTest.kt using Files.createTempDirectory() and automatic cleanup.
|
Hi @Stefterv, thank you for the guidance I've updated the test to be fully automated as requested |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@Stefterv Hey, pls review and is there anything you think I should add or improve? If yes, I’ll work on it after my exams. Thanks |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@all-contributors please add @avinxshKD for code |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I've put up a pull request to add @avinxshKD! 🎉 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@catilac should I open a new issue for the following review item? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
processing cli does not support sketches with a different main.pde file
There was an error while loading. Please reload this page.