-
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.
* feat: support skipping tests Skipping tests can be useful in a CI environment where specific tests can be disabled viam moonwall config * update biome config * test: add tests to skip smoke tests * fix lint errors * add test execution to ci * fix: regexp and execution * test: add test cases * fix lint errors * remove unused import
- Loading branch information
Showing
9 changed files
with
167 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { describeSuite, expect } from "@moonwall/cli"; | ||
|
||
describeSuite({ | ||
id: "SM00", | ||
title: "New Test Suite", | ||
foundationMethods: "read_only", | ||
testCases: ({ it }) => { | ||
it({ | ||
id: "T01", | ||
title: "Skipped Test", | ||
test: () => { | ||
expect(false).to.be.true; | ||
}, | ||
}); | ||
|
||
it({ | ||
id: "T02", | ||
title: "Passing test", | ||
test: () => { | ||
expect(true).to.be.true; | ||
}, | ||
}); | ||
|
||
it({ | ||
id: "T03", | ||
title: "Skipped test", | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { describeSuite, expect } from "@moonwall/cli"; | ||
|
||
describeSuite({ | ||
id: "SN00", | ||
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: "Passing test", | ||
test: () => { | ||
expect(true).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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { describeSuite, expect } from "@moonwall/cli"; | ||
|
||
describeSuite({ | ||
id: "SO00", | ||
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", | ||
test: () => { | ||
expect(false).to.be.true; | ||
}, | ||
}); | ||
}, | ||
}); |