Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
08ba4e64
"jshERP-boot/src/git@ustchcs.com:gujinli1118/JSH_ERP.git" did not exist on "f89d8f2a3fd11bf10b182857195516229b3b29d1"
Unverified
Commit
08ba4e64
authored
Jan 17, 2022
by
Matheus Felipe
Browse files
Create README.md to scripts directory
parent
3a08c151
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/README.md
0 → 100644
View file @
08ba4e64
# Public APIs Scripts
This directory contains all validation and testing scripts used by Public APIs.
```
bash
scripts
│ github_pull_request.sh
# used to validate changes of a pull request
│ requirements.txt
# contains dependencies of validate package
│
├───tests
# contains all unit tests from the validate package
│ test_validate_format.py
│ test_validate_links.py
│
└───validate
# validate package
format.py
links.py
```
## Running Tests
To run all tests it is necessary to change to the scripts directory:
```
bash
$
cd
scripts
```
then run:
```
bash
$
python
-m
unittest discover tests/
--verbose
```
To run only the format tests, run:
```
bash
$
python
-m
unittest discover tests/
--verbose
--pattern
"test_validate_format.py"
```
To run only the links tests, run:
```
bash
$
python
-m
unittest discover tests/
--verbose
--pattern
"test_validate_links.py"
```
*Note that it is necessary to have [python](https://www.python.org/) installed.*
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment