Ajay9704 opened a new pull request, #15351:
URL: https://github.com/apache/grails-core/pull/15351

   I've been working on issue #14700 to bring back the profile testing 
functionality that was lost when the old shell scripts were removed. This was 
my first major contribution to Apache Grails, and I wanted to make sure I 
understood the problem thoroughly before implementing a solution.
   
   What I found
   
   When I dug into this issue, I discovered that the original profile tests 
were shell scripts that got removed in commit 9b8fa17 because they were 
outdated and needed reworking. These tests were quite comprehensive - they 
would create actual Grails applications using different profiles, run various 
grails commands, and even included functional tests with Geb/Selenium.
   
   My approach
   
   Instead of simply restoring the old shell scripts, I decided to modernize 
the approach by converting them to proper Gradle-based tests. I created a new 
grails-profiles-tests module that:
   Uses Spock framework for testing (which fits well with the existing Grails 
ecosystem)
   Leverages Grails Forge for programmatic application generation
   Tests all the key profile functionality (web, plugin, rest-api profiles)
   Includes both unit/integration tests and functional tests
   Works cross-platform (Windows, Linux, macOS)
   Integrates cleanly with the existing Gradle build system
   
   What's included
   
   The solution provides comprehensive test coverage that verifies:
   Profile directory structure creation
   Configuration file generation
   Profile-specific commands and workflows
   Application building and packaging
   Functional testing capabilities
   
   I also made sure to preserve the original shell scripts with proper ASF 
license headers for reference, maintaining backward compatibility while 
providing the modern testing approach.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to