From b4fb90602da8dfbbfe8b391eb431adab3af648b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Reuh=20Fildadut?= Date: Fri, 24 May 2024 13:33:39 +0200 Subject: [PATCH] [doc] bump version & report version in test runner --- anselme/init.lua | 8 ++++---- test/run.lua | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/anselme/init.lua b/anselme/init.lua index 6c057b2..27c6234 100644 --- a/anselme/init.lua +++ b/anselme/init.lua @@ -54,16 +54,16 @@ local parser, State local anselme = { --- Global version string. Follow semver. - version = "2.0.0-beta", + version = "2.0.0-beta2", --- Table containing per-category version numbers. Incremented by one for any change that may break compatibility. versions = { --- Version number for language and standard library changes. - language = 29, + language = 30, --- Version number for save/AST format changes. - save = 6, + save = 7, --- Version number for Lua API changes. - api = 9 + api = 10 }, --- Parse a `code` string and return the generated AST. diff --git a/test/run.lua b/test/run.lua index 9181220..3a6cb7b 100644 --- a/test/run.lua +++ b/test/run.lua @@ -133,6 +133,11 @@ end -- run! if not arg[1] or arg[1] == "update" then + -- version information + local lua_version = type(jit) == "table" and tostring(jit.version) or tostring(_VERSION) + local anselme_version = ("%s (L%s/S%s/A%s)"):format(anselme.version, anselme.versions.language, anselme.versions.save, anselme.versions.api) + print("Running Anselme "..anselme_version.." test suite on "..lua_version) + -- display an animated loading indicator local loading = { loop = { "⣷", "⣯", "⣟", "⡿", "⢿", "⣻", "⣽", "⣾" }, @@ -235,7 +240,6 @@ if not arg[1] or arg[1] == "update" then end loading:clear() - print("#### Results ####") local successes = total-failure-notfound-errored print(("%s successes, %s failures, %s errors, %s missing result files, out of %s tests"):format(successes, failure, errored, notfound, total)) if successes < total then os.exit(1) end