...
Code Block | ||
---|---|---|
| ||
def call(
def ENVIRONMENTNAME
) {
mettleci properties config // Configure Properties
mettleci remote execute "config/cleanup_unittest.sh" // Cleanup results of previous unit tests
mettleci remote upload // Unit test specifications and data
mkdir // Create unit test report dir
try {
mettleci unittest test // Run Unit Tests
}
finally { // Whether the above is successfult or not...
mettleci remote download // Download unit test reports
if (exists 'unittest-reports/**/*.xml') {
junit testResults 'unittest-reports/**/*.xml' // Publish Unit Test results
}
}
} |
...