Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] 项目目录外执行异常,需优化 #1

Closed
clgwlg opened this issue Jan 18, 2022 · 1 comment
Closed

[Feature] 项目目录外执行异常,需优化 #1

clgwlg opened this issue Jan 18, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@clgwlg
Copy link
Contributor

clgwlg commented Jan 18, 2022

Context

  • 项目名:my_first_project
  • 执行目录:/Users/test
  • 执行命令:flybirds run --path my_first_project/features/test/android/base_en_click.feature

错误日志

2022-01-11 10:46:26,985 - flybirds_log - INFO - find extend pkg
Exception AttributeError: 'DeviceConfig' object has no attribute 'platform'
Traceback (most recent call last):
File "/usr/local/bin/behave", line 11, in
load_entry_point('behave==1.2.6', 'console_scripts', 'behave')()
File "/usr/local/lib/python3.7/site-packages/behave/main.py", line 183, in main
return run_behave(config)

优化点

  • 增加执行前环境检查
  • 有更明确的异常信息和错误提示
  • 支持某些场景下项目目录的自动检测
@clgwlg clgwlg assigned clgwlg and xiaoxiaocaiiao and unassigned xiaoxiaocaiiao and clgwlg Jan 18, 2022
@clgwlg clgwlg added the enhancement New feature or request label Jan 18, 2022
@xiaoxiaocaiiao
Copy link
Collaborator

已经添加异常检测

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants