LinuxSuRen / LinuxSuRen/api-testing

Support loading test cases from IO stream

Open
#94 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
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

Open the contributing guide

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.