From 32a3950d16e8a1c9413940d940732115cbe13bbd Mon Sep 17 00:00:00 2001 From: tristan Date: Tue, 2 Jan 2024 13:41:24 +0000 Subject: [PATCH] better logging --- tix/describe.nix | 1 + tix/it.nix | 17 +++-------------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/tix/describe.nix b/tix/describe.nix index 3d855e9..c83179d 100644 --- a/tix/describe.nix +++ b/tix/describe.nix @@ -1,4 +1,5 @@ name: +builtins.trace "testing ${name}" map ({ msg, success, diff --git a/tix/it.nix b/tix/it.nix index cbf5021..dc6e74e 100644 --- a/tix/it.nix +++ b/tix/it.nix @@ -24,22 +24,11 @@ msg: { then builtins.removeAttrs v ["__toString" "__functor"] else v; - out = - if safeToPrint - then - builtins.toJSON (undunder ( - if throws - then (builtins.tryEval actual).value - else { - inherit actual expected; - } - )) - else ''{"msg": "cannot be stringified ):"}''; - success = - if throws + builtins.trace "testing if it ${msg}" + ( if throws then (builtins.tryEval actual).success == false - else (a == e); + else (a == e) ); in { inherit success msg;