Skip to content

Commit

Permalink
CI-CD: add back Azure Pipelines autoconfigure test
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalgrimaud committed Dec 12, 2020
1 parent 05f0589 commit 92eebcd
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion test/ci-cd.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,6 @@ describe('JHipster CI-CD Sub Generator', () => {
assert.file(expectedFiles.azure);
});
});

describe('Azure Pipelines: Gradle AngularX NPM', () => {
before(done => {
helpers
Expand All @@ -409,6 +408,20 @@ describe('JHipster CI-CD Sub Generator', () => {
assert.file(expectedFiles.azure);
});
});
describe('Azure Pipelines: autoconfigure', () => {
before(done => {
helpers
.run(require.resolve('../generators/ci-cd'))
.inTmpDir(dir => {
fse.copySync(path.join(__dirname, './templates/ci-cd/maven-ngx-npm'), dir);
})
.withOptions({ autoconfigureAzure: true })
.on('end', done);
});
it('creates expected files', () => {
assert.file(expectedFiles.azure);
});
});
});

//--------------------------------------------------
Expand Down

0 comments on commit 92eebcd

Please sign in to comment.