Skip to content

Commit

Permalink
Use the upstreamed inanis runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Oct 22, 2023
1 parent 59830ec commit 03ecaa0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
3 changes: 1 addition & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ tests := justfile_directory() + "/lua/tests"
fixtures := tests + "/fixtures"

init_lua := scripts + "/minimal_init.lua"
runner := scripts + "/run_tests.lua"

# Run the lean.nvim test suite.
test: _rebuild-test-fixtures _clone-test-dependencies
@just retest

# Run the test suite without rebuilding or recloning any dependencies.
retest *test_files=tests:
nvim --headless -u {{ init_lua }} -l {{ runner }} {{ test_files }}
nvim --headless -u {{ init_lua }} -c 'lua require("inanis").run{ "lua/tests/", minimal_init = "{{ init_lua }}", sequential = vim.env.TEST_SEQUENTIAL ~= nil }'

# Run an instance of neovim with the same minimal init used to run tests.
nvim setup_table='{}' *ARGS='':
Expand Down
13 changes: 0 additions & 13 deletions scripts/run_tests.lua

This file was deleted.

0 comments on commit 03ecaa0

Please sign in to comment.