Setting up a new project
Now that you're hooked, the fastest way to set up a new sandbox and start experiencing SHAFT is using our TestNG Maven Archetype.
-
You can do that by following this lovely IntelliJ IDEA guide.
- Before you press
Create
you'll need to add the archetype first by using this data
GroupId: io.github.shafthq
ArtifactId: testng-archetype
Version: ${archetype.version}Replace${archetype.version}
with the latest SHAFT_Engine: TestNG Archetype version.- It should look something like this
- Before you press
-
Or you can do it manually by following these steps:
- Download the latest version of mvn
- Add it to your PATH variable
- Create a new directory for the project, and navigate to it.
- Open a Terminal window in the target directory and execute the below command.
Generate a new SHAFT projectmvn archetype:generate "-DarchetypeGroupId=io.github.shafthq" "-DarchetypeArtifactId=testng-archetype" "-DarchetypeVersion=${archetype.version}" "-DinteractiveMode=false" "-DgroupId=io.github.shafthq" "-DartifactId=using_SHAFT_Engine"
Replace
${archetype.version}
with the latest SHAFT_Engine: TestNG Archetype version.
Customize
"-DgroupId=io.github.shafthq"
and "-DartifactId=using_SHAFT_Engine"
with the groupId and artifactId that you want to use for the new project.