Updating Codespaces mvn installation script and adding additional test case to Actions run

This commit is contained in:
Peter Murray
2023-09-12 14:56:39 +00:00
committed by GitHub
parent c5ad0fd6b9
commit da1586f5fa
3 changed files with 36 additions and 6 deletions
+11
View File
@@ -85,6 +85,17 @@ describe('maven-runner', () => {
// by running with quiet mode there should be no output
expect(results.stdout.length).toBe(0);
});
it('should run path provided maven with additional arguments', async () => {
const projectDir = getMavenProjectDirectory('simple');
const additionalMavenArgs = ' -X -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn';
const runner = new MavenRunner(projectDir, undefined, false, additionalMavenArgs);
const results = await runner.exec(projectDir, ['validate']);
expect(results.exitCode).toBe(0);
// by running with quiet mode there should be no output
expect(results.stdout.length).toBe(0);
});
});
describe('with settings', () => {