tree: 613318f859d29196182ae76782dae4f53e39b837 [path history] [tgz]
  1. src/
  2. anchor-navigable.goml
  3. anchors.goml
  4. auto-hide-trait-implementations.goml
  5. basic-code.goml
  6. check-code-blocks-margin.goml
  7. check-stab-in-docblock.goml
  8. check_info_sign_position.goml
  9. code-blocks-overflow.goml
  10. code-color.goml
  11. code-sidebar-toggle.goml
  12. code-tags.goml
  13. codeblock-sub.goml
  14. codeblock-tooltip.goml
  15. cursor.goml
  16. default-settings.goml
  17. docblock-big-code-mobile.goml
  18. docblock-code-block-line-number.goml
  19. docblock-details.goml
  20. docblock-table-overflow.goml
  21. docblock-table.goml
  22. duplicate-macro-reexport.goml
  23. enum-variants.goml
  24. escape-key.goml
  25. font-weight.goml
  26. hash-item-expansion.goml
  27. headers-color.goml
  28. headings.goml
  29. help-page.goml
  30. highlight-colors.goml
  31. huge-collection-of-constants.goml
  32. huge-logo.goml
  33. impl-default-expansion.goml
  34. impl-doc.goml
  35. implementors.goml
  36. item-decl-colors.goml
  37. item-info-alignment.goml
  38. item-info-overflow.goml
  39. item-info.goml
  40. item-summary-table.goml
  41. javascript-disabled.goml
  42. jump-to-def-background.goml
  43. label-next-to-symbol.goml
  44. links-color.goml
  45. list_code_block.goml
  46. method-margins.goml
  47. mobile.goml
  48. module-items-font.goml
  49. no-docblock.goml
  50. notable-trait.goml
  51. overflow-tooltip-information.goml
  52. pocket-menu.goml
  53. README.md
  54. run-on-hover.goml
  55. rust-logo.goml
  56. scrape-examples-button-focus.goml
  57. scrape-examples-color.goml
  58. scrape-examples-fonts.goml
  59. scrape-examples-layout.goml
  60. scrape-examples-toggle.goml
  61. search-filter.goml
  62. search-form-elements.goml
  63. search-input-mobile.goml
  64. search-keyboard.goml
  65. search-no-result.goml
  66. search-reexport.goml
  67. search-result-color.goml
  68. search-result-description.goml
  69. search-result-display.goml
  70. search-result-go-to-first.goml
  71. search-result-keyword.goml
  72. search-tab-change-title-fn-sig.goml
  73. search-tab.goml
  74. settings.goml
  75. shortcuts.goml
  76. sidebar-links-color.goml
  77. sidebar-macro-reexport.goml
  78. sidebar-mobile-scroll.goml
  79. sidebar-mobile.goml
  80. sidebar-source-code-display.goml
  81. sidebar-source-code.goml
  82. sidebar.goml
  83. source-anchor-scroll.goml
  84. source-code-page.goml
  85. src-font-size.goml
  86. stab-badge.goml
  87. struct-fields.goml
  88. target.goml
  89. theme-change.goml
  90. theme-in-history.goml
  91. toggle-click-deadspace.goml
  92. toggle-docs-mobile.goml
  93. toggle-docs.goml
  94. toggle-implementors.goml
  95. toggled-open-implementations.goml
  96. trait-sidebar-item-order.goml
  97. type-declation-overflow.goml
  98. unsafe-fn.goml
  99. where-whitespace.goml
tests/rustdoc-gui/README.md

The tests present here are used to test the generated HTML from rustdoc. The goal is to prevent unsound/unexpected GUI changes.

This is using the browser-ui-test framework to do so. It works as follows:

It wraps puppeteer to send commands to a web browser in order to navigate and test what's being currently displayed in the web page.

You can find more information and its documentation in its repository.

If you need to have more information on the tests run, you can use --test-args:

$ ./x.py test tests/rustdoc-gui --stage 1 --test-args --debug

If you don't want to run in headless mode (helpful to debug sometimes), you can use --no-headless:

$ ./x.py test tests/rustdoc-gui --stage 1 --test-args --no-headless

To see the supported options, use --help.

Important to be noted: if the chromium instance crashes when you run it, you might need to use --no-sandbox to make it work:

$ ./x.py test tests/rustdoc-gui --stage 1 --test-args --no-sandbox