mirror of
https://github.com/huashengdun/webssh.git
synced 2026-02-14 11:49:50 +00:00
Prepare to write unit tests
This commit is contained in:
13
.coveragerc
Normal file
13
.coveragerc
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
[run]
|
||||||
|
branch = true
|
||||||
|
source = webssh
|
||||||
|
|
||||||
|
[report]
|
||||||
|
exclude_lines =
|
||||||
|
if self.debug:
|
||||||
|
pragma: no cover
|
||||||
|
raise NotImplementedError
|
||||||
|
if __name__ == .__main__.:
|
||||||
|
ignore_errors = True
|
||||||
|
omit =
|
||||||
|
tests/*
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -36,6 +36,7 @@ htmlcov/
|
|||||||
.tox/
|
.tox/
|
||||||
.coverage
|
.coverage
|
||||||
.cache
|
.cache
|
||||||
|
.pytest_cache/
|
||||||
nosetests.xml
|
nosetests.xml
|
||||||
coverage.xml
|
coverage.xml
|
||||||
|
|
||||||
|
|||||||
20
.travis.yml
Normal file
20
.travis.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
dist: trusty
|
||||||
|
sudo: false
|
||||||
|
|
||||||
|
language: python
|
||||||
|
python:
|
||||||
|
- "2.7"
|
||||||
|
- "3.4"
|
||||||
|
- "3.5"
|
||||||
|
- "3.6"
|
||||||
|
|
||||||
|
install:
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
- pip install pytest pytest-cov codecov flake8
|
||||||
|
|
||||||
|
script:
|
||||||
|
- pytest --cov=webssh
|
||||||
|
- flake8 --exclude='.git'
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- codecov
|
||||||
@@ -1,5 +1,9 @@
|
|||||||
## WebSSH
|
## WebSSH
|
||||||
A simple web application to be used as an ssh client to connect to your ssh servers. It is written in Python, base on Tornado and Paramiko.
|
[](https://travis-ci.org/huashengdun/webssh)
|
||||||
|
[](https://codecov.io/gh/huashengdun/webssh)
|
||||||
|

|
||||||
|
|
||||||
|
A simple web application to be used as an ssh client to connect to your ssh servers. It is written in Python, base on tornado and paramiko.
|
||||||
|
|
||||||
### Preview
|
### Preview
|
||||||

|

|
||||||
@@ -18,7 +22,7 @@ A simple web application to be used as an ssh client to connect to your ssh serv
|
|||||||
git clone https://github.com/huashengdun/webssh.git
|
git clone https://github.com/huashengdun/webssh.git
|
||||||
cd webssh
|
cd webssh
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
python main.py
|
python webssh/main.py
|
||||||
```
|
```
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
paramiko==2.4.1
|
paramiko==2.4.1
|
||||||
tornado==5.0.1
|
tornado==5.0.2
|
||||||
|
|||||||
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
0
webssh/__init__.py
Normal file
0
webssh/__init__.py
Normal file
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Reference in New Issue
Block a user