We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create the test test/box-luatest/failing_test.lua in the Tarantool repository:
test/box-luatest/failing_test.lua
local cbuilder = require('luatest.cbuilder') local cluster = require('luatest.cluster') local t = require('luatest') local g = t.group() g.before_all(function(cg) local config = cbuilder:new() :add_instance('test', {}) :config() cg.cluster = cluster.new(config) cg.cluster:start() end) g.after_all(function(cg) cg.cluster:drop() end) g.test_fail = function(cg) cg.cluster.test:exec(function() t.assert(false) end) end
Run it:
cd test . <(./test-run.py --env) luatest -v box-luatest/failing_test.lua
The test fails but no artifacts are saved (/tmp/t/artifacts directory doesn't exist).
/tmp/t/artifacts
Note that the luatest.server helper saves artifacts on failure.
luatest.server
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Create the test
test/box-luatest/failing_test.lua
in the Tarantool repository:Run it:
The test fails but no artifacts are saved (
/tmp/t/artifacts
directory doesn't exist).Note that the
luatest.server
helper saves artifacts on failure.The text was updated successfully, but these errors were encountered: