Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: #335 session_root_dir didn't have a path separator #336

Merged
merged 9 commits into from
Aug 2, 2024

Conversation

cameronr
Copy link
Collaborator

One of the rare places where I got the root dir without the separator. Since we already expanded the root dir when validating, we already know it'll be absolute so don't need to use plenary to get an absolute path later. So we can get the root dir as normal. Only showed up for *x.vim sessions because that's the only time we need to actually open the file to make sure it's not a user commands file.

cameronr and others added 9 commits July 31, 2024 08:16
One of the rare places where I got the root dir without the separator.
Since we already expanded the root dir when validating, we already know
it'll be absolute so don't need to use plenary to get an absolute path
later. So we can get the root dir as normal. Only showed up for *x.vim
sessions because that's the only time we need to actually open the file
to make sure it's not a user commands file.
Specify that the tests should load the minimal.lua config. It's a
bit confusing, but calling `nvim -u mininmal.lua` loads the minimal
config for starting the Plenary test harness. The test harness then
starts another, nvim subprocess to actually run the test. Specifying
`minimal_init` tells the test harness to not load other plugins (the
minimal part) and to load the init file we pass in (which we'll use
later to load Telescope for one of the tests)

Also, run the test via PlenaryBustedDirectory instead of PlenaryBustedFile.
This is a bit faster because it only starts the test harness process
once rather than starting the harness for every spec file.

Also make the args tests not require a setup so each file is independent
and move them to the main directory.
Screenshots too finicky and we know that the session list had to work if
we can load/delete anyway.
Prevents default session from being saved empty which could throw off
the tests
@rmagatti
Copy link
Owner

rmagatti commented Aug 2, 2024

@cameronr you've been doing great work with auto-session lately. I greatly appreciate the help. I've sent you an invite to become a collaborator in the repo. I think that'll make things easier for us going forward. Cheers!

@rmagatti rmagatti self-requested a review August 2, 2024 18:02
@cameronr
Copy link
Collaborator Author

cameronr commented Aug 2, 2024

Oh awesome, thanks!

@cameronr cameronr merged commit 63a4a91 into rmagatti:main Aug 2, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants