junegunn / junegunn/vader.vim

Provide an easy way to have a file as Given

Open
#76 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
599
Forks
40
PR merge metrics
No merged PRs in 30d

Description

I am setting up Vader tests for Neomake, and would like to have an easy way to have an actual file with `Given`.

What about `Given test.sh` would write an actual file?

Otherwise I should probably use some wrapper functions for this.

Currently I am using this pattern:

``` vader
Given sh (Shell script with advanced shebang):
#! /usr/bin/env bash
true

Execute (Basic usage):
set noswapfile
write! test-file.sh
Neomake sh

Then:
AssertEqual neomake#GetEnabledMakers('sh'), ['sh', 'shellcheck']
```

Related: #71

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.