-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: split test:all into tap and jest executions
The idea here is that with this we can merge the current state of the migration without having to finish it all in one go. The way it works is that jest is explicitly set up to ignore each and every test case individually that is not yet migrated over and in turn tap only includes the exact set of files that jest ignores and nothing else. Jest does it by capturing all test cases and then cutting the list down with the ignores while tap does not capture all test cases and instead uses the same list that jest ignores. Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
- Loading branch information
Showing
75 changed files
with
1,002 additions
and
582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
...tus-example-carbon-accounting-backend/src/test/typescript/integration/api-surface.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import test, { Test } from "tape-promise/tape"; | ||
|
||
import * as apiSurface from "../../../main/typescript/public-api"; | ||
import "jest-extended"; | ||
|
||
test("Library can be loaded", (t: Test) => { | ||
t.ok(apiSurface, "apiSurface truthy OK"); | ||
t.end(); | ||
test("Library can be loaded", async () => { | ||
expect(apiSurface).toBeTruthy(); | ||
}); |
8 changes: 3 additions & 5 deletions
8
...les/cactus-example-carbon-accounting-backend/src/test/typescript/unit/api-surface.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import test, { Test } from "tape-promise/tape"; | ||
|
||
import * as apiSurface from "../../../main/typescript/public-api"; | ||
import "jest-extended"; | ||
|
||
test("Library can be loaded", (t: Test) => { | ||
t.ok(apiSurface, "apiSurface truthy OK"); | ||
t.end(); | ||
test("Library can be loaded", async () => { | ||
expect(apiSurface).toBeTruthy(); | ||
}); |
8 changes: 3 additions & 5 deletions
8
...rbon-accounting-business-logic-plugin/src/test/typescript/integration/api-surface.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import test, { Test } from "tape-promise/tape"; | ||
|
||
import * as apiSurface from "../../../main/typescript/public-api"; | ||
import "jest-extended"; | ||
|
||
test("Library can be loaded", (t: Test) => { | ||
t.ok(apiSurface, "apiSurface truthy OK"); | ||
t.end(); | ||
test("Library can be loaded", async () => { | ||
expect(apiSurface).toBeTruthy(); | ||
}); |
8 changes: 3 additions & 5 deletions
8
...mple-carbon-accounting-business-logic-plugin/src/test/typescript/unit/api-surface.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import test, { Test } from "tape-promise/tape"; | ||
|
||
import * as apiSurface from "../../../main/typescript/public-api"; | ||
import "jest-extended"; | ||
|
||
test("Library can be loaded", (t: Test) => { | ||
t.ok(apiSurface, "apiSurface truthy OK"); | ||
t.end(); | ||
test("Library can be loaded", async () => { | ||
expect(apiSurface).toBeTruthy(); | ||
}); |
8 changes: 3 additions & 5 deletions
8
...s/cactus-example-supply-chain-backend/src/test/typescript/integration/api-surface.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import test, { Test } from "tape-promise/tape"; | ||
|
||
import * as apiSurface from "../../../main/typescript/public-api"; | ||
import "jest-extended"; | ||
|
||
test("Library can be loaded", (t: Test) => { | ||
t.ok(apiSurface, "apiSurface truthy OK"); | ||
t.end(); | ||
test("Library can be loaded", async () => { | ||
expect(apiSurface).toBeTruthy(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
examples/cactus-example-supply-chain-backend/src/test/typescript/unit/api-surface.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import test, { Test } from "tape"; | ||
import * as publicApi from "../../../main/typescript/public-api"; | ||
import * as apiSurface from "../../../main/typescript/public-api"; | ||
import "jest-extended"; | ||
|
||
test("Public API module can be loaded", (t: Test) => { | ||
t.plan(1); | ||
t.ok(publicApi); | ||
test("Public API module can be loaded", () => { | ||
expect(apiSurface).toBeTruthy(); | ||
}); |
8 changes: 3 additions & 5 deletions
8
...le-supply-chain-business-logic-plugin/src/test/typescript/integration/api-surface.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import test, { Test } from "tape-promise/tape"; | ||
|
||
import * as apiSurface from "../../../main/typescript/public-api"; | ||
import "jest-extended"; | ||
|
||
test("Library can be loaded", (t: Test) => { | ||
t.ok(apiSurface, "apiSurface truthy OK"); | ||
t.end(); | ||
test("Library can be loaded", async () => { | ||
expect(apiSurface).toBeTruthy(); | ||
}); |
8 changes: 3 additions & 5 deletions
8
...s-example-supply-chain-business-logic-plugin/src/test/typescript/unit/api-surface.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import test, { Test } from "tape-promise/tape"; | ||
|
||
import * as apiSurface from "../../../main/typescript/public-api"; | ||
import "jest-extended"; | ||
|
||
test("Library can be loaded", (t: Test) => { | ||
t.ok(apiSurface, "apiSurface truthy OK"); | ||
t.end(); | ||
test("Library can be loaded", async () => { | ||
expect(apiSurface).toBeTruthy(); | ||
}); |
13 changes: 4 additions & 9 deletions
13
...s/cactus-plugin-htlc-coordinator-besu/src/test/typescript/integration/api-surface.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
import test, { Test } from "tape-promise/tape"; | ||
import * as apiSurface from "../../../main/typescript/public-api"; | ||
import "jest-extended"; | ||
|
||
import { PluginFactoryHTLCCoordinatorBesu } from "../../../main/typescript/public-api"; | ||
|
||
test("Library can be loaded", (t: Test) => { | ||
t.ok( | ||
PluginFactoryHTLCCoordinatorBesu, | ||
"PluginFactoryHTLCCoordinatorBesu truthy OK", | ||
); | ||
t.end(); | ||
test("Library can be loaded", async () => { | ||
expect(apiSurface).toBeTruthy(); | ||
}); |
13 changes: 4 additions & 9 deletions
13
extensions/cactus-plugin-htlc-coordinator-besu/src/test/typescript/unit/api-surface.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
import test, { Test } from "tape-promise/tape"; | ||
import * as apiSurface from "../../../main/typescript/public-api"; | ||
import "jest-extended"; | ||
|
||
import { PluginFactoryHTLCCoordinatorBesu } from "../../../main/typescript/public-api"; | ||
|
||
test("Library can be loaded", (t: Test) => { | ||
t.ok( | ||
PluginFactoryHTLCCoordinatorBesu, | ||
"PluginFactoryHTLCCoordinatorBesu truthy OK", | ||
); | ||
t.end(); | ||
test("Library can be loaded", async () => { | ||
expect(apiSurface).toBeTruthy(); | ||
}); |
9 changes: 4 additions & 5 deletions
9
...sions/cactus-plugin-object-store-ipfs/src/test/typescript/integration/api-surface.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import test, { Test } from "tape-promise/tape"; | ||
import * as publicApi from "../../../main/typescript/public-api"; | ||
import * as apiSurface from "../../../main/typescript/public-api"; | ||
import "jest-extended"; | ||
|
||
test("Library can be loaded", (t: Test) => { | ||
t.ok(publicApi, "Public API of library truthy OK"); | ||
t.end(); | ||
test("Library can be loaded", async () => { | ||
expect(apiSurface).toBeTruthy(); | ||
}); |
9 changes: 4 additions & 5 deletions
9
extensions/cactus-plugin-object-store-ipfs/src/test/typescript/unit/api-surface.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import test, { Test } from "tape-promise/tape"; | ||
import * as publicApi from "../../../main/typescript/public-api"; | ||
import * as apiSurface from "../../../main/typescript/public-api"; | ||
import "jest-extended"; | ||
|
||
test("Library can be loaded", (t: Test) => { | ||
t.ok(publicApi, "Public API of library truthy OK"); | ||
t.end(); | ||
test("Library can be loaded", async () => { | ||
expect(apiSurface).toBeTruthy(); | ||
}); |
Oops, something went wrong.