Command tests (#922)

* WIP command tests

* Finish marking todo tests

* update

* update

* Windows cd test ignoring
This commit is contained in:
JT
2022-02-03 21:01:45 -05:00
committed by GitHub
parent ac0b331f00
commit a008f1aa80
139 changed files with 10298 additions and 348 deletions

View File

@@ -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]