Skip to content

Commit 5e7b6d7

Browse files
authored
Merge pull request #2885 from ehuss/multiple-gui-books
Support multiple books in the GUI tests
2 parents 07d2989 + 5fe7e95 commit 5e7b6d7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+326
-663
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ guide/book
88

99
.vscode
1010
tests/dummy_book/book/
11-
test_book/book/
11+
tests/gui/books/*/book/
1212
tests/testsuite/*/*/book/
1313

1414
# Ignore Jetbrains specific files.

CONTRIBUTING.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,7 @@ If you want to disable the headless mode, use the `--disable-headless-test` opti
185185
cargo test --test gui -- --disable-headless-test
186186
```
187187

188-
The GUI tests are in the directory `tests/gui` in text files with the `.goml` extension. These tests are run
189-
using a `node.js` framework called `browser-ui-test`. You can find documentation for this language on its
190-
[repository](https://github.com/GuillaumeGomez/browser-UI-test/blob/master/goml-script.md).
188+
The GUI tests are in the directory `tests/gui` in text files with the `.goml` extension. The books that the tests use are located in the `tests/gui/books` directory. These tests are run using a `node.js` framework called `browser-ui-test`. You can find documentation for this language on its [repository](https://github.com/GuillaumeGomez/browser-UI-test/blob/master/goml-script.md).
191189

192190
### Checking changes in `.js` files
193191

@@ -215,7 +213,7 @@ The following are instructions for updating [highlight.js](https://highlightjs.o
215213
1. Compare the language list that it spits out to the one in [`syntax-highlighting.md`](https://github.com/camelid/mdBook/blob/master/guide/src/format/theme/syntax-highlighting.md). If any are missing, add them to the list and rebuild (and update these docs). If any are added to the common set, add them to `syntax-highlighting.md`.
216214
1. Copy `build/highlight.min.js` to mdbook's directory [`highlight.js`](https://github.com/rust-lang/mdBook/blob/master/src/theme/highlight.js).
217215
1. Be sure to check the highlight.js [CHANGES](https://github.com/highlightjs/highlight.js/blob/main/CHANGES.md) for any breaking changes. Breaking changes that would affect users will need to wait until the next major release.
218-
1. Build mdbook with the new file and build some books with the new version and compare the output with a variety of languages to see if anything changes. The [test_book](https://github.com/rust-lang/mdBook/tree/master/test_book) contains a chapter with many languages to examine.
216+
1. Build mdbook with the new file and build some books with the new version and compare the output with a variety of languages to see if anything changes. The [syntax GUI test](https://github.com/rust-lang/mdBook/tree/master/tests/gui/books/highlighting) contains a chapter with many languages to examine. Update the test (`highlighting.goml`) to add any new languages.
219217

220218
## Publishing new releases
221219

test_book/book.toml

Lines changed: 0 additions & 51 deletions
This file was deleted.

test_book/src/README.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

test_book/src/SUMMARY.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

test_book/src/headings/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

test_book/src/individual/README.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

test_book/src/individual/blockquote.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

test_book/src/individual/code.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

test_book/src/individual/emphasis.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)