Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[poc] tests/plugins: test package options#2121

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
khaneliman wants to merge2 commits intonix-community:main
base:main
Choose a base branch
Loading
fromkhaneliman:pkgtest

Conversation

@khaneliman
Copy link
Contributor

Just a little POC from a discussion about testing options functionality working, as expected for when we add or don't add packages.

@khanelimankhanelimanforce-pushed thepkgtest branch 2 times, most recently from59e1a02 to97b5737CompareAugust 31, 2024 03:00
@khanelimankhaneliman changed the titletests/plugins/packer: test package unsettests/plugins: test package optionsAug 31, 2024
@khanelimankhaneliman changed the titletests/plugins: test package options[poc] tests/plugins: test package optionsAug 31, 2024
@khanelimankhanelimanforce-pushed thepkgtest branch 2 times, most recently from7756618 to23a9196CompareAugust 31, 2024 03:10
{
plugins.bufferline.enable=true;

assertions=[
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

would it make more sense to test the package existence in our existing empty test cases?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think it's nice to keep the "empty" case simple.

Maybe we should consider addingtest.runNvim = false to these assertion-based tests though, since we don't actually need to run neovim if all we care about is the assertion.

khaneliman reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Good idea, don't need to waste processing time that way if it's just evaluation time testing.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Makes me think we could do with atest.build toggle to completely disablebuildingfinalPackage, although we'd probably still want to ensure it is evaluated somehow (just not built)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Makes me think we could do with atest.build toggle to completely disablebuildingfinalPackage

This was added astest.buildNixvim which also implicitly disablestest.runNvim.

assertion=
config.extraPlugins!=[]
&&lib.any(
x:lib.trace"${x.pnameor""}"x.pnameornull=="bufferline.nvim"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looking on noogle, there's alsolib.getName, although I think that could fail when encountering submodule-type plugin definitions...

@GaetanLepage
Copy link
Member

Bump, what should we do with this ?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@MattSturgeonMattSturgeonMattSturgeon left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@khaneliman@GaetanLepage@MattSturgeon

[8]ページ先頭

©2009-2025 Movatter.jp