Skip to content

Commit

Permalink
PlenaryBustedFile
Browse files Browse the repository at this point in the history
  • Loading branch information
grierson committed Aug 12, 2023
1 parent 664364c commit 6519633
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
File renamed without changes.
11 changes: 10 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ test: prepare
-u lua/spec/init.lua \
-c "PlenaryBustedDirectory lua/spec { minimal_init='lua/spec/init.lua', sequential=true }"


file feature: prepare
./.build/nvim/bin/nvim --version
./.build/nvim/bin/nvim \
--headless \
--noplugin \
-u lua/spec/init.lua \
-c "PlenaryBustedFile lua/spec/{{feature}}_spec.lua"

focus feature: prepare
./.build/nvim/bin/nvim --version
./.build/nvim/bin/nvim \
Expand All @@ -42,5 +51,5 @@ focus feature: prepare
-c "PlenaryBustedDirectory lua/spec/{{feature}} { minimal_init='lua/spec/init.lua', sequential=true }"

watch feature:
fswatch -o lua/formedit/{{feature}}.lua lua/spec/{{feature}}/{{feature}}_spec.lua | xargs -n1 -I{} just focus {{feature}}
fswatch -o lua/formedit/{{feature}}.lua lua/spec/{{feature}}_spec.lua | xargs -n1 -I{} just file {{feature}}

2 changes: 1 addition & 1 deletion lua/spec/tree/tree_spec.lua → lua/spec/tree_spec.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6519633

Please sign in to comment.