May 19, 2025 at 1:13 pm
Hi all,
I’ve just open‑sourced T‑TEST, a tiny alternative to tSQLt that lives 100 % in T‑SQL—no CLR, no extra binaries.
Why you might care
install.sql
, < 10 KB of objectstests
schema is a test (auto‑discover by name convention)test.assert_equals
, test.fail
, …)30‑second quick‑start
:r install.sql -- run once per database
CREATE OR ALTER PROCEDURE tests.[dbo.sample@happy_path]
AS
SELECT test.assert_equals('1+1 must be 2',
2,
(SELECT 1+1)
);
GO
EXEC test.run;
Sample output:
INFO: 1 tests executed. Succeeded: 1, failed: 0
Repo (docs, full comparison with tSQLt):
https://github.com/uratol/t-test
Real‑world demo (50+ tests in action):
https://github.com/uratol/t-chess
I’d love your thoughts—bugs, ideas, “this saved me five minutes”, anything.
Thanks!
(Disclaimer: I’m the author.)
May 19, 2025 at 2:42 pm
Interesting. I'll give it a look when I get a chance.
If you would like t write a tutorial or article, send me a note.
May 19, 2025 at 10:22 pm
Very nice. The chess app is interesting too. Could you explain the project structure of the chess app a little more? There appears to be more than one chess engine
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
May 20, 2025 at 10:16 am
I've expanded the description of the engines https://github.com/uratol/t-chess/blob/master/README.md .
The chess project is more as a tutorial demo and for fun, it plays terribly actually, SQL is very slow for such tasks.
Among the interesting things I can still point out:
declare @my_var nvarchar(128) = 'engine_myengine.make_move'
exec @my_var ...
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply