Short tests don't rely on PATH

This commit is contained in:
Maas Lalani
2021-06-25 22:09:17 -04:00
parent a158018e07
commit 09f46bae4b
6 changed files with 16 additions and 3 deletions

View File

@@ -20,4 +20,4 @@ jobs:
uses: golangci/golangci-lint-action@v2
- name: Test
run: go test -race -v ./...
run: go test -race -v -short ./...

View File

@@ -1 +1,3 @@
Pull requests welcome!
Take a look at the [Development Docs](./docs/development/README.md).
Pull requests are welcome!

View File

@@ -1,6 +1,9 @@
make:
go run main.go examples/slides.md
test:
go test ./... -short
build:
go build -o slides

View File

@@ -11,6 +11,11 @@ everything still works.
If you're adding a feature that requires a specific piece of markdown, you can
add a file with your test case into `examples/<test>.md` and iterate on that file.
Ensure tests are still passing
```
make test
```
### Breaking Changes
Most changes should be entirely backwards compatible.
Ensure that `slides examples/slides.md` still works.

View File

@@ -102,6 +102,9 @@ func main() {
}
for _, tc := range tt {
if testing.Short() {
t.SkipNow()
}
r := code.Execute(tc.block)
if r.Out != tc.expected.Out {
t.Fatalf("invalid output, got %s, want %s", r.Out, tc.expected.Out)

View File

@@ -33,6 +33,6 @@ var Languages = map[string]Language{
},
Elixir: {
Extension: "exs",
Command: []string{"elixir"},
Command: []string{"elixir"},
},
}