Skip to content
This repository has been archived by the owner on Mar 19, 2019. It is now read-only.

Commit

Permalink
Test for publish and install
Browse files Browse the repository at this point in the history
fixes #18
  • Loading branch information
cdupuis committed Dec 3, 2016
1 parent 55bee0a commit 4e8efe1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public void testSuccessfulGeneratorDescribeWithVersionOffline() throws Exception

@Test
public void testSuccessfulLocalEditorDescribe() throws Exception {
assertSuccess("rug edit \"atomist-project-templates:common-editors:AddGitIgnore\"",
"describe", "editor", "atomist-project-templates.common-editors.AddGitIgnore",
assertSuccess("rug edit \"rug-cli-tests:common-editors:AddGitIgnore\"",
"describe", "editor", "rug-cli-tests.common-editors.AddGitIgnore",
"-l");
}

Expand Down Expand Up @@ -107,8 +107,8 @@ public void testUnSuccessfulGeneratorDescribe() throws Exception {

@Test
public void testUnSuccessfulGeneratorDescribeForNonExistingArchive() throws Exception {
assertFailure("No version found for atomist-project-templates:i-do-not-exist", "describe",
assertFailure("No version found for rug-cli-tests:i-do-not-exist", "describe",
"generator",
"atomist-project-templates:i-do-not-exist:SpringBootRestMicroservice");
"rug-cli-tests:i-do-not-exist:SpringBootRestMicroservice");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class TestCommandIntegrationTest extends AbstractCommandTest {
public void testSuccessfulTests() throws Exception {
assertCommandLine(0, () -> {
assertTrue(systemOutRule.getLogWithNormalizedLineSeparator()
.contains("atomist-project-templates:common-editors:3.2.2"));
.contains("rug-cli-tests:common-editors:3.2.2"));
assertTrue(systemOutRule.getLogWithNormalizedLineSeparator()
.contains("Successfully executed 13 of 13 scenarios: Test SUCCESS"));
}, "test");
Expand All @@ -22,7 +22,7 @@ public void testSuccessfulTests() throws Exception {
public void testSuccessfulTestsForFile() throws Exception {
assertCommandLine(0, () -> {
assertTrue(systemOutRule.getLogWithNormalizedLineSeparator()
.contains("atomist-project-templates:common-editors:3.2.2"));
.contains("rug-cli-tests:common-editors:3.2.2"));
assertTrue(systemOutRule.getLogWithNormalizedLineSeparator()
.contains("Successfully executed 2 of 2 scenarios: Test SUCCESS"));
}, "test", "AddGitIgnore");
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
local-repository:
path: "${user.home}/.atomist/repository"
remote-repositories:
local:
publish: true
url: "file:///Users/cdupuis/.atomist/repository-publish/"
maven-central:
publish: false
url: "http://repo.maven.apache.org/maven2/"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/common-editors/.atomist/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
group: atomist-project-templates
group: rug-cli-tests
artifact: common-editors
version: "3.2.2"

Expand Down

0 comments on commit 4e8efe1

Please sign in to comment.