testtest_spec.lua (480B)
1 local t = require('test.unit.testutil') 2 local assert = require('luassert') 3 4 local itp = t.gen_itp(it) 5 6 local sc = t.sc 7 8 -- All of the below tests must fail. Check how exactly they fail. 9 if os.getenv('NVIM_TEST_RUN_TESTTEST') ~= '1' then 10 return 11 end 12 describe('test code', function() 13 itp('does not hang when working with lengthy errors', function() 14 assert.just_fail(('x'):rep(65536)) 15 end) 16 itp('shows trace after exiting abnormally', function() 17 sc.exit(0) 18 end) 19 end)