diff --git a/.travis.yml b/.travis.yml index 0f1c439e4dadd798667a22d1e4ab497198ad4665..25535185d226b7ff43df8672970e6ad85fd0b19a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,13 +5,15 @@ before_script: - chmod +x ./cc-test-reporter - ./cc-test-reporter before-build - pip install -r requirements.txt - - pip install nose2 mock coverage nose2[coverage_plugin] cython[coverage] + - pip install pytest mock coverage cython[coverage] pytest-cov + - DEBUG=1 python setup.py install + - rm -rf minijson jobs: include: - stage: test python: "3.8" script: - - DEBUG=1 python setup.py test + - DEBUG=1 pytest --cov=minijson after_script: - coverage xml - ./cc-test-reporter after-build -t coverage.py --exit-code ${TRAVIS_TEST_RESULT} diff --git a/setup.py b/setup.py index 9b9e4e74e4e7d88b26c790da165ffea244626b55..e1cd7a44afd35ca21e6a1dd3120f75823974a729 100644 --- a/setup.py +++ b/setup.py @@ -31,9 +31,5 @@ setup(version='1.7', **multi_kwargs), ], compiler_directives=directives, **build_kwargs), python_requires='!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*', - tests_require=[ - "nose2", "mock", "coverage", "nose2[coverage_plugin]" - ], - test_suite='nose2.collector.collector', zip_safe=False )