Re: [testng-users] Make TestNG project executable

Skip to first unread message

Cédric Beust ♚

Oct 10, 2022, 4:45:00 PM10/10/22
What would that executable do?


On Mon, Oct 10, 2022 at 6:19 AM Nilesh <> wrote:
I have created a new project using testNG. i want to create an executable jar. do you have any reference article or sample project?

You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

Oct 11, 2022, 8:44:20 AM10/11/22
to testng-users
Hey - actually I was able to successfully achieve more or less what You seem to be trying to achieve.
My goal was to create a precompiled, fat test jar that won't download all dependencies from nexyus on each maven test run. All the test code together with dependencies and source code is packed as a single jar using "maven-assembly-plugin".

I've used the given configuration descriptor: 
<assembly xmlns=""

Then, I've created my own Test Runner that creates a new TestNG instance inside the main method. 

I think that should be a good starting point for Your further investigation.

Reply all
Reply to author
0 new messages