nushell/tests
Mathspy c66b97126f
Restore nu_with_plugins test macro (#6065)
* Updated nu_with_plugins to handle new nushell

- Now it requires the plugin format and name to be passed in, because
  we can't really guess the format
- It calls `register` with format and plugin path
- It creates a temporary folder and in it an empty temporary plugin.nu
  so that the tests don't conflict with each other or with local copy of
  plugin.nu
- Instead of passing the commands via stdin it passes them via the new
  --commands command line argument

* Rename path to command for clarity

* Enable core_inc tests

Remove deprecated inc feature and replace with new plugin feature

* Update core_inc tests for new nu_with_plugins syntax

* Rework core_inc::can_only_apply_one

The new inc plugin doesn't error if passed more than one but instead
chooses the highest increment

* Gate all plugin tests behind feature = "plugin" instead of one by one

* Remove format!-like behavior from nu_with_plugins

nu_with_plugins had format!-like behavior where it would allow calls
such as this:
```rs
nu_with_plugins!(
  cwd: "dir/",
  "open {} | get {}",
  "Cargo.toml",
  "package.version"
)
```
And although nifty it seems to have never been used before and the same
can be achieved with a format! like so:
```rs
nu_with_plugins!(
  cwd: "dir/",
  format!("open {} | get {}", "Cargo.toml", "package.version")
)
```
So I am removing it to keep the complexity of the macro in check

* Add multi-plugin support to nu_with_plugins

Useful for testing interactions between plugins

* Alternative 1: run `cargo build` inside of tests

* Handle Windows by canonicalizing paths and add .exe

One VM install later and lots of learning about how command line
arguments work and here we are
2022-07-22 00:14:37 -04:00
..
assets/nu_json Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
fixtures nu-cli/completions: add custom completion test (#5543) 2022-05-14 15:09:41 -05:00
hooks Split merging of parser delta and stack environment (#6005) 2022-07-14 17:09:27 +03:00
nu_repl Split merging of parser delta and stack environment (#6005) 2022-07-14 17:09:27 +03:00
overlays Allow keeping selected environment variables from removed overlay (#6007) 2022-07-11 23:58:28 +03:00
parsing Add more multiline pipeline forms (#4740) 2022-03-05 08:20:13 -05:00
path Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
plugins Restore nu_with_plugins test macro (#6065) 2022-07-22 00:14:37 -04:00
scope Fix reporting of which and $nu.scope (#4836) 2022-03-13 21:32:46 +02:00
shell Make Semicolon stop on error (#6079) 2022-07-20 07:44:42 -05:00
main.rs Restore nu_with_plugins test macro (#6065) 2022-07-22 00:14:37 -04:00