This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@rem fix a.test.exs | |
@rem removes the pending tag from the test and adds _2 to filename | |
@echo %1 | sed -e "s/.exs/_2.exs/" > temp.txt | |
@set /p Filename=<temp.txt | |
@cat %1 | grep -v "@tag :pending" > %Filename% | |
@rm temp.txt | |
elixir %Filename% |
Or on a mac/linux
grep -v @tag *_test.exs > test.exs && elixir test.exs