Skip to content

make std.nu tests work on mac#8576

Merged
fdncred merged 1 commit intonushell:mainfrom
fdncred:fix_std_test_dirs
Mar 23, 2023
Merged

make std.nu tests work on mac#8576
fdncred merged 1 commit intonushell:mainfrom
fdncred:fix_std_test_dirs

Conversation

@fdncred
Copy link
Copy Markdown
Contributor

@fdncred fdncred commented Mar 22, 2023

Description

This PR is to make test_dirs.nu work better on macos.

closes #8528

User-Facing Changes

(List of all changes that impact the user experience here. This helps us keep track of breaking changes.)

Tests + Formatting

Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

  • cargo fmt --all -- --check to check standard code formatting (cargo fmt --all applies these changes)
  • cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect to check that you're using the standard code style
  • cargo test --workspace to check that all tests pass

Note
from nushell you can also use the toolkit as follows

use toolkit.nu  # or use an `env_change` hook to activate it automatically
toolkit check pr

After Submitting

If your PR had any user-facing changes, update the documentation after the PR is merged, if necessary. This will help us keep the docs up to date.

@fdncred fdncred changed the title make tests work on mac make std.nu tests work on mac Mar 23, 2023
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 23, 2023

Codecov Report

Merging #8576 (560fbb9) into main (66ad83c) will increase coverage by 0.00%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8576   +/-   ##
=======================================
  Coverage   68.14%   68.14%           
=======================================
  Files         624      624           
  Lines      100670   100670           
=======================================
+ Hits        68601    68604    +3     
+ Misses      32069    32066    -3     

see 2 files with indirect coverage changes

@fdncred fdncred merged commit 616f065 into nushell:main Mar 23, 2023
@fdncred fdncred deleted the fix_std_test_dirs branch March 23, 2023 12:08
amtoine added a commit to amtoine/nushell that referenced this pull request Mar 23, 2023
…d-throw-true-error

This uses the new fix introduced by @fdncred in nushell#8576 that should
solve the failing `test_dirs` test on MacOS.
@fdncred fdncred added the A:std-library Defining and improving the standard library written in Nu label Mar 23, 2023
fdncred pushed a commit that referenced this pull request Mar 29, 2023
…andard library (#8666)

Related to #8653.

# Description
This PR removes the redundant `path expand`s introduced in #8552 and
#8576.

# User-Facing Changes
```
$nothing
```

# Tests + Formatting
the tests still pass on linux.

# After Submitting
```
$nothing
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A:std-library Defining and improving the standard library written in Nu

Projects

None yet

Development

Successfully merging this pull request may close these issues.

std::tests::test_dirs::test_dirs_command fails on MacOS

1 participant