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

seperate profile for ci testing #699

Open
Tieske opened this issue Aug 30, 2022 · 0 comments
Open

seperate profile for ci testing #699

Tieske opened this issue Aug 30, 2022 · 0 comments

Comments

@Tieske
Copy link
Member

Tieske commented Aug 30, 2022

Based on discussion here: #698 (comment)

The idea would be that a user can specify 2 default profiles in the .busted file. One to use interactively, and the other one being the CI default.

If there is a .busted file, then the default profile is called default. If a profile is specified that doesn't exist, it will automatically fall back to the default one again.

So with the new Busted GHA, we could add a parameter for the action; the profile to use for testing. And then set that default to ci for example. Because if no ci profile is specified, it will still use default.

Trick would be that f the user specifies it's own profile eg. --run=unit, then that should be honoured in favor of the ci one. This can be done by specifying the ci one first on the commandline, since the last option wins.

So in the GHA we execute busted as;

busted --run={ci-profile-param} {user-options}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant