This repository was archived by the owner on Sep 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +19
-6
lines changed
src/test/java/com/gitblit/tests Expand file tree Collapse file tree 3 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 4646 - name : Build all artefacts
4747 run : ./gradlew --no-daemon buildAll
4848
49- - name : Run unit tests
50- run : ./gradlew --no-daemon test
49+ - name : Run unit tests, excluding the Ldap*Test classes
50+ run : ./gradlew --no-daemon test -PexcludeTests=**/Ldap*Test.class
51+
52+ - name : Run only the Ldap*Test unit tests
53+ run : ./gradlew --no-daemon test --tests *Ldap*Test
5154
5255 build_windows :
5356 name : Build and test in Windows environment
8386 - name : Build all artefacts
8487 run : .\gradlew.bat --no-daemon buildAll
8588
86- - name : Run unit tests
87- run : .\gradlew.bat --no-daemon test
89+ - name : Run unit tests, excluding the LdapPublicKeyManagerTest class
90+ run : .\gradlew.bat --no-daemon test -PexcludeTests=**/LdapPublicKeyManagerTest.class
91+
92+ - name : Run only the LdapPublicKeyManagerTest unit test class
93+ run : .\gradlew.bat --no-daemon test --tests *LdapPublicKeyManagerTest
94+
Original file line number Diff line number Diff line change @@ -106,6 +106,13 @@ sourceSets {
106106 }
107107}
108108
109+ test {
110+ // Dynamic exclude some unit tests through property defined in the command line
111+ if (project. hasProperty(' excludeTests' )) {
112+ exclude project. property(' excludeTests' )
113+ }
114+ }
115+
109116task copyToRunDir (type : Copy ) {
110117 description = " Copy main classes and resources to the 'run' directory"
111118 group = ' Run'
Original file line number Diff line number Diff line change 3030
3131import org .apache .sshd .common .util .SecurityUtils ;
3232import org .junit .BeforeClass ;
33- import org .junit .Ignore ;
3433import org .junit .Test ;
3534import org .junit .runner .RunWith ;
3635import org .junit .runners .Parameterized ;
5049 * @author Florian Zschocke
5150 *
5251 */
53- @ Ignore ("inconsistent; would pass when run stand-alone, but fail when run as part of the whole 'unit test' suite" )
52+ // @Ignore("inconsistent; would pass when run stand-alone, but fail when run as part of the whole 'unit test' suite")
5453@ RunWith (Parameterized .class )
5554public class LdapPublicKeyManagerTest extends LdapBasedUnitTest {
5655
You can’t perform that action at this time.
0 commit comments