[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-dev] running individual test cases
|
Hi,
generally speaking, I'd expect to be able to run single test from
the command line by something like 'ant -f antbuild.xml test
-Dtest.class=...'. If this does not work - and there are indeed more
places where it does not - then I'd go ahead and either modify the build
script to allow this or if updating existing target does not look
feasible/looks too complex and/or is time consuming, I'd add extra
target for this and make the change part of my PR, so others don't fall
into the same trap...
thanks,
--lukas
On 6/28/18 11:42 PM, William Dazey wrote:
Hello!
Id love to know this myself. Usually, I just search for what Test Suite
has the test I want to run, then I comment out all the other tests being
added to the suite. Then it's just a matter of finding the ant target
that runs that suite. For instance, a quick search shows me that
*XMLMarshalTest**Cases *is added to *OXMSRGTestSuite*. From there,
another quick search in antbuild.xml shows me that
"*org/eclipse/persistence/testing/oxm/OXMSRGTestSuite.java*" is a part
of *<macrodef name="run_oxm_srg_tests">*. Which in turn is called from
*<target name="compile-and-run-srg-tests-against-jar"*... I comment out
the parts I don't want, then just invoke the ANT target from the
commandline. Convoluted? yes. Works? also yes. ;)
Thanks,
Will Dazey
On Thu, Jun 28, 2018 at 2:05 PM, Ravi babu Tummuru
<ravi.babu.tummuru@xxxxxxxxxx <mailto:ravi.babu.tummuru@xxxxxxxxxx>> wrote:
Hi,
Is there any easy way to run individual test cases from
command line..?
I want to run
eclipselink.moxy.test/src/org/eclipse/persistence/testing/oxm/xmlmarshaller/XMLMarshalTestCases
from command line.
Thanks
Ravi
_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx <mailto:eclipselink-dev@xxxxxxxxxxx>
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-dev
<https://dev.eclipse.org/mailman/listinfo/eclipselink-dev>
_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-dev