最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to set a default allure-results directory for Allure CLI? - Stack Overflow

programmeradmin2浏览0评论

I'm using the Allure Report CLI tools for reporting results from Behave (Python). We use the Jenkins integration to run our tests on nightly builds, etc. The integration works fine, no problems there! This question is about smoothing out the experience of developing tests locally. I'm using Windows + WSL2, and VSCode.

We generate our test reports in /tmp/allure-report/, but when I'm working locally, I run my code from /workspaces/repo/folder1/folder2/. When I want to generate my report manually, I have to do: allure generate /tmp/allure-results

From looking at the CLI options, there are "configs" and "profiles" but I don't see any documentation online about how they work.

Is there a way I can set the default allure-results directory, so that I don't have to manually specify /tmp/allure-results?

Ideally I'd love to set something in my pyproject.toml file or behave.ini files.

发布评论

评论列表(0)

  1. 暂无评论