Skip to content

Commit

Permalink
Merge pull request #25 from Srinivas11789/codeCov
Browse files Browse the repository at this point in the history
add code coverage with travis
  • Loading branch information
Srinivas11789 authored Jan 11, 2019
2 parents d9fd932 + daad03c commit bb772ab
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
language: python

python:
- "2.7"

before_install:
- pip install -U pytest pytest-cov
- pip install codecov

install:
- pip install -r requirements.txt

script:
- pytest
- pytest --cov=./

after_success:
- codecov
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# PcapXray [![Build Status](https://travis-ci.org/Srinivas11789/PcapXray.svg?branch=master)](https://travis-ci.org/Srinivas11789/PcapXray)
# PcapXray [![Build Status](https://travis-ci.org/Srinivas11789/PcapXray.svg?branch=master)](https://travis-ci.org/Srinivas11789/PcapXray) [![codecov](https://codecov.io/gh/Srinivas11789/PcapXray/branch/master/graph/badge.svg)](https://codecov.io/gh/Srinivas11789/PcapXray)
A Network Forensics Tool - To visualize a Packet Capture offline as a Network Diagram including device identification, highlight important communication and file extraction
![Alt text](/logo.png?width=20px "PcapXray")
## PcapXray Design Specification
Expand Down
6 changes: 3 additions & 3 deletions Test/test_sanity.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
# 4 - maliciousTrafficIdentifier module
import maliciousTrafficIdentifier
# 5 - plotLanNetwork module
import plotLanNetwork
#import plotLanNetwork
# 7 - userInterface module
import userInterface
#import userInterface
# 8 - torTrafficHandle module
import torTrafficHandle

Expand Down Expand Up @@ -77,4 +77,4 @@ def test_tor_traffic_handle():
tor_capture = pcapReader.pcapReader(sys.path[0]+'examples/test.pcap')
tor_identify = torTrafficHandle.torTrafficHandle(tor_capture.packetDB)
if tor_identify:
assert True
assert True

0 comments on commit bb772ab

Please sign in to comment.