aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/run_tests.sh
Commit message (Collapse)AuthorAgeFilesLines
* feat(tests)!: new infrastructure based on makefileChristian Clason2025-05-121-16/+0
| | | | | | | | | | | | | | | | | | | | | | Problem: Not easy to run all checks and tests locally. Redundant CI workflows. Solution: Separate CI into two workflows: * lint: Lua files (stylua, luals), query files (valid captures, predicates, directives using tsqueryls), docs (SUPPORTED_LANGUAGES.md) -- does not need parser installation * tests: parsers (ABI compatibility), query files (tsqueryls on Linux/macOS; nvim on Windows), highlight and indent tests (separated for better readability) -- needs parser installation (but only once) Switch to https://github.com/nvim-treesitter/highlight-assertions fork with ABI 15 support. Run all tests (on Linux and macOS) through `make` (`formatlua`, `checklua`, `lintquery`, `formatquery`, `checkquery`, `docs`, `tests`), which downloads and caches all necessary dependencies. Remove `update-readme` workflow (replaced by lint job on PRs).
* ci: remove update-lockfile shell scriptChristian Clason2025-05-121-1/+1
|
* test: Add test name to summary outputRaymond Ha2022-12-131-1/+1
|
* Update run_tests to be more scalable with more test folders addedStephan Seitz2021-11-241-6/+4
|
* test: Add tests for is_in_node_range (#1756)partizan2021-08-301-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix: is_in_node_range now includes end line and col This fixes no indents at the end of python files Refs #1136 * update scala highlights (#1760) * add type highlights * add call expression highlights * add function definition highlights * add expression highlights * add literals highlights * add operator highlights * add punctuation highlights * add comment highlights Co-authored-by: Stevan Milic <stevan.milic@tradecore.com> * test: Add unit tests * Revert "fix: is_in_node_range now includes end line and col" This reverts commit 5a721fef5620eb2fae6d9cebe09bf7b230f2606f. * refactor test * apply stylua * fix luacheck * update `describe` text * smallfix Co-authored-by: Stevan Milic <stevan.milic@yahoo.com> Co-authored-by: Stevan Milic <stevan.milic@tradecore.com>
* move all tests to top-level tests/ directoryJędrzej Boczar2021-04-231-1/+1
|
* scripts: print test results summary with --summaryJędrzej Boczar2021-04-231-2/+11
|
* Initial sketch of automated indent testsJędrzej Boczar2021-04-231-0/+7