Commit graph

937 commits

Author SHA1 Message Date
Austin Horstman
6945c6c17f
plugins/nvim-tree: use gitPackage 2024-08-29 16:39:53 -05:00
Austin Horstman
710f3472ec
plugins/packer: use gitPackage 2024-08-29 16:39:53 -05:00
Austin Horstman
4fe95d4502
plugins/lazy: use gitPackage 2024-08-29 16:39:53 -05:00
Austin Horstman
ce6573424d
plugins/lualine: use gitPackage 2024-08-29 16:39:53 -05:00
Austin Horstman
831c814bb3
plugins/git-worktree: use gitPackage 2024-08-29 16:39:53 -05:00
Austin Horstman
d4bcebc7ca
plugins/neogit: use gitPackage 2024-08-29 16:39:53 -05:00
Austin Horstman
0db6e86e8d
plugins/alpha: use iconsPackage 2024-08-29 14:23:43 -05:00
Austin Horstman
f2ef2929ad
plugins/diffview: use iconsPackage 2024-08-29 14:23:43 -05:00
Austin Horstman
e122f465a9
plugins/fzf-lua: use iconsPackage 2024-08-29 14:23:43 -05:00
Austin Horstman
6f4eced1ca
plugins/chadtree: use iconsPackage 2024-08-29 14:23:43 -05:00
Austin Horstman
86d66e410a
plugins/lspsaga: use iconsPackage 2024-08-29 14:23:43 -05:00
Austin Horstman
46cf3dad9f
plugins/bufferline: use iconsPackage 2024-08-29 14:23:43 -05:00
Austin Horstman
f59a3c70aa
plugins/barbar: use iconsPackage 2024-08-29 14:23:43 -05:00
Austin Horstman
4ab24e77a5
plugins/neo-tree: use iconsPackage 2024-08-29 14:23:43 -05:00
Austin Horstman
d3e387899f
plugins/nvim-tree: use iconsPackage 2024-08-29 14:23:37 -05:00
Austin Horstman
150c5f454b
plugins/trouble: use iconsPackage 2024-08-29 11:06:15 -05:00
Austin Horstman
4acf12c49d
plugins/treesitter: add iconsPackage 2024-08-29 07:57:58 -05:00
Matt Sturgeon
975af6a498
tests: simplify fetch-tests slightly
Simplify by reducing the number of transformations done to the
test-files' test-case modules attr.

Since `pkgs.linkFarm` can accept _either_ a list or an attrset, we don't
need to transform the attrset into a list.
2024-08-28 05:45:01 +01:00
Matt Sturgeon
1c879ec3aa
tests: add regression test for warnings + assertions
Ensure `mkTestDerivationFromNixvimModule` correctly test warnings & assertions.

Also did some minor cleanup:
- Call `failing-tests.nix` using `pkgs.callPackage`
- Replace repetive use of `testBuildFailure` with a wrapper
  `mkFailingNixvimTest`
2024-08-28 00:44:34 +01:00
Matt Sturgeon
60ea38d2c4
tests: test the tests
Adds a regression test for #2076. This test ensures that
`extraConfigLua` is used in `finalPackage` and that the test will fail
correctly when running `nvim` results in unexpected output.
2024-08-27 03:54:43 +01:00
elythh
aa1f5a74ff plugins/comment-box-nvim: init 2024-08-26 20:28:32 +02:00
Austin Horstman
45bb6636e5
tests/lsp: re-enable typst-lsp 2024-08-26 12:07:28 -05:00
Austin Horstman
d0564ce4cf
tests/example-configuration: re-enable jsonls 2024-08-26 12:02:08 -05:00
Austin Horstman
8234ee85ea
tests/plugins/lightline: fix test
Lightline has an internal list of colorschemes that are supported which
can be found at
https://github.com/itchyny/lightline.vim/blob/master/colorscheme.md
2024-08-24 14:49:36 -05:00
Austin Horstman
89b876dc0d
plugins/conform-nvim: migrate to mkNeovimPlugin 2024-08-24 12:24:15 -05:00
Austin Horstman
4c8d3559ac
plugins/lightline: migrate to mkNeovimPlugin 2024-08-23 18:26:24 -05:00
Austin Horstman
1854d591cb
tests/plugins/lsp: re-enable tests 2024-08-22 10:26:05 -05:00
Matt Sturgeon
fe12a092f6
tests: general cleanup
- Refactor much of `tests/fetch-tests.nix`
- Move `mkTest` up to let-block in `tests/default.nix`
2024-08-22 15:27:56 +01:00
Matt Sturgeon
087f70cb0a
tests: remove special case for efmls-configs 2024-08-22 15:27:56 +01:00
Matt Sturgeon
06419627e2
tests/plugins/nvim-osc52: use new test.checkWarnings option 2024-08-22 14:46:55 +01:00
Matt Sturgeon
004181813f
tests/plugins/schemastore: don't check warnings
Follow up to a1a3488779

Uses new `test.checkWarnings` option.
2024-08-22 14:46:55 +01:00
Matt Sturgeon
19d5f4b134
lib/test: move from tests/test-derivation 2024-08-21 02:48:06 +01:00
Matt Sturgeon
cbd1003d9d
modules/test: move test derivation to an option
Introduced the `test.derivation` read-only option.
2024-08-21 02:48:00 +01:00
Austin Horstman
39081a4106
tests/plugins/lsp: re-enable vala-ls on linux 2024-08-19 20:52:10 -05:00
Austin Horstman
9a218fed31
tests/plugins/none-ls: re-enable d2_fmt and yamlfix 2024-08-19 20:52:10 -05:00
Austin Horstman
366f25598a
tests/plugins/lsp: re-enable omnisharp on darwin 2024-08-19 20:52:09 -05:00
Austin Horstman
ec9d299183
tests/plugins/openscad: re-enable on darwin
Builds for me locally.
2024-08-19 20:52:09 -05:00
Austin Horstman
a1a3488779
tests/plugins/lsp: disable vscode-langservers-extracted tests (broken package)
Re-enable after https://github.com/NixOS/nixpkgs/pull/335559 is
available in nixos-unstable.
2024-08-19 20:52:09 -05:00
Austin Horstman
f7cdecbad8
tests/plugins/none-ls: disable prisma_format test (broken package) 2024-08-19 20:52:09 -05:00
Austin Horstman
a9ffb6c958
tests/plugins/lsp: disable prismals test (broken package) 2024-08-19 20:52:09 -05:00
Austin Horstman
ec9e5c071a
plugins/markview: remove unnecessary extraPlugin 2024-08-19 20:52:09 -05:00
Gaetan Lepage
460b47997f
tests/plugins/lsp: disable typst-lsp test (broken package) 2024-08-19 20:42:00 -05:00
Gaetan Lepage
fc6d40d798
tests/plugins/lsp: typst-lsp -> tinymist 2024-08-19 20:42:00 -05:00
Matt Sturgeon
123a55ed6f
tests: remove special treatment of module
Since we no longer need to extract `tests.dontRun` from an attrset, we
no longer need the "special" `module` attr.
2024-08-20 01:07:21 +01:00
Matt Sturgeon
7b2a6cd9e6
tests: tests.dontRun -> test.runNvim
Convert all test-cases to use the new `test.runNvim` module option.
2024-08-20 00:46:30 +01:00
Matt Sturgeon
f47374fd26
modules/test: init, replacing dontRun arg
Introduces the `test.runNvim` module option.

Deprecates the historic `dontRun` argument passed to the test-derivation
helpers.

Soft-deprecates the `tests.dontRun` attr used in tests currently.
2024-08-20 00:34:12 +01:00
Matt Sturgeon
69c2fa866e
tests: group tests by 10
Attempt to find a middle ground between having a single link-farm and
one test per file.

This groups up to ten tests per (roughly) 28 link-farms.
2024-08-19 01:11:10 +01:00
Matt Sturgeon
8f99c3953c
lib/util: add groupListBySize
Splits up a list into many sub-lists based on the given max-size.

e.g.
```nix
groupListBySize 2 [ 1 2 3 4 5 ]
=> [ [ 1 2 ] [ 3 4 ] [ 5 ] ]
```
2024-08-19 00:50:57 +01:00
Matt Sturgeon
693e749edb
tests/lib-test: correctly print expected/result
In some edge cases, expected and result can't be directly used in string
interpolation, so pass them through `lib.generators.toPretty` to be safe.
2024-08-19 00:38:22 +01:00
Matt Sturgeon
c52ba67856
Revert "tests: Allow to test multiple derivations in a single test derivation"
This reverts commit 71126bfebe.
2024-08-18 20:42:56 +01:00