1
- [ ![ Go Reference] ( https://pkg.go.dev/badge/github.com/go-spectest /spectest.svg )] ( https://pkg.go.dev/github.com/go-spectest /spectest )
2
- [ ![ LinuxUnitTest] ( https://github.com/go-spectest /spectest/actions/workflows/linux_test.yml/badge.svg )] ( https://github.com/go-spectest /spectest/actions/workflows/linux_test.yml )
3
- [ ![ MacUnitTest] ( https://github.com/go-spectest /spectest/actions/workflows/mac_test.yml/badge.svg )] ( https://github.com/go-spectest /spectest/actions/workflows/mac_test.yml )
4
- [ ![ WindowsUnitTest] ( https://github.com/go-spectest /spectest/actions/workflows/windows_test.yml/badge.svg )] ( https://github.com/go-spectest /spectest/actions/workflows/windows_test.yml )
5
- [ ![ UnitTestExampleCodes] ( https://github.com/go-spectest /spectest/actions/workflows/test-examples.yml/badge.svg )] ( https://github.com/go-spectest /spectest/actions/workflows/test-examples.yml )
6
- [ ![ reviewdog] ( https://github.com/go-spectest /spectest/actions/workflows/reviewdog.yml/badge.svg )] ( https://github.com/go-spectest /spectest/actions/workflows/reviewdog.yml )
7
- [ ![ Gosec] ( https://github.com/go-spectest /spectest/actions/workflows/gosec.yml/badge.svg )] ( https://github.com/go-spectest /spectest/actions/workflows/gosec.yml )
8
- ![ Coverage] ( https://github.com/go-spectest /octocovs-central-repo/blob/main//badges/go-spectest /spectest/coverage.svg?raw=true )
1
+ [ ![ Go Reference] ( https://pkg.go.dev/badge/github.com/nao1215 /spectest.svg )] ( https://pkg.go.dev/github.com/nao1215 /spectest )
2
+ [ ![ LinuxUnitTest] ( https://github.com/nao1215 /spectest/actions/workflows/linux_test.yml/badge.svg )] ( https://github.com/nao1215 /spectest/actions/workflows/linux_test.yml )
3
+ [ ![ MacUnitTest] ( https://github.com/nao1215 /spectest/actions/workflows/mac_test.yml/badge.svg )] ( https://github.com/nao1215 /spectest/actions/workflows/mac_test.yml )
4
+ [ ![ WindowsUnitTest] ( https://github.com/nao1215 /spectest/actions/workflows/windows_test.yml/badge.svg )] ( https://github.com/nao1215 /spectest/actions/workflows/windows_test.yml )
5
+ [ ![ UnitTestExampleCodes] ( https://github.com/nao1215 /spectest/actions/workflows/test-examples.yml/badge.svg )] ( https://github.com/nao1215 /spectest/actions/workflows/test-examples.yml )
6
+ [ ![ reviewdog] ( https://github.com/nao1215 /spectest/actions/workflows/reviewdog.yml/badge.svg )] ( https://github.com/nao1215 /spectest/actions/workflows/reviewdog.yml )
7
+ [ ![ Gosec] ( https://github.com/nao1215 /spectest/actions/workflows/gosec.yml/badge.svg )] ( https://github.com/nao1215 /spectest/actions/workflows/gosec.yml )
8
+ ![ Coverage] ( https://github.com/nao1215 /octocovs-central-repo/blob/main//badges/nao1215 /spectest/coverage.svg?raw=true )
9
9
10
10
## What is spectest?
11
11
@@ -23,7 +23,7 @@ The spectest has its own unique use cases, [Use Cases of spectest](./doc/spectes
23
23
## Installation
24
24
25
25
``` bash
26
- go get -u github.com/go-spectest /spectest
26
+ go get -u github.com/nao1215 /spectest
27
27
```
28
28
29
29
## Demo
@@ -36,28 +36,28 @@ go get -u github.com/go-spectest/spectest
36
36
37
37
| Example | Comment |
38
38
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
39
- | [ gin] ( https://github.com/go-spectest /spectest/tree/main/examples/gin ) | popular martini-like web framework |
40
- | [ graphql] ( https://github.com/go-spectest /spectest/tree/main/examples/graphql ) | using gqlgen.com to generate a graphql server |
41
- | [ gorilla] ( https://github.com/go-spectest /spectest/tree/main/examples/gorilla ) | the gorilla web toolkit |
42
- | [ iris (broken)] ( https://github.com/go-spectest /spectest/tree/main/examples/iris ) | iris web framework |
43
- | [ echo] ( https://github.com/go-spectest /spectest/tree/main/examples/echo ) | High performance, extensible, minimalist Go web framework |
44
- | [ fiber] ( https://github.com/go-spectest /spectest/tree/main/examples/fiber ) | Express inspired web framework written in Go |
45
- | [ httprouter] ( https://github.com/go-spectest /spectest/tree/main/examples/httprouter ) | High performance HTTP request router that scales well |
46
- | [ mocks] ( https://github.com/go-spectest /spectest/tree/main/examples/mocks ) | example mocking out external http calls |
47
- | [ sequence diagrams] ( https://github.com/go-spectest /spectest/tree/main/examples/sequence-diagrams ) | generate sequence diagrams from tests |
48
- | [ Ginkgo] ( https://github.com/go-spectest /spectest/tree/main/examples/ginkgo ) | Ginkgo BDD test framework|
49
- | [ plantuml] ( https://github.com/go-spectest /spectest/tree/main/examples/plantuml ) | wxample generating plantuml|
39
+ | [ gin] ( https://github.com/nao1215 /spectest/tree/main/examples/gin ) | popular martini-like web framework |
40
+ | [ graphql] ( https://github.com/nao1215 /spectest/tree/main/examples/graphql ) | using gqlgen.com to generate a graphql server |
41
+ | [ gorilla] ( https://github.com/nao1215 /spectest/tree/main/examples/gorilla ) | the gorilla web toolkit |
42
+ | [ iris (broken)] ( https://github.com/nao1215 /spectest/tree/main/examples/iris ) | iris web framework |
43
+ | [ echo] ( https://github.com/nao1215 /spectest/tree/main/examples/echo ) | High performance, extensible, minimalist Go web framework |
44
+ | [ fiber] ( https://github.com/nao1215 /spectest/tree/main/examples/fiber ) | Express inspired web framework written in Go |
45
+ | [ httprouter] ( https://github.com/nao1215 /spectest/tree/main/examples/httprouter ) | High performance HTTP request router that scales well |
46
+ | [ mocks] ( https://github.com/nao1215 /spectest/tree/main/examples/mocks ) | example mocking out external http calls |
47
+ | [ sequence diagrams] ( https://github.com/nao1215 /spectest/tree/main/examples/sequence-diagrams ) | generate sequence diagrams from tests |
48
+ | [ Ginkgo] ( https://github.com/nao1215 /spectest/tree/main/examples/ginkgo ) | Ginkgo BDD test framework|
49
+ | [ plantuml] ( https://github.com/nao1215 /spectest/tree/main/examples/plantuml ) | wxample generating plantuml|
50
50
51
51
### Companion libraries (Side projects)
52
52
In the original apitest repository, side projects were managed in separate repositories. However, in spectest, these side projects are managed within the same repository. However, the difflib, which operates independently from spectest, and the malfunctioning aws package, are managed in separate repositories.
53
53
54
54
| Library | Comment |
55
55
| ----------------------------------------------------------------------- | -----------------------------------------------|
56
- | [ JSON Path] ( https://github.com/go-spectest /spectest/tree/main/jsonpath ) | JSON Path assertion addons |
57
- | [ JOSN Schema] ( https://github.com/go-spectest /spectest/tree/main/jsonschema ) | JSON Schema assertion addons |
58
- | [ CSS Selectors] ( https://github.com/go-spectest /spectest/tree/main/css-selector ) | CSS selector assertion addons |
59
- | [ PlantUML] ( https://github.com/go-spectest /spectest/tree/main/plantuml ) | Export sequence diagrams as plantUML |
60
- | [ DynamoDB (broken)] ( https://github.com/go-spectest /tree/main/aws ) | Add DynamoDB interactions to sequence diagrams |
56
+ | [ JSON Path] ( https://github.com/nao1215 /spectest/tree/main/jsonpath ) | JSON Path assertion addons |
57
+ | [ JOSN Schema] ( https://github.com/nao1215 /spectest/tree/main/jsonschema ) | JSON Schema assertion addons |
58
+ | [ CSS Selectors] ( https://github.com/nao1215 /spectest/tree/main/css-selector ) | CSS selector assertion addons |
59
+ | [ PlantUML] ( https://github.com/nao1215 /spectest/tree/main/plantuml ) | Export sequence diagrams as plantUML |
60
+ | [ DynamoDB (broken)] ( https://github.com/nao1215 /tree/main/aws ) | Add DynamoDB interactions to sequence diagrams |
61
61
62
62
### Credits
63
63
@@ -86,7 +86,7 @@ func TestApi(t *testing.T) {
86
86
87
87
#### JSONPath
88
88
89
- For asserting on parts of the response body JSONPath may be used. A separate module must be installed which provides these assertions - ` go get -u github.com/go-spectest /spectest/jsonpath ` . This is packaged separately to keep this library dependency free.
89
+ For asserting on parts of the response body JSONPath may be used. A separate module must be installed which provides these assertions - ` go get -u github.com/nao1215 /spectest/jsonpath ` . This is packaged separately to keep this library dependency free.
90
90
91
91
Given the response is ` {"a": 12345, "b": [{"key": "c", "value": "result"}]} `
92
92
0 commit comments