LinuxSuRen / LinuxSuRen/api-testing
Support loading test cases from IO stream
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 369
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
The test case files are might stored in a HTTP server. It would be good to support loading it from an URL in this case. See also the following example usage:
```shell
atest run -p http://foo/test.yaml
```
See also https://github.com/LinuxSuRen/api-testing/blob/d564f69c9c0bee75fa3437be4c7cc5a3fa8c4683/pkg/testing/loader_file.go#L29
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with pkg/testing/loader_file.go at the linked line, then trace how `atest run -p` loads the supplied path. Verify the example URL can load a test case from an HTTP server, and check that the existing file-loading behavior still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100