-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
start indexing into test cases at root levle
- Loading branch information
1 parent
052e6c0
commit c83cfa5
Showing
16 changed files
with
137 additions
and
20 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
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
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
2 changes: 1 addition & 1 deletion
2
test/suites/derive/folder1 copy/test_apis.ts → .../folder1 copy/folder1 copy 3/test_apis.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
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
2 changes: 1 addition & 1 deletion
2
...erive/folder1 copy/test_contextMethods.ts → ...opy/folder1 copy 3/test_contextMethods.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
24 changes: 24 additions & 0 deletions
24
test/suites/derive/folder1 copy/folder1 copy 4/test_apis.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { beforeAll, describeSuite, expect } from "@moonwall/cli"; | ||
|
||
describeSuite({ | ||
id: "D010201", | ||
title: "Tests that are using the production APIs", | ||
foundationMethods: "read_only", | ||
testCases: ({ context, it }) => { | ||
it({ | ||
id: "T01", | ||
title: "Passing Test", | ||
test: async () => { | ||
expect(true).to.be.true; | ||
}, | ||
}); | ||
|
||
it({ | ||
id: "T02", | ||
title: "another passing test", | ||
test: () => { | ||
expect("true").to.contain("true"); | ||
}, | ||
}); | ||
}, | ||
}); |
50 changes: 50 additions & 0 deletions
50
test/suites/derive/folder1 copy/folder1 copy 4/test_basic.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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import { expect, describeSuite, beforeAll } from "@moonwall/cli"; | ||
import { setupLogger } from "@moonwall/util"; | ||
|
||
describeSuite({ | ||
id: "D010202", | ||
title: "This is a timbo test suite", | ||
foundationMethods: "read_only", | ||
testCases: ({ it, log }) => { | ||
const anotherLogger = setupLogger("additional"); | ||
|
||
beforeAll(() => { | ||
log("Test suite setup"); | ||
}); | ||
|
||
it({ | ||
id: "T01", | ||
title: "This is a bool test case", | ||
test: () => { | ||
expect(true).to.be.true; | ||
}, | ||
}); | ||
|
||
it({ | ||
id: "T02", | ||
title: "This is a number test case", | ||
test: () => { | ||
anotherLogger("Test case log"); | ||
expect(1_332_323_221).to.be.greaterThan(1000000); | ||
}, | ||
}); | ||
|
||
it({ | ||
id: "T03", | ||
title: "This is a string test case", | ||
test: () => { | ||
expect("Home is where the heart is").to.contains("heart"); | ||
}, | ||
}); | ||
|
||
it({ | ||
id: "T04", | ||
title: "This is a failing error test case", | ||
test: () => { | ||
expect(() => { | ||
throw new Error("ERROR THROWN"); | ||
}).to.throw("ERROR THROWN"); | ||
}, | ||
}); | ||
}, | ||
}); |
25 changes: 25 additions & 0 deletions
25
test/suites/derive/folder1 copy/folder1 copy 4/test_contextMethods.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { describeSuite, expect } from "@moonwall/cli"; | ||
|
||
describeSuite({ | ||
id: "D010203", | ||
title: "New Test Suite", | ||
foundationMethods: "read_only", | ||
testCases: ({ it }) => { | ||
it({ | ||
id: "T01", | ||
title: "Passing Test", | ||
test: () => { | ||
expect(true).to.be.true; | ||
}, | ||
}); | ||
|
||
it({ | ||
id: "T02", | ||
title: "Skipped test", | ||
modifier: "skip", | ||
test: () => { | ||
expect(false).to.be.true; | ||
}, | ||
}); | ||
}, | ||
}); |
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
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
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