on master help sign in
Ignore 'all_themes_are_present' unit test by default
9dd8073sharkdp
.github/workflows/CICD.yml+5
@@ -58,6 +58,11 @@ jobs:
58 with:
58 with:
59 command: test
59 command: test
60 args: --release
60 args: --release
61+ - name: Run ignored-by-default unit tests with new syntaxes and themes
62+ uses: actions-rs/cargo@v1
63+ with:
64+ command: test
65+ args: --release -- --ignored
61 - name: Syntax highlighting regression test
66 - name: Syntax highlighting regression test
62 run: tests/syntax-tests/regression_test.sh
67 run: tests/syntax-tests/regression_test.sh
63 - name: List of languages
68 - name: List of languages
tests/assets.rs+2
@@ -1,7 +1,9 @@
1use bat::assets::HighlightingAssets;
1use bat::assets::HighlightingAssets;
2
2
3/// This test ensures that we are not accidentally removing themes due to submodule updates.
3/// This test ensures that we are not accidentally removing themes due to submodule updates.
4+/// It is 'ignore'd by default because it requires themes.bin to be up-to-date.
4#[test]
5#[test]
6+#[ignore]
5fn all_themes_are_present() {
7fn all_themes_are_present() {
6 let assets = HighlightingAssets::from_binary();
8 let assets = HighlightingAssets::from_binary();
7
9