Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
21 views

Ant Junit ForkMode with Suites

I am running GUI-tests with JAssert-swing, and want to have each testclass has it's own VM. The test-classes are bundled as usual: @RunWith(Categories.class) @SuiteClasses({ Test1.class, ...
Thomas Beyer's user avatar
0 votes
0 answers
19 views

how can we invoke custom ant task from junit

I have created a ant custom task: <taskdef name="test-connection" classname="org.common.HttpURLConnectionAntTask" > <classpath> <path refid="<path which has ...
Kundana Devi's user avatar
1 vote
1 answer
173 views

Flutter: Ant : You must not specify nested elements when using refid

On my flutter project by using junitreport I am making junit report but it is XML, flutter test --machine | tojunit --output test.xml Now by Ant, I want to make Html from it. test.xml is at the root ...
Cyrus the Great's user avatar
1 vote
1 answer
1k views

How to prevent Intellij from showing me the org.testng.TestNGException (Test framework quit unexpectedly)

I'm having the exception below when trying to run tests individually in intellij. The tests I'm trying to run are written in a project built with Ant. The Ant target that runs all unit tests from the ...
Mihaela's user avatar
  • 11
0 votes
1 answer
204 views

How to use junit configuration parameters in an ant script

I have multiple projects and I am currently trying to set some configuration parameters for junit in ant. However I have trouble doing so. Is there a way to set junit configuration parameters in ant? ...
Lucas's user avatar
  • 23
1 vote
1 answer
109 views

ant junit not running single method with test target

I've got a build system running Ant Version 1.10.6 The macrodef that I've summarised below is constructed to switch on "run.multi" either it runs a single test method or it does something ...
Rafe's user avatar
  • 526
0 votes
1 answer
43 views

Ant build Junit test Autowire fails

The junits configured in project works fine when I run them within eclipse individually but when I run the Ant build with junit goal the test classes gets executed but throws NPE for the autowired ...
vick_4444's user avatar
  • 303
0 votes
3 answers
726 views

Why can't the Java compiler find my JARs?

I made a GitHub repo to help explain my issue: https://github.com/matthiasdenu/jacoco-bug. But basically, I don't understand why javac -cp lib/ test/* doesn't work and fails with an error saying it ...
matthiasdenu's user avatar
1 vote
1 answer
2k views

Why do my Mockito-inline JUnit tests crash when run through Ant, and succeed in IntelliJ IDEA?

I've started using Mockito to mock some classes in my unit tests, for various reasons, and as I was developing, I got everything to work. Once I finished my changes, I pushed to our build server, and ...
Dov's user avatar
  • 16k
0 votes
0 answers
57 views

ANT Junit Classpath problem with RCP project

I have an Eclispe RCP application, with ANT as the build engine. Now I am trying to test all JUnit-tests in the project via Ant-Target. However, each test fails with the message "java.lang....
JoGe's user avatar
  • 910
0 votes
1 answer
161 views

Junit ant task not reporting assertion errors as failures

I am trying to integrate my Junit test results in our gitlab pipeline. I have a successful ant build file that uses the Junit task and JUnit report tasks to create xml files that will integrate with ...
Chase f's user avatar
1 vote
0 answers
131 views

Use JUnit with Jenkins & Ant Project

I am running Junit Tests on Jenkins via ant. I can received the build success message in Jenkins, but JUnit result is error. java.lang.ClassNotFoundException: JUnitTest at java.lang.ClassLoader....
YN06's user avatar
  • 11
1 vote
0 answers
375 views

Eclipse for java, package org.junit does not exist during Ant

I recovered code that is ok from another PC. At first open i had an error about this line : import static org.junit.Assert.*; I added Junit 4 library to fix it , no more syntax warning but when i ...
froggy's user avatar
  • 592
1 vote
0 answers
181 views

Forked Java VM Exited Abnormally for random Testcase

I have a set of test suites say, X, Y, Z. When I run test suite X on my development machine it runs absolutely fine. But when I run the test suites through Hudson job on some remote machine that runs ...
Swapnil 's user avatar
-1 votes
1 answer
3k views

How to run unit tests only for a class in a Hybris project through Command line? [closed]

Many times due to some errors in project or mis-configuration in eclipse, Junits fails to run for a class. How one can execute such unittests from command line without wasting effort.
Ash's user avatar
  • 37

15 30 50 per page
1
2 3 4 5
48