Skip to content

Fix for GRAILS-6818: Allow tests to be run in a consistent order#9

Closed
ataylor284 wants to merge 1 commit into
apache:masterfrom
ataylor284:441d7c656fc3ee58a49ae301ca4e9936025ce4a6
Closed

Fix for GRAILS-6818: Allow tests to be run in a consistent order#9
ataylor284 wants to merge 1 commit into
apache:masterfrom
ataylor284:441d7c656fc3ee58a49ae301ca4e9936025ce4a6

Conversation

@ataylor284
Copy link
Copy Markdown

This patch allows tests to be run in a specific order. Sorting is enabled by adding the following to BuildConfig.groovy:

grails.testing.sortFiles = true

For finer control, a closure can be provided:

grails.testing.sortFiles = { a, b -> a <=> b }

 - default is unchanged (unsorted)
 - grails.testing.sortFiles = true for alphabetic sorting
 - grails.testing.sortFiles = { a, b -> a <=> b } e.g. for custom sorting
@ldaley
Copy link
Copy Markdown
Contributor

ldaley commented Oct 12, 2010

Duplicated by http://jira.codehaus.org/browse/GRAILS-6818

jdaugherty pushed a commit to jdaugherty/grails-core that referenced this pull request Jan 7, 2025
jdaugherty pushed a commit to jdaugherty/grails-core that referenced this pull request Jan 9, 2025
making plugin Groovy 2.5.x ready
jdaugherty pushed a commit to jdaugherty/grails-core that referenced this pull request Feb 9, 2025
jdaugherty pushed a commit that referenced this pull request May 1, 2025
…eleton/client/acorn-6.4.1

Bump acorn from 6.4.0 to 6.4.1 in /skeleton/client
jdaugherty pushed a commit that referenced this pull request May 1, 2025
jdaugherty pushed a commit that referenced this pull request May 1, 2025
jdaugherty pushed a commit that referenced this pull request May 1, 2025
Update to plugin and web profiles 7.0.1, grails-gradle-plugin 7.0.0-M2 and Gradle 8.11.1
jdaugherty pushed a commit that referenced this pull request May 1, 2025
jamesfredley pushed a commit to jamesfredley/grails-core that referenced this pull request Jul 13, 2025
* Update hibernate core

* Update HibernateGormSpec.groovy

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Puneet Behl <behlp@objectcomputing.com>
@testlens-app testlens-app Bot mentioned this pull request Apr 19, 2026
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants