You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to setup coveralls for pretty simple flask web app.
UT is done with coverage / unittest.
After the successful built (with TravisCI), coveralls command shows below error:
Traceback (most recent call last):
File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "D:\Documents\EPAM\Pet_projects\Python EPAM stream\venv\Scripts\coveralls.exe_main.py", line 7, in
File "D:\Documents\EPAM\Pet_projects\Python EPAM stream\venv\lib\site-packages\coveralls_init.py", line 93, in wear
source_files=coverage.coveralls(args.base_dir, ignore_errors=args.ignore_errors, merge_file=args.merge_file),
File "D:\Documents\EPAM\Pet_projects\Python EPAM stream\venv\lib\site-packages\coveralls\control.py", line 7, in coveralls
reporter = CoverallsReporter(self, self.config)
TypeError: CoverallsReporter() takes no arguments
Travis.yml script:
language: python
python:
"3.9" # current default Python on Travis CI
install:
pip install -r requirements.txt
script:
pylint --exit-zero manifestapp
coverage run -m unittest tests
coverage report
after_success:
coveralls
The text was updated successfully, but these errors were encountered:
I encountered this error as well on xtools. The issue is that python-coveralls depends on coverage without specifying any version, so if coverage introduces breaking changes, like it did in the release 5.0.0 that removed the Reporter class, everything breaks.
Until this library is fixed, the solution is to downgrade coverage to 4.5.4. If you use pytest-cov, you’ll have to downgrade it as well to the last version that supported coverage<5.0, i.e. 2.10.1.
Dear Sirs,
Trying to setup coveralls for pretty simple flask web app.
UT is done with coverage / unittest.
After the successful built (with TravisCI), coveralls command shows below error:
Traceback (most recent call last):
File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "D:\Documents\EPAM\Pet_projects\Python EPAM stream\venv\Scripts\coveralls.exe_main.py", line 7, in
File "D:\Documents\EPAM\Pet_projects\Python EPAM stream\venv\lib\site-packages\coveralls_init.py", line 93, in wear
source_files=coverage.coveralls(args.base_dir, ignore_errors=args.ignore_errors, merge_file=args.merge_file),
File "D:\Documents\EPAM\Pet_projects\Python EPAM stream\venv\lib\site-packages\coveralls\control.py", line 7, in coveralls
reporter = CoverallsReporter(self, self.config)
TypeError: CoverallsReporter() takes no arguments
Travis.yml script:
language: python
python:
install:
script:
after_success:
The text was updated successfully, but these errors were encountered: