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

reports.resultDir doesn't work #189

Open
terjokhin opened this issue Sep 27, 2017 · 3 comments
Open

reports.resultDir doesn't work #189

terjokhin opened this issue Sep 27, 2017 · 3 comments

Comments

@terjokhin
Copy link

Hello.

I'm trying to config offline reports for my project, and I decided to go with separate reportDir for each kind of bench. Here is some obstacle that I have to face. Scalameter isn't using directory from reports.resultDir parameter of config section rather than default one (target/benchmarks).

Here is an example project https://github.com/daron666/scala_meter_result_dir_nor_working

I've configured scalameter to use target/bench instead of target/banchmarks, but offline report is being saved into default directory anyway.

@ghost
Copy link

ghost commented Sep 27, 2017

The resultDir property is only considered at the top-level. You would need to separate your benchmarks into multiple Bench classes, each using a different resultDir.

@terjokhin
Copy link
Author

@cantor-chron That how it's done, separate classes with with separate resultDir, despite this all tests are being generated into default directory.

@glasperfan
Copy link

glasperfan commented Nov 14, 2017

Also experiencing this issue, but it seems to be by design. According to the 0.7+ documentation:

The reports.resultDir is a global test parameter, so it can only be set when you start the tests. Unlike the resulting directory, other test parameters can be configured hierarchically and selectively for each test, rather than once globally.

Only by passing resultDir via the command line (per the documentation) was I able to update the currentContext for the HTML reporter.

test-only [suite] -CresultDir target/bench

val resultdir = currentContext(reports.resultDir)

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

No branches or pull requests

2 participants