Skip to content

Commit ccc2469

Browse files
committed
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.
1 parent f88402d commit ccc2469

File tree

21 files changed

+90
-23
lines changed

21 files changed

+90
-23
lines changed

tests/test-sources/plugins/by-name/neotest/dart.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
{ lib, pkgs, ... }:
12
{
2-
example = {
3+
# TODO: added 2024-09-15
4+
# TODO: Re-enable when upstream builds in darwin sandbox
5+
example = lib.mkIf pkgs.stdenv.isLinux {
36
plugins = {
47
treesitter.enable = true;
58
neotest = {

tests/test-sources/plugins/by-name/neotest/default.nix

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
{ lib, pkgs, ... }:
12
{
2-
empty = {
3+
# TODO: added 2024-09-15
4+
# TODO: Re-enable when upstream builds in darwin sandbox
5+
example = lib.mkIf pkgs.stdenv.isLinux {
36
plugins.neotest.enable = true;
47
};
58

6-
all-adapters = {
9+
# TODO: added 2024-09-15
10+
# TODO: Re-enable when upstream builds in darwin sandbox
11+
all-adapters = lib.mkIf pkgs.stdenv.isLinux {
712
plugins = {
813
treesitter.enable = true;
914
neotest = {
@@ -43,7 +48,9 @@
4348
};
4449
};
4550

46-
defaults = {
51+
# TODO: added 2024-09-15
52+
# TODO: Re-enable when upstream builds in darwin sandbox
53+
defaults = lib.mkIf pkgs.stdenv.isLinux {
4754
plugins.neotest = {
4855
enable = true;
4956

tests/test-sources/plugins/by-name/neotest/dotnet.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
{ lib, pkgs, ... }:
12
{
2-
example = {
3+
# TODO: added 2024-09-15
4+
# TODO: Re-enable when upstream builds in darwin sandbox
5+
example = lib.mkIf pkgs.stdenv.isLinux {
36
plugins = {
47
treesitter.enable = true;
58
neotest = {

tests/test-sources/plugins/by-name/neotest/elixir.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
{ lib, pkgs, ... }:
12
{
2-
example = {
3+
# TODO: added 2024-09-15
4+
# TODO: Re-enable when upstream builds in darwin sandbox
5+
example = lib.mkIf pkgs.stdenv.isLinux {
36
plugins = {
47
treesitter.enable = true;
58
neotest = {

tests/test-sources/plugins/by-name/neotest/foundry.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
{ lib, pkgs, ... }:
12
{
2-
example = {
3+
# TODO: added 2024-09-15
4+
# TODO: Re-enable when upstream builds in darwin sandbox
5+
example = lib.mkIf pkgs.stdenv.isLinux {
36
plugins = {
47
treesitter.enable = true;
58
neotest = {

tests/test-sources/plugins/by-name/neotest/go.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
{ lib, pkgs, ... }:
12
{
2-
example = {
3+
# TODO: added 2024-09-15
4+
# TODO: Re-enable when upstream builds in darwin sandbox
5+
example = lib.mkIf pkgs.stdenv.isLinux {
36
plugins = {
47
treesitter.enable = true;
58
neotest = {

tests/test-sources/plugins/by-name/neotest/golang.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
{ lib, pkgs, ... }:
12
{
2-
example = {
3+
# TODO: added 2024-09-15
4+
# TODO: Re-enable when upstream builds in darwin sandbox
5+
example = lib.mkIf pkgs.stdenv.isLinux {
36
plugins = {
47
treesitter.enable = true;
58
neotest = {

tests/test-sources/plugins/by-name/neotest/gtest.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
{ lib, pkgs, ... }:
12
{
2-
example = {
3+
# TODO: added 2024-09-15
4+
# TODO: Re-enable when upstream builds in darwin sandbox
5+
example = lib.mkIf pkgs.stdenv.isLinux {
36
# We cannot test neotest-gtest as it tries to create file in the upper directory
47
# https://github.com/alfaix/neotest-gtest/blob/6e794ac91f4c347e2ea5ddeb23d594f8fc64f2a8/lua/neotest-gtest/utils.lua#L10-L16
58
test.runNvim = false;

tests/test-sources/plugins/by-name/neotest/haskell.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
{ lib, pkgs, ... }:
12
{
2-
example = {
3+
# TODO: added 2024-09-15
4+
# TODO: Re-enable when upstream builds in darwin sandbox
5+
example = lib.mkIf pkgs.stdenv.isLinux {
36
plugins = {
47
treesitter.enable = true;
58
neotest = {

tests/test-sources/plugins/by-name/neotest/java.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
{ lib, pkgs, ... }:
12
{
2-
example = {
3+
# TODO: added 2024-09-15
4+
# TODO: Re-enable when upstream builds in darwin sandbox
5+
example = lib.mkIf pkgs.stdenv.isLinux {
36
plugins = {
47
treesitter.enable = true;
58
neotest = {

0 commit comments

Comments
 (0)