mirror of
https://github.com/maaslalani/slides.git
synced 2026-01-07 21:43:58 -05:00
Short tests don't rely on PATH
This commit is contained in:
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -20,4 +20,4 @@ jobs:
|
||||
uses: golangci/golangci-lint-action@v2
|
||||
|
||||
- name: Test
|
||||
run: go test -race -v ./...
|
||||
run: go test -race -v -short ./...
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
Pull requests welcome!
|
||||
Take a look at the [Development Docs](./docs/development/README.md).
|
||||
|
||||
Pull requests are welcome!
|
||||
|
||||
3
Makefile
3
Makefile
@@ -1,6 +1,9 @@
|
||||
make:
|
||||
go run main.go examples/slides.md
|
||||
|
||||
test:
|
||||
go test ./... -short
|
||||
|
||||
build:
|
||||
go build -o slides
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -33,6 +33,6 @@ var Languages = map[string]Language{
|
||||
},
|
||||
Elixir: {
|
||||
Extension: "exs",
|
||||
Command: []string{"elixir"},
|
||||
Command: []string{"elixir"},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user