Skip to content

Commit

Permalink
build: set timeout to slow builds
Browse files Browse the repository at this point in the history
  • Loading branch information
KengoTODA committed Jan 2, 2020
1 parent e9b6389 commit 03960d6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/src/gradle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
} from "../../src/gradle";

jest.mock("signale");
jest.setTimeout(60000);

describe("Test for gradle handling", () => {
test("getCommand() return 'gradle' when there is no gradle wrapper", async () => {
Expand All @@ -35,7 +36,7 @@ describe("Test for gradle handling", () => {
new Signale()
);
expect(task).toBe("");
}, 10000);
});
test("getTaskToPublish() return 'publish' when there is maven-publish-plugin", async () => {
expect.assertions(1);
const gradleProject = join(cwd(), "test/project/with-maven-publish-plugin");
Expand All @@ -45,7 +46,7 @@ describe("Test for gradle handling", () => {
new Signale()
);
expect(task).toBe("publish");
}, 10000);
});
test("getTaskToPublish() return 'uploadArchives' when there is available legacy publishing method", async () => {
expect.assertions(1);
const gradleProject = join(cwd(), "test/project/with-legacy-publishing");
Expand All @@ -55,7 +56,7 @@ describe("Test for gradle handling", () => {
new Signale()
);
expect(task).toBe("uploadArchives");
}, 10000);
});
test("getTaskToPublish() return 'artifactoryDeploy' when there is available artifactory-plugin", async () => {
expect.assertions(1);
const gradleProject = join(cwd(), "test/project/with-artifactory-plugin");
Expand All @@ -65,7 +66,7 @@ describe("Test for gradle handling", () => {
new Signale()
);
expect(task).toBe("artifactoryDeploy");
}, 10000);
});
test("getTaskToPublish() return 'publishPlugins' when there is available plugin-publish-plugin", async () => {
expect.assertions(1);
const gradleProject = join(
Expand All @@ -78,7 +79,7 @@ describe("Test for gradle handling", () => {
new Signale()
);
expect(task).toBe("publishPlugins");
}, 10000);
});

test("getVersion() returns version defined in build.gradle", async () => {
expect.assertions(1);
Expand Down

0 comments on commit 03960d6

Please sign in to comment.