mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 19:39:44 +08:00
change: remove sentry sdk
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
- generate reports/logs folder in current working directory
|
||||
- remove cli `--validate`
|
||||
- remove cli `--pretty`
|
||||
- remove sentry sdk
|
||||
|
||||
## 2.5.7 (2020-02-21)
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ import sys
|
||||
import unittest
|
||||
|
||||
from loguru import logger
|
||||
from sentry_sdk import capture_message
|
||||
|
||||
from httprunner import (__version__, exceptions, loader, parser,
|
||||
report, runner, utils)
|
||||
@@ -209,7 +208,6 @@ class HttpRunner(object):
|
||||
def run_tests(self, tests_mapping):
|
||||
""" run testcase/testsuite data
|
||||
"""
|
||||
capture_message("start to run tests")
|
||||
self.test_path = tests_mapping.get("project_mapping", {}).get("test_path", "")
|
||||
|
||||
if self.save_tests:
|
||||
|
||||
@@ -2,15 +2,12 @@ import argparse
|
||||
import os
|
||||
import sys
|
||||
|
||||
import sentry_sdk
|
||||
from loguru import logger
|
||||
|
||||
from httprunner import __description__, __version__
|
||||
from httprunner.api import HttpRunner
|
||||
from httprunner.report import gen_html_report
|
||||
from httprunner.utils import create_scaffold, init_sentry_sdk
|
||||
|
||||
init_sentry_sdk()
|
||||
from httprunner.utils import create_scaffold
|
||||
|
||||
|
||||
def main():
|
||||
@@ -88,7 +85,6 @@ def main():
|
||||
err_code |= (0 if summary and summary["success"] else 1)
|
||||
except Exception as ex:
|
||||
logger.error(f"!!!!!!!!!! exception stage: {runner.exception_stage} !!!!!!!!!!\n{str(ex)}")
|
||||
sentry_sdk.capture_exception(ex)
|
||||
err_code = 1
|
||||
|
||||
sys.exit(err_code)
|
||||
|
||||
@@ -21,9 +21,6 @@ import sys
|
||||
from loguru import logger
|
||||
|
||||
from httprunner import __version__
|
||||
from httprunner.utils import init_sentry_sdk
|
||||
|
||||
init_sentry_sdk()
|
||||
|
||||
|
||||
def parse_locustfile(file_path):
|
||||
|
||||
@@ -7,28 +7,16 @@ import itertools
|
||||
import json
|
||||
import os.path
|
||||
import re
|
||||
import uuid
|
||||
from typing import Union
|
||||
|
||||
import sentry_sdk
|
||||
from loguru import logger
|
||||
|
||||
from httprunner import exceptions, __version__
|
||||
from httprunner import exceptions
|
||||
from httprunner.exceptions import ParamsError
|
||||
|
||||
absolute_http_url_regexp = re.compile(r"^https?://", re.I)
|
||||
|
||||
|
||||
def init_sentry_sdk():
|
||||
sentry_sdk.init(
|
||||
dsn="https://cc6dd86fbe9f4e7fbd95248cfcff114d@sentry.io/1862849",
|
||||
release=f"httprunner@{__version__}"
|
||||
)
|
||||
|
||||
with sentry_sdk.configure_scope() as scope:
|
||||
scope.set_user({"id": uuid.getnode()})
|
||||
|
||||
|
||||
def set_os_environ(variables_mapping):
|
||||
""" set variables mapping to os.environ
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user