import SimpleMaven from "../../workflows/simple-maven-workflow.md" import SimpleMavenFromTemplate from "../../workflows/simple-maven-workflow-from-template.md"
Basic Maven Example
Below is a simple workflow for executing tests in a Maven project stored on GitHub. You can paste this directly into the
YAML of an existing or new test, just make sure to update the name
and namespace
for your environment as needed.
- The
spec.content
property defines the path to the Maven project on GitHub - the
spec.container
property defines default constraints for any container created in this workflow - the
spec.steps
property defines a single step that runs themvn:test
After execution, you can see the log output from the test executions under the executions panel tabs:
tip
The Selenium Example also uses Maven for running tests and shows how to collect artifacts created by the Maven Surefire plugin.
Basic Maven from Template
Below is an example workflow for executing a Maven project using an official Testkube Template.