From ccc2469e4f1fce144c98e18bd59c022289cf91e8 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sun, 15 Sep 2024 12:05:05 -0500 Subject: [PATCH] tests/neotest: disable on darwin Upstream package failing to build in sandbox. Cannot set a package to null so just disabling those tests on darwin. --- tests/test-sources/plugins/by-name/neotest/dart.nix | 5 ++++- .../plugins/by-name/neotest/default.nix | 13 ++++++++++--- .../test-sources/plugins/by-name/neotest/dotnet.nix | 5 ++++- .../test-sources/plugins/by-name/neotest/elixir.nix | 5 ++++- .../plugins/by-name/neotest/foundry.nix | 5 ++++- tests/test-sources/plugins/by-name/neotest/go.nix | 5 ++++- .../test-sources/plugins/by-name/neotest/golang.nix | 5 ++++- .../test-sources/plugins/by-name/neotest/gtest.nix | 5 ++++- .../plugins/by-name/neotest/haskell.nix | 5 ++++- tests/test-sources/plugins/by-name/neotest/java.nix | 5 ++++- tests/test-sources/plugins/by-name/neotest/jest.nix | 5 ++++- .../plugins/by-name/neotest/minitest.nix | 5 ++++- tests/test-sources/plugins/by-name/neotest/pest.nix | 5 ++++- .../plugins/by-name/neotest/phpunit.nix | 5 ++++- .../plugins/by-name/neotest/playwright.nix | 5 ++++- .../plugins/by-name/neotest/plenary.nix | 5 ++++- .../test-sources/plugins/by-name/neotest/python.nix | 5 ++++- .../test-sources/plugins/by-name/neotest/rspec.nix | 5 ++++- tests/test-sources/plugins/by-name/neotest/rust.nix | 5 ++++- .../test-sources/plugins/by-name/neotest/scala.nix | 5 ++++- .../test-sources/plugins/by-name/neotest/vitest.nix | 5 ++++- 21 files changed, 90 insertions(+), 23 deletions(-) diff --git a/tests/test-sources/plugins/by-name/neotest/dart.nix b/tests/test-sources/plugins/by-name/neotest/dart.nix index 707d8c91..fcff2917 100644 --- a/tests/test-sources/plugins/by-name/neotest/dart.nix +++ b/tests/test-sources/plugins/by-name/neotest/dart.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { diff --git a/tests/test-sources/plugins/by-name/neotest/default.nix b/tests/test-sources/plugins/by-name/neotest/default.nix index cc464ab1..61e1c2b4 100644 --- a/tests/test-sources/plugins/by-name/neotest/default.nix +++ b/tests/test-sources/plugins/by-name/neotest/default.nix @@ -1,9 +1,14 @@ +{ lib, pkgs, ... }: { - empty = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins.neotest.enable = true; }; - all-adapters = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + all-adapters = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { @@ -43,7 +48,9 @@ }; }; - defaults = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + defaults = lib.mkIf pkgs.stdenv.isLinux { plugins.neotest = { enable = true; diff --git a/tests/test-sources/plugins/by-name/neotest/dotnet.nix b/tests/test-sources/plugins/by-name/neotest/dotnet.nix index f65b36cf..06ba6b17 100644 --- a/tests/test-sources/plugins/by-name/neotest/dotnet.nix +++ b/tests/test-sources/plugins/by-name/neotest/dotnet.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { diff --git a/tests/test-sources/plugins/by-name/neotest/elixir.nix b/tests/test-sources/plugins/by-name/neotest/elixir.nix index 45988bad..367ffbe6 100644 --- a/tests/test-sources/plugins/by-name/neotest/elixir.nix +++ b/tests/test-sources/plugins/by-name/neotest/elixir.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { diff --git a/tests/test-sources/plugins/by-name/neotest/foundry.nix b/tests/test-sources/plugins/by-name/neotest/foundry.nix index f8993117..56e41cab 100644 --- a/tests/test-sources/plugins/by-name/neotest/foundry.nix +++ b/tests/test-sources/plugins/by-name/neotest/foundry.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { diff --git a/tests/test-sources/plugins/by-name/neotest/go.nix b/tests/test-sources/plugins/by-name/neotest/go.nix index ebba1fdf..fe58f232 100644 --- a/tests/test-sources/plugins/by-name/neotest/go.nix +++ b/tests/test-sources/plugins/by-name/neotest/go.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { diff --git a/tests/test-sources/plugins/by-name/neotest/golang.nix b/tests/test-sources/plugins/by-name/neotest/golang.nix index 6ac51318..d0474046 100644 --- a/tests/test-sources/plugins/by-name/neotest/golang.nix +++ b/tests/test-sources/plugins/by-name/neotest/golang.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { diff --git a/tests/test-sources/plugins/by-name/neotest/gtest.nix b/tests/test-sources/plugins/by-name/neotest/gtest.nix index f6bcd602..57d38b2c 100644 --- a/tests/test-sources/plugins/by-name/neotest/gtest.nix +++ b/tests/test-sources/plugins/by-name/neotest/gtest.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { # We cannot test neotest-gtest as it tries to create file in the upper directory # https://github.com/alfaix/neotest-gtest/blob/6e794ac91f4c347e2ea5ddeb23d594f8fc64f2a8/lua/neotest-gtest/utils.lua#L10-L16 test.runNvim = false; diff --git a/tests/test-sources/plugins/by-name/neotest/haskell.nix b/tests/test-sources/plugins/by-name/neotest/haskell.nix index 0b37e762..22f35bf5 100644 --- a/tests/test-sources/plugins/by-name/neotest/haskell.nix +++ b/tests/test-sources/plugins/by-name/neotest/haskell.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { diff --git a/tests/test-sources/plugins/by-name/neotest/java.nix b/tests/test-sources/plugins/by-name/neotest/java.nix index f279ceb0..24cf2902 100644 --- a/tests/test-sources/plugins/by-name/neotest/java.nix +++ b/tests/test-sources/plugins/by-name/neotest/java.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { diff --git a/tests/test-sources/plugins/by-name/neotest/jest.nix b/tests/test-sources/plugins/by-name/neotest/jest.nix index b02ce6bd..0f039285 100644 --- a/tests/test-sources/plugins/by-name/neotest/jest.nix +++ b/tests/test-sources/plugins/by-name/neotest/jest.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { diff --git a/tests/test-sources/plugins/by-name/neotest/minitest.nix b/tests/test-sources/plugins/by-name/neotest/minitest.nix index 8e90fd44..245d136d 100644 --- a/tests/test-sources/plugins/by-name/neotest/minitest.nix +++ b/tests/test-sources/plugins/by-name/neotest/minitest.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { diff --git a/tests/test-sources/plugins/by-name/neotest/pest.nix b/tests/test-sources/plugins/by-name/neotest/pest.nix index 5b3d0276..e87f55fd 100644 --- a/tests/test-sources/plugins/by-name/neotest/pest.nix +++ b/tests/test-sources/plugins/by-name/neotest/pest.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { diff --git a/tests/test-sources/plugins/by-name/neotest/phpunit.nix b/tests/test-sources/plugins/by-name/neotest/phpunit.nix index a7ef6db8..0686d876 100644 --- a/tests/test-sources/plugins/by-name/neotest/phpunit.nix +++ b/tests/test-sources/plugins/by-name/neotest/phpunit.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { diff --git a/tests/test-sources/plugins/by-name/neotest/playwright.nix b/tests/test-sources/plugins/by-name/neotest/playwright.nix index f8ad74dd..da6b589f 100644 --- a/tests/test-sources/plugins/by-name/neotest/playwright.nix +++ b/tests/test-sources/plugins/by-name/neotest/playwright.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { diff --git a/tests/test-sources/plugins/by-name/neotest/plenary.nix b/tests/test-sources/plugins/by-name/neotest/plenary.nix index 4cd5f293..31f60cd3 100644 --- a/tests/test-sources/plugins/by-name/neotest/plenary.nix +++ b/tests/test-sources/plugins/by-name/neotest/plenary.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { diff --git a/tests/test-sources/plugins/by-name/neotest/python.nix b/tests/test-sources/plugins/by-name/neotest/python.nix index 62158048..1da08ba2 100644 --- a/tests/test-sources/plugins/by-name/neotest/python.nix +++ b/tests/test-sources/plugins/by-name/neotest/python.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { diff --git a/tests/test-sources/plugins/by-name/neotest/rspec.nix b/tests/test-sources/plugins/by-name/neotest/rspec.nix index 6d2b549e..c789ad9d 100644 --- a/tests/test-sources/plugins/by-name/neotest/rspec.nix +++ b/tests/test-sources/plugins/by-name/neotest/rspec.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - defaults = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + defaults = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { diff --git a/tests/test-sources/plugins/by-name/neotest/rust.nix b/tests/test-sources/plugins/by-name/neotest/rust.nix index 098e2be5..db3b78c1 100644 --- a/tests/test-sources/plugins/by-name/neotest/rust.nix +++ b/tests/test-sources/plugins/by-name/neotest/rust.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { diff --git a/tests/test-sources/plugins/by-name/neotest/scala.nix b/tests/test-sources/plugins/by-name/neotest/scala.nix index 47d66af2..8c42b4ef 100644 --- a/tests/test-sources/plugins/by-name/neotest/scala.nix +++ b/tests/test-sources/plugins/by-name/neotest/scala.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = { diff --git a/tests/test-sources/plugins/by-name/neotest/vitest.nix b/tests/test-sources/plugins/by-name/neotest/vitest.nix index df8b6890..45b50fab 100644 --- a/tests/test-sources/plugins/by-name/neotest/vitest.nix +++ b/tests/test-sources/plugins/by-name/neotest/vitest.nix @@ -1,5 +1,8 @@ +{ lib, pkgs, ... }: { - example = { + # TODO: added 2024-09-15 + # TODO: Re-enable when upstream builds in darwin sandbox + example = lib.mkIf pkgs.stdenv.isLinux { plugins = { treesitter.enable = true; neotest = {