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

Improve build configuration DSL #61

Closed
bartoszmajsak opened this Issue Jul 14, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@bartoszmajsak
Member

bartoszmajsak commented Jul 14, 2017

Currently in order to configure embedded build we use following DSL

final List<TestResult> actualTestResults = project
            .buildOptions()
                .quiet(false)
            .configure()
            .build();

by flipping it around it would become more natural to use while writing the tests

final List<TestResult> actualTestResults = project
            .build().
                .options()
                    .quiet(false)
                .configure()
            .run()

Where run() becomes a terminal method. In addition project.build().run(true) would run the build with the log enabled.

Pending on #57 as there are several improvements around test-bed in this work which are not yet merged with master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment