mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
[doc] bump version & report version in test runner
This commit is contained in:
parent
03922ebde4
commit
b4fb90602d
2 changed files with 9 additions and 5 deletions
|
|
@ -54,16 +54,16 @@ local parser, State
|
||||||
|
|
||||||
local anselme = {
|
local anselme = {
|
||||||
--- Global version string. Follow semver.
|
--- 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.
|
--- Table containing per-category version numbers. Incremented by one for any change that may break compatibility.
|
||||||
versions = {
|
versions = {
|
||||||
--- Version number for language and standard library changes.
|
--- Version number for language and standard library changes.
|
||||||
language = 29,
|
language = 30,
|
||||||
--- Version number for save/AST format changes.
|
--- Version number for save/AST format changes.
|
||||||
save = 6,
|
save = 7,
|
||||||
--- Version number for Lua API changes.
|
--- Version number for Lua API changes.
|
||||||
api = 9
|
api = 10
|
||||||
},
|
},
|
||||||
|
|
||||||
--- Parse a `code` string and return the generated AST.
|
--- Parse a `code` string and return the generated AST.
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,11 @@ end
|
||||||
|
|
||||||
-- run!
|
-- run!
|
||||||
if not arg[1] or arg[1] == "update" then
|
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
|
-- display an animated loading indicator
|
||||||
local loading = {
|
local loading = {
|
||||||
loop = { "⣷", "⣯", "⣟", "⡿", "⢿", "⣻", "⣽", "⣾" },
|
loop = { "⣷", "⣯", "⣟", "⡿", "⢿", "⣻", "⣽", "⣾" },
|
||||||
|
|
@ -235,7 +240,6 @@ if not arg[1] or arg[1] == "update" then
|
||||||
end
|
end
|
||||||
|
|
||||||
loading:clear()
|
loading:clear()
|
||||||
print("#### Results ####")
|
|
||||||
local successes = total-failure-notfound-errored
|
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))
|
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
|
if successes < total then os.exit(1) end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue