mirror of
https://github.com/nushell/nushell.git
synced 2025-08-18 05:30:18 +02:00
Command tests (#922)
* WIP command tests * Finish marking todo tests * update * update * Windows cd test ignoring
This commit is contained in:
@@ -1,28 +1,10 @@
|
||||
use nu_test_support::fs::AbsolutePath;
|
||||
use nu_test_support::playground::{says, Playground};
|
||||
use nu_test_support::{nu, pipeline};
|
||||
|
||||
use hamcrest2::assert_that;
|
||||
use hamcrest2::prelude::*;
|
||||
|
||||
#[cfg(feature = "which-support")]
|
||||
mod environment;
|
||||
|
||||
mod pipeline;
|
||||
|
||||
//FIXME: jt: this approach may no longer be right for running from startup scripts, needs investigation
|
||||
#[ignore]
|
||||
#[test]
|
||||
fn runs_configuration_startup_commands() {
|
||||
Playground::setup("init_config_startup_commands_test", |dirs, nu| {
|
||||
let file = AbsolutePath::new(dirs.config_fixtures().join("startup.toml"));
|
||||
|
||||
nu.with_config(&file);
|
||||
|
||||
assert_that!(nu.pipeline("hello-world"), says().stdout("Nu World"));
|
||||
});
|
||||
}
|
||||
|
||||
//FIXME: jt: we need to focus some fixes on wix as the plugins will differ
|
||||
#[ignore]
|
||||
#[test]
|
||||
|
Reference in New Issue
Block a user