mirror of https://github.com/nucypher/nucypher.git
Test results were not captured by CircleCI. Fixed.
parent
226d3daaf3
commit
580b979ea2
|
@ -270,6 +270,9 @@ commands:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: ~/.local/share/virtualenvs/
|
at: ~/.local/share/virtualenvs/
|
||||||
|
- run:
|
||||||
|
name: "Create directory for test reports"
|
||||||
|
command: mkdir reports
|
||||||
|
|
||||||
coveralls:
|
coveralls:
|
||||||
description: "Upload Coverage Report To Coveralls.io"
|
description: "Upload Coverage Report To Coveralls.io"
|
||||||
|
@ -285,7 +288,7 @@ commands:
|
||||||
steps:
|
steps:
|
||||||
- coveralls
|
- coveralls
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: ./reports/pytest/
|
path: reports
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -321,7 +324,7 @@ jobs:
|
||||||
- prepare_environment
|
- prepare_environment
|
||||||
- run:
|
- run:
|
||||||
name: Blockchain Interface Tests
|
name: Blockchain Interface Tests
|
||||||
command: pipenv run pytest tests/blockchain/eth/interfaces
|
command: pipenv run pytest tests/blockchain/eth/interfaces --junitxml=reports/blockchain.xml
|
||||||
- capture_test_results
|
- capture_test_results
|
||||||
|
|
||||||
agents:
|
agents:
|
||||||
|
@ -332,7 +335,7 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: Blockchain Agent Tests
|
name: Blockchain Agent Tests
|
||||||
command: |
|
command: |
|
||||||
pipenv run pytest $(circleci tests glob tests/blockchain/eth/entities/agents/**/*.py | circleci tests split --split-by=timings)
|
pipenv run pytest $(circleci tests glob tests/blockchain/eth/entities/agents/**/*.py | circleci tests split --split-by=timings) --junitxml=reports/agents.xml
|
||||||
- capture_test_results
|
- capture_test_results
|
||||||
|
|
||||||
actors:
|
actors:
|
||||||
|
@ -343,7 +346,7 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: Blockchain Actor Tests
|
name: Blockchain Actor Tests
|
||||||
command: |
|
command: |
|
||||||
pipenv run pytest $(circleci tests glob tests/blockchain/eth/entities/actors/**/*.py | circleci tests split --split-by=timings)
|
pipenv run pytest $(circleci tests glob tests/blockchain/eth/entities/actors/**/*.py | circleci tests split --split-by=timings) --junitxml=reports/actors.xml
|
||||||
- capture_test_results
|
- capture_test_results
|
||||||
|
|
||||||
deployers:
|
deployers:
|
||||||
|
@ -354,7 +357,7 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: Contract Deployer Tests
|
name: Contract Deployer Tests
|
||||||
command: |
|
command: |
|
||||||
pipenv run pytest $(circleci tests glob tests/blockchain/eth/entities/deployers/test_*.py | circleci tests split --split-by=timings)
|
pipenv run pytest $(circleci tests glob tests/blockchain/eth/entities/deployers/test_*.py | circleci tests split --split-by=timings) --junitxml=reports/deployers.xml
|
||||||
- capture_test_results
|
- capture_test_results
|
||||||
|
|
||||||
contracts:
|
contracts:
|
||||||
|
@ -365,9 +368,9 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: Ethereum Contract Unit Tests
|
name: Ethereum Contract Unit Tests
|
||||||
command: |
|
command: |
|
||||||
pipenv run pytest $(circleci tests glob tests/blockchain/eth/contracts/**/**/test_*.py | circleci tests split --split-by=timings)
|
pipenv run pytest $(circleci tests glob tests/blockchain/eth/contracts/**/**/test_*.py | circleci tests split --split-by=timings) --junitxml=reports/contracts.xml
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: ./reports/pytest/
|
path: reports
|
||||||
|
|
||||||
config:
|
config:
|
||||||
<<: *python_36_base
|
<<: *python_36_base
|
||||||
|
@ -377,7 +380,7 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: Node Configuration Tests
|
name: Node Configuration Tests
|
||||||
command: |
|
command: |
|
||||||
pipenv run pytest $(circleci tests glob tests/config/**/test_*.py | circleci tests split --split-by=timings)
|
pipenv run pytest $(circleci tests glob tests/config/**/test_*.py | circleci tests split --split-by=timings) --junitxml=reports/config.xml
|
||||||
- capture_test_results
|
- capture_test_results
|
||||||
|
|
||||||
crypto:
|
crypto:
|
||||||
|
@ -386,10 +389,8 @@ jobs:
|
||||||
- prepare_environment
|
- prepare_environment
|
||||||
- run:
|
- run:
|
||||||
name: Crypto Character Tests
|
name: Crypto Character Tests
|
||||||
command: pipenv run pytest tests/crypto
|
command: pipenv run pytest tests/crypto --junitxml=reports/crypto.xml
|
||||||
- coveralls
|
- capture_test_results
|
||||||
- store_test_results:
|
|
||||||
path: ./reports/pytest/
|
|
||||||
|
|
||||||
network:
|
network:
|
||||||
<<: *python_36_base
|
<<: *python_36_base
|
||||||
|
@ -398,7 +399,7 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: Network Tests
|
name: Network Tests
|
||||||
command: |
|
command: |
|
||||||
pipenv run pytest $(circleci tests glob tests/network/**/test_*.py | circleci tests split --split-by=timings)
|
pipenv run pytest $(circleci tests glob tests/network/**/test_*.py | circleci tests split --split-by=timings) --junitxml=reports/network.xml
|
||||||
- capture_test_results
|
- capture_test_results
|
||||||
|
|
||||||
keystore:
|
keystore:
|
||||||
|
@ -409,7 +410,7 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: Keystore Tests
|
name: Keystore Tests
|
||||||
command: |
|
command: |
|
||||||
pipenv run pytest $(circleci tests glob tests/keystore/**/test_*.py | circleci tests split --split-by=timings)
|
pipenv run pytest $(circleci tests glob tests/keystore/**/test_*.py | circleci tests split --split-by=timings) --junitxml=reports/keystore.xml
|
||||||
- capture_test_results
|
- capture_test_results
|
||||||
|
|
||||||
character:
|
character:
|
||||||
|
@ -420,7 +421,7 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: Character Tests
|
name: Character Tests
|
||||||
command: |
|
command: |
|
||||||
pipenv run pytest $(circleci tests glob tests/characters/**/test_*.py | circleci tests split --split-by=timings)
|
pipenv run pytest $(circleci tests glob tests/characters/**/test_*.py | circleci tests split --split-by=timings) --junitxml=reports/character.xml
|
||||||
- capture_test_results
|
- capture_test_results
|
||||||
|
|
||||||
learning:
|
learning:
|
||||||
|
@ -429,7 +430,7 @@ jobs:
|
||||||
- prepare_environment
|
- prepare_environment
|
||||||
- run:
|
- run:
|
||||||
name: Learner Tests
|
name: Learner Tests
|
||||||
command: pipenv run pytest tests/learning
|
command: pipenv run pytest tests/learning --junitxml=reports/learning.xml
|
||||||
- capture_test_results
|
- capture_test_results
|
||||||
|
|
||||||
cli:
|
cli:
|
||||||
|
@ -440,9 +441,9 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: Nucypher CLI Tests
|
name: Nucypher CLI Tests
|
||||||
command: |
|
command: |
|
||||||
pipenv run pytest $(circleci tests glob tests/cli/**/test_*.py | circleci tests split --split-by=timings)
|
pipenv run pytest $(circleci tests glob tests/cli/**/test_*.py | circleci tests split --split-by=timings) --junitxml=reports/cli.xml
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: ./reports/pytest/
|
path: reports
|
||||||
|
|
||||||
ursula_command:
|
ursula_command:
|
||||||
<<: *python_36_base
|
<<: *python_36_base
|
||||||
|
@ -450,9 +451,9 @@ jobs:
|
||||||
- prepare_environment
|
- prepare_environment
|
||||||
- run:
|
- run:
|
||||||
name: Ursula Command Tests
|
name: Ursula Command Tests
|
||||||
command: pipenv run pytest tests/cli/protocol
|
command: pipenv run pytest tests/cli/protocol --junitxml=reports/ursula.xml
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: ./reports/pytest/
|
path: reports
|
||||||
|
|
||||||
mypy:
|
mypy:
|
||||||
<<: *python_36_base
|
<<: *python_36_base
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
[pytest]
|
[pytest]
|
||||||
addopts = -v --runslow --cov=nucypher --junitxml=./reports/pytest/
|
addopts = -v --runslow --cov=nucypher --junitxml=./reports/pytest-results.xml
|
||||||
|
|
Loading…
Reference in New Issue