-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.sh
More file actions
executable file
·28 lines (22 loc) · 970 Bytes
/
run_tests.sh
File metadata and controls
executable file
·28 lines (22 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# Simple test runner using Plenary
# This is the main test runner - use run_tests_with_coverage.sh for coverage
set -e
echo "==============================================="
echo "Running Context Graph Tests"
echo "==============================================="
# Check if plenary is available
if ! nvim --headless -c "lua require('plenary')" -c "qa" 2>/dev/null; then
echo "Error: plenary.nvim not found. Please install it first."
echo " git clone https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim"
exit 1
fi
# Run all tests using Plenary
echo -e "\n--- Running Tests with Plenary ---"
nvim --headless --noplugin -u NONE \
-c "set rtp+=." \
-c "runtime plugin/plenary.vim" \
-c "lua require('tests.minimal_init')" \
-c "lua require('plenary.test_harness').test_directory('tests/', {minimal_init='tests/minimal_init.lua', sequential=true})" \
-c "qa"
echo -e "\n✅ All tests completed"