Package: testng / 5.11+dfsg-3

Metadata

Package Version Patches format
testng 5.11+dfsg-3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
debian/disable broken qdox tests.diff p1 | (download)

test/src/test/converter/AnnotationConverterTest.java | 6 3 + 3 - 0 !
test/testng.xml | 5 5 + 0 - 0 !
2 files changed, 8 insertions(+), 3 deletions(-)

 disable broken qdox tests

Some tests were broken by an update of qdox in Debian to 1.11.


debian/disable broken threading tests.diff p1 | (download)

test/src/test/thread/DataProviderThreadPoolSizeTest.java | 4 2 + 2 - 0 !
test/src/test/thread/MultiThreadedDependentTest.java | 2 1 + 1 - 0 !
test/src/test/thread/ThreadPoolSizeTest.java | 2 1 + 1 - 0 !
3 files changed, 4 insertions(+), 4 deletions(-)

 disable broken threading tests
Bug: http://jira.opensymphony.com/browse/TESTNG-360

The DataProviderThreadPoolSizeTest relies on broken assumptions about
the thread pool of the ExecutorService. When a thread pool of fixed
size is requested, it is not guaranteed that the maximum number of
threads will ever be used. From the documentation of
Executors.newFixedThreadPool():

  "At any point, at most nThreads threads will be active processing tasks."

In fact if each task finishes before the next one can be submitted,
all the tasks could use a single thread.


debian/exclude 3rdparty jars.diff p1 | (download)

build.xml | 24 9 + 15 - 0 !
test/ant/build.xml | 16 13 + 3 - 0 !
2 files changed, 22 insertions(+), 18 deletions(-)

 do not include third-party libraries in the jar file
debian/stop on test failure.diff p1 | (download)

test/build.xml | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 stop the build if there are any failed tests


debian/junitconvertor test fix.diff p1 | (download)

test/src/test/converter/JUnitConverterTest.java | 9 5 + 4 - 0 !
1 file changed, 5 insertions(+), 4 deletions(-)

 switches junitconverter test to use parameters annotation to 
 pickup source-directory for tests.  This resolves a FTBFS seen in Ubuntu
 Oneiric but not in earlier releases and is present in the upstream release
 as well went build on Oneiric
 .
 This test is no longer executed in the next release of testng so not
 forwarding upstream. 
features/build without dtddoc.diff p1 | (download)

build.xml | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 allow building without dtddoc


features/qdox 1.9.diff p1 | (download)

src/main/org/testng/internal/AnnotationTestConverter.java | 12 8 + 4 - 0 !
1 file changed, 8 insertions(+), 4 deletions(-)

 upgrade to qdox 1.9
features/scope qdox bsh.diff p1 | (download)

bundle-pom.xml | 2 0 + 2 - 0 !
1 file changed, 2 deletions(-)

 fix scope for qdox and bsh dependencies
Bug: http://jira.opensymphony.com/browse/TESTNG-361

bsh and qdox are runtime dependencies of TestNG, so they should not
have "provided" scope.


features/threadsafe collections in tests.diff p1 | (download)

test/src/test/configuration/ConfigurationGroupBothSampleTest.java | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

 use threadsafe collections in threaded tests
Bug: http://jira.opensymphony.com/browse/TESTNG-404

The ConfigurationGroupBothSampleTest modifies a non-threadsafe
collection within a test method that is invoked concurrently from two
threads. This can cause the test to fail.