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] Add "failOnEmptyTestPage" option #228

Merged
merged 14 commits into from
Sep 2, 2020
Merged

Conversation

shahzeb79
Copy link
Contributor

#226

Hi colleagues,
In S4 if some team has qunit and opa tests defined and loaded but OPA tests contains no tests or assertion, than runner should fail with error of "Suite with no tests should be removed". This happened when someone comment out testfiles in Alljourneys and runner still loads Alljourney but than reports no tests. In this case we see low coverages and team complains about it. So we want to configure runner so that we centrally can define some parameter in karma conf file to enable or disable failure in case of no tests.

Thanks

@CLAassistant
Copy link

CLAassistant commented Aug 25, 2020

CLA assistant check
All committers have signed the CLA.

@shahzeb79
Copy link
Contributor Author

@matz3 can you review this change?

matz3
matz3 previously requested changes Aug 27, 2020
lib/client/browser.js Outdated Show resolved Hide resolved
lib/framework.js Outdated Show resolved Hide resolved
test/unit/framework.test.js Outdated Show resolved Hide resolved
@matz3 matz3 self-assigned this Aug 27, 2020
@matz3
Copy link
Member

matz3 commented Aug 31, 2020

@shahzeb79 thanks for the changes.
I took some time to do final round-offs and add tests/docs.

Main change is that now an error is also logged even when to option is not enabled.
This should give users a hint that something is not right and that the option should be enabled.

With v3.0 we should enable this option by default.

@matz3 matz3 dismissed their stale review August 31, 2020 10:36

I've also pushed changes

@shahzeb79
Copy link
Contributor Author

@matz3 thanks alot for your changes. Will it be available in v2.2.2 or some else?

@matz3
Copy link
Member

matz3 commented Sep 1, 2020

v2.3.0, as it's a new feature. We'll do a release once this PR is reviewed and merged.

@matz3 matz3 changed the title Fail karma runner when testsuite is defined but contain no tests or assertions [FEATURE] Add "failOnEmptyTestPage" option Sep 2, 2020
@matz3 matz3 merged commit 6b9648b into SAP:master Sep 2, 2020
matz3 added a commit that referenced this pull request Sep 2, 2020
PR #228 did not fail because the SauceLabs API key (or any other secure
variable) is not available in builds that are triggered from a fork.
matz3 added a commit that referenced this pull request Sep 2, 2020
PR #228 did not fail because the SauceLabs API key (or any other secure
variable) is not available in builds that are triggered from a fork.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants