Package Details: java-testng 7.4.0-1

Git Clone URL: https://aur.archlinux.org/java-testng.git (read-only, click to copy)
Package Base: java-testng
Description: A testing framework inspired by JUnit and NUnit
Upstream URL: http://testng.org
Licenses: Apache
Submitter: alucryd
Maintainer: a.kudelin
Last Packager: a.kudelin
Votes: 24
Popularity: 0.000001
First Submitted: 2011-12-29 14:17
Last Updated: 2021-09-23 12:02

Dependencies (2)

Required by (4)

Sources (1)

Latest Comments

1 2 3 Next › Last »

andrescm90 commented on 2021-04-21 20:53

Got it fixed! @Vial all I did was the following:

  1. Uninstalled any jdk-openjdk* you might have
  2. Search for testing on the "Add/Remove Software" window, then click where it says "Dependencies". You'll see "jdk8-openjdk". Click on it.
  3. It'll take you exactly to the one you need, install it.
  4. Run try installing the "java-testng" again.

Good luck!

andrescm90 commented on 2021-04-15 20:36

Same problem here: as @vial.

TestRunnerIssue1625. testMethod[0](class test.configuration.github1625.TestclassSampleUsingMocks)
TestRunnerIssue1625. testMethod[0](class test.configuration.github1625.TestclassSampleUsingMocks)
TestRunnerIssue1625. testMethod[0](class test.configuration.github1625.TestclassSampleUsingMocks)
IssueTest. testMethod[3]([Ltesthelper.SourceCode;@24f2af49)
IssueTest. testMethod[3]([Ltesthelper.SourceCode;@24f2af49)
IssueTest. testMethod[3]([Ltesthelper.SourceCode;@4ee8baf1)

Vial commented on 2021-02-08 16:17

Failed to build, 5 tests failed.

-TestRunnerIssue1625. testMethod0 -TestRunnerIssue1625. testMethod0 -IssueTest. testMethod3 -IssueTest. testMethod3 -EfficientPriorityParallelizationTest2. verifyThatSlowMethodStartedFirstAndEndedLast

Here's the detailed report

https://drive.google.com/drive/folders/1Twm1Hp7Xr6gYgxWOHxG_fzHmrKMqolmv?usp=sharing

petronny commented on 2020-12-15 07:41

<s>

Also the test is still failing after setting depends=('jdk8-openjdk').

I have no idea how bartus fixed it. Building with devtools is defintely in clean chroot.

You can easily reproduce the error with extra-x86_64-build.

</s>

Well the build just passed like magic ...

petronny commented on 2020-12-15 07:38

official guidelines don't mention that compatibility with devtools should be maintained as well as depends=() should take place in the package section.

Well, that's true. Putting depends inside package() is just a trick for better packaging. And it's widely used for official packages, such as llvm.

For this package, java-runtime in depends is overriding the default java version than jdk8-openjdk in makedepends when building with devtools. Applying this trick can solve this problem.

I'm packaging java-testng in the arch4edu repository which is only building packages with devtools. Could you do me a favor to apply this trick?

bartus commented on 2020-12-12 18:52

@a.kudelin: Thanks, works fine ( had the same type of issue with my python2-scons )

btw. I strictly build packages in the clean chroot and tmpfs aur build -L -f -c -T -D /tmp.

Mostly because it's faster, but also it keeps my rootfs size sane (I don't need no 6GB cuda installation ԅ( ̄ε ̄ԅ) )

a.kudelin commented on 2020-12-12 17:31

@bartus, could you please try again to build the package in the clean environment? I suspect the problem was in a wrong Java version, now Java 8 is mandatory.

a.kudelin commented on 2020-12-12 14:42

@petronny, official guidelines don't mention that compatibility with devtools should be maintained as well as depends=() should take place in the package section. If I'm wrong please post proofs.

petronny commented on 2020-12-12 10:52

Also 1 test fails when building the package after move depends inside package() and it breaks the build.

testExclusionOfPassedConfigsInvolvingGroupsAtSuiteLevel

java.lang.AssertionError: expected [1] but found [0]
    at org.testng.Assert.fail(Assert.java:99)
    at org.testng.Assert.failNotEquals(Assert.java:1037)
    at org.testng.Assert.assertEqualsImpl(Assert.java:140)
    at org.testng.Assert.assertEquals(Assert.java:122)
    at org.testng.Assert.assertEquals(Assert.java:907)
    at org.testng.Assert.assertEquals(Assert.java:917)
    at test.failedreporter.FailedReporterTest.runAssertions(FailedReporterTest.java:124)
    at test.failedreporter.FailedReporterTest.testExclusionOfPassedConfigsInvolvingGroupsAtSuiteLevel(FailedReporterTest.java:86)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
    at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
    at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
    at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
    at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
    at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
    at java.util.ArrayList.forEach(ArrayList.java:1259)
    at org.testng.TestRunner.privateRun(TestRunner.java:764)
    at org.testng.TestRunner.run(TestRunner.java:585)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
    at org.testng.SuiteRunner.run(SuiteRunner.java:286)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
    at org.testng.TestNG.runSuites(TestNG.java:1069)
    at org.testng.TestNG.run(TestNG.java:1037)
    at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:141)
    at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:90)
    at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
    at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
    at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
    at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
    at com.sun.proxy.$Proxy2.stop(Unknown Source)
    at org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:133)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
    at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
    at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
    at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
    at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
    at java.lang.Thread.run(Thread.java:748)

petronny commented on 2020-12-12 10:50

Please move depends=('java-runtime') inside package() like:

package() {
  depends=('java-runtime')
  ...
}

Or else it won't work with the official package tool, devtools.