Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/executors/bash_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ pub const BASH_EXCLUDED_VARIABLES: &[&str] = &[

const BASH_TEMPLATE: &str = include_str!("bash_runner.template");

/// A [`Runner`], that is intended to run a series of contextual related [`Execution`]s, which
/// A [`Runner`], that is intended to run a series of contextual related
/// [`crate::executors::execution::Execution`]s, which
/// that ought to share the same environmental context (environment variables, shell
/// variables, shopt, set, functions and aliases).
///
Expand All @@ -67,7 +68,7 @@ const BASH_TEMPLATE: &str = include_str!("bash_runner.template");
/// This Runner is not concurrency-safe (the shared state directory with the `state` file mandates
/// sequential, isolated execution).
///
/// Underlying the [`ThreadedRunner`] is used, so timeout constraints are fully supported.
/// Underneath the [`SubprocessRunner`] is used, so timeout constraints are fully supported.
#[derive(Clone)]
pub struct BashRunner {
pub shell: PathBuf,
Expand Down
8 changes: 2 additions & 6 deletions src/executors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@
//! described in the [`crate::executors::executor::Executor`] trait.
//!
//! Currently there are two implementations available:
//! - [`crate::executors::sequential_shell`], which runs executions from within
//! a file sequentially, allowing for shared state (environment variables,
//! aliases) to be "passed down"
//! - [`crate::executors::parallel_shell`], which runs executions from within
//! a file in parallel, returning results quickly, but not supporting shared
//! state in between
//! - [`crate::executors::bash_script_executor::BashScriptExecutor`]
//! - [`crate::executors::stateful_executor::StatefulExecutor`]
use std::path::Path;

Expand Down
2 changes: 2 additions & 0 deletions src/parsers/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,13 @@ pub(crate) enum MarkdownToken {

/// The parsed contents of a code block within backticks, representing a Scrut test:
///
/// ````markdown
/// ```scrut { ... config ..}
/// # comment
/// $ shell expression
/// output expectations
/// ```
/// ````
TestCodeBlock {
/// The used language token of the test (i.e. `scrut`)
language: String,
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use crate::outcome::Outcome;
use crate::parsers::parser::ParserType;

/// Renderer that uses the traditional Diff render format
/// See: https://en.wikipedia.org/wiki/Diff
/// See: <https://en.wikipedia.org/wiki/Diff>
pub struct DiffRenderer {}

impl DiffRenderer {
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

//! This module is concerned with rendering the [`outcome::Outcome`] of test
//! This module is concerned with rendering the [`crate::outcome::Outcome`] of test
//! executions.

pub mod diff;
Expand Down
Loading