danhper / fundle

A minimalist package manager for fish shell
MIT License
374 stars 22 forks source link

Use fishtape for tests? #5

Closed ghost closed 8 years ago

ghost commented 8 years ago

What do you think about porting your tests to Fishtape?

danhper commented 8 years ago

Hi, thanks for the proposal.

Actually I would love to have an easier and more systematic way of testing at least fundle packages in general, as most packages are not tested.

So I think integrating a test framework for fundle itself, and to test fundle packages could be nice. It could make it quite easy to have a fundle test command or something like this.

Do you think it would be possible to have fishtape installed with fundle? I would love to be able to write

fundle plugin 'fisherman/fishtape'
fundle init
fundle install

fishtape path/to/tests/*.fish

in my tests, without having to worry more about installation.

ghost commented 8 years ago

Fishtape is framework agnostic. So, yes, you could install it as a fundle plugin (or omf, or wahoo, or whatever).

Fishtape installs fishtape.fish into ~/.config/fish/functions/fishtape.fish and also creates a directory inside ~/.config/fish/fishtape to store the runtime which is injected into the compiled fish code when test files are run.

danhper commented 8 years ago

@bucaran Seems to be working nice!

ghost commented 8 years ago

Now just for fun:

npm install tap-nyan

and pipe fishtape TAP stream to get

for free.

danhper commented 8 years ago

Yeah, I saw there are plenty of cool consumers for tap! :smile: