summaryrefslogtreecommitdiffstatshomepage
path: root/test/unit/profile_spec.lua
AgeCommit message (Collapse)AuthorFiles
2025-07-20vim-patch:8.1.1891: functions used in one file are globalJan Edmund Lazo1
Problem: Functions used in one file are global. Solution: Add "static". (Yegappan Lakshmanan, closes vim/vim#4840) https://github.com/vim/vim/commit/5843f5f37b0632e2d706abc9014bfd7d98f7b02e Co-authored-by: Bram Moolenaar <Bram@vim.org>
2024-04-10refactor(test): inject after_each differentlyLewis Russell1
2024-04-08test: improve test conventionsdundargoc1
Work on https://github.com/neovim/neovim/issues/27004.
2024-03-11test: correct order of arguments to eq() (#27816)zeertzjq1
2023-12-04build: enable lintlua for test/unit/ dir #26396Justin M. Keyes1
Problem: Not all Lua code is checked by stylua. Automating code-style is an important mechanism for reducing time spent on accidental (non-essential) complexity. Solution: - Enable lintlua for `test/unit/` directory. - TODO: only `test/functional/` remains unchecked. previous: 45fe4d11add933df76a2ea4bf52ce8904f4a778b previous: 517f0cc634b985057da5b95cf4ad659ee456a77e
2017-03-11unittests: Do not import libnvim or headers in main processZyX1
Slows down unit tests much, but gets rid of as much preserved state as possible.
2017-03-11unittests: Run all unit tests in their own processesZyX1
Used sed -r -i -e '/ helpers =/ s/$/\nlocal itp = helpers.gen_itp(it)/; s/^(\s*)it\(/\1itp(/' test/unit/**/*_spec.lua to alter all tests. Locally they all run fine now. Reasoning: 1. General: state from one test should not affect other tests. 2. Local: travis build is failing with something which may be an output of garbage collector. This should prevent state of the garbage collector from interferring as well.
2015-11-23test/unit: clean up according to luacheckMarco Hinz1
2014-07-16profiling: add testsNicolas Hillegeer1
Some functions are missing: - profile_self - profile_get_wait - profile_set_wait - profile_sub_wait