Commit graph

48 commits

Author SHA1 Message Date
Benoit de Chezelles
688308824d fix(tree-view): Ensure nested tree parts align under item name
Before:
```
foo/
├── nested/
│  ├── bar
│  └── other-bar
└── baz
```
Notice how the nested tree is aligned on the blank before the dir name

After:
```
foo/
├── nested/
│   ├── bar
│   └── other-bar
└── baz
```
Now the nested tree is aligned on the dir name, making it much nicer to
look at and more logical.
2024-10-18 16:39:09 +02:00
Patrick Sean Klein
172590380a fix: do not print parent filename with --absolute=on
The parent path of a file was added even with absolute={on,follow}, causing the parent path being prepended to the resolved (absolute) filepath.

Fixes: #1151
2024-10-09 09:23:30 +02:00
Ihar Hrachyshka
f97a1d6efd test: Add cases for -T and --follow-symlinks 2024-09-29 05:22:28 +02:00
Christina Sørensen
1a928697b7 fix: flake trycmd bug
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-26 09:24:39 +02:00
Christina Sørensen
7b297b5806 test: regenerate integration tests
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-26 09:24:39 +02:00
Tamino Bauknecht
f0972251e1 test: Add directory symlink to tests/itest/
Additionally, the test output was regenerated using "just idump".
Note that manual edits are necessary to ensure the absolute path in
tests/cmd/ starts with "[CWD]".
2024-03-04 07:12:23 +01:00
Tamino Bauknecht
33a85e41c8 test: Add integration tests and powertests for --absolute flag
Note that the absolute paths in tests/cmd/ need to have their root at
[CWD] and not /build/source/ for "cargo test" work.
The command "just idump" will overwrite the files in tests/cmd/ leading
to a failing "cargo test".
2024-03-04 07:12:23 +01:00
Christina Sørensen
559187cb90 chore: cleaning dirs
This commit is badly made as I fd up when doing it

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-03-03 15:51:57 +01:00
Christina Sørensen
0647d04783 test: regenerate classification related tests 2024-01-28 09:37:19 +01:00
MartinFillon
8f5121ca2d test: updated tests to fit new features 2024-01-06 11:14:07 +01:00
Christina Sørensen
cd4038726c test: regenerate version tests... and others
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-12-21 06:28:31 +01:00
Christina Sørensen
4f949fc9bb test(powertest): powertests using generated testdirs
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-11-13 17:41:03 +01:00
MartinFillon
2273e29bc0 test: Implements tests using the generated directory
Picked from #592
2023-11-13 17:41:03 +01:00
MartinFillon
66dc7551bf fix(git)!: remove Repo column when using --git-repos when no git repo
Repo column was always showing even tho no repo was here
see eza-community/eza#579 first point

test(nix): changed nix tests on git repos
2023-11-07 11:10:56 +01:00
Mélanie Chauvel
852938138e fix(symlink): don’t display target’s size if we’re not dereferencing 2023-10-20 18:53:38 +02:00
PThorpe92
37776ec6f3
feat!: remove --no-icons in favor of --icons=always,auto,never. default is auto 2023-10-17 14:45:34 -04:00
PThorpe92
d9489a4741
ci: adjust test case to icons=auto (no icons should show due to tty) 2023-10-16 09:46:40 -04:00
PThorpe92
45857f0cf0
feat: add icons=always,auto,never. dont display icons in a tty|piped 2023-10-16 09:46:32 -04:00
Christina Sørensen
4cd9731c15
test(local): move classify tests to local
Here, we introduce the `nix-local` feature, for features meant only
to exist locally in the nix sandbox.

This is an attempt to avoid the CI runner's unit testing, as that fails
to set the grid width correctly.

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-10-05 14:59:48 +02:00
Christina Sørensen
702246b8d8
test(all): classify-hyperlink test case for width 50
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-10-05 13:53:48 +02:00
Christina Sørensen
c5b544c5ae
Merge pull request #381 from Hulxv/listing-files-only
feat: Listing files only
2023-09-23 18:46:56 +02:00
Christina Sørensen
1211398dba
test(nix): regen git_repos_no_status
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-21 05:24:43 +02:00
Hulxv
b0d44fcd9e test: test for listing files only 2023-09-19 00:14:38 +03:00
Christina Sørensen
2aa0f8f0dc
test(trycmd): remove non-deterministic test
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-14 19:37:30 +02:00
Martin Fillon
9b805033e1 test(tests_unix): removed git test breaking on nix 2023-09-14 15:38:49 +02:00
Martin Fillon
2f9199cf28 test(unix_tests): fixed unix tests to remove any distro specific 2023-09-14 13:29:40 +02:00
MartinFillon
20f314d2f5
test(unix_tests): add more unix_tests 2023-09-14 00:53:14 +02:00
MartinFillon
8ed1aaade5
test(windows): fixed windows tests being wrong 2023-09-13 20:29:55 +02:00
MartinFillon
a4acd6307e test(windows): Convert windows tests with new itest dir 2023-09-13 19:43:01 +02:00
Christina Sørensen
5d61572ffc
test(nix): regenerate nix tests
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-13 05:53:02 +02:00
MartinFillon
f126508b44
test(unix tests): Modified unix and all tests
Made unix and all tests adapted to the new directory
2023-09-13 05:52:59 +02:00
Christina Sørensen
f944c42681
test(trycmd): freeze nix tests 2023-09-12 14:08:46 +02:00
Christina Sørensen
73e93b1600
test(trycmd): add long_time_style_relative_nix.toml 2023-09-12 14:08:42 +02:00
Christina Sørensen
3a0523dac9
test(trycmd): add long_octal_nix.toml 2023-09-12 14:08:38 +02:00
Christina Sørensen
569d27c6d8
test(trycmd): add long_icons_nix.toml 2023-09-12 14:08:35 +02:00
Christina Sørensen
9982fd701a
test(trycmd): add long_header_nix.toml 2023-09-12 14:08:32 +02:00
Christina Sørensen
748a6fbd30
test(trycmd): add long_grid_nix.toml 2023-09-12 14:08:29 +02:00
Christina Sørensen
ec89caeb38
test(trycmd): add long_git_repos_no_status_nix.toml 2023-09-12 14:08:23 +02:00
Christina Sørensen
6daf4e4066
test(trycmd): add long_git_repos_nix.toml 2023-09-12 14:08:20 +02:00
Christina Sørensen
b197ba5fcc
test(trycmd): add long_git_nix.toml 2023-09-12 14:08:17 +02:00
Christina Sørensen
182d3af4a0
test(trycmd): add long_extended_nix.toml 2023-09-12 14:08:15 +02:00
Christina Sørensen
44231f4395
test(trycmd): add long_blocksize_nix.toml 2023-09-12 14:08:12 +02:00
Christina Sørensen
99f1f9af11
test(trycmd): add long_all_nix.toml 2023-09-12 14:08:09 +02:00
Christina Sørensen
987e7ce13b
test(long_nix): fix test reference
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-12 13:51:17 +02:00
Christina Sørensen
762f9e9ee9
test(trycmd): add example long tests for sandbox
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-12 12:38:35 +02:00
Sandro-Alessio Gierens
2338c15f63
refactor(tests): split trycmd into tests for all, unix and windows
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
2023-09-12 10:57:22 +02:00
Sandro-Alessio Gierens
f6f8b421b2
fix(test): change trycmd config to use test/itest folder for testing
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
2023-09-12 10:57:22 +02:00
Sandro-Alessio Gierens
e1fe9452e5
feat(test): add a few trycmd tests as example
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
2023-09-12 10:57:19 +02:00