Dra
09/27/2021, 5:24 PMtesting
part saying this :
> Failed to execute all tests:
:browserTest: java.lang.IllegalStateException: Errors occurred during launch of browser for testing.
- Opera
- Firefox
- Chromium
Please make sure that you have installed browsers.
Or change it via
browser {
testTask {
useKarma {
useFirefox()
useChrome()
useSafari()
}
}
}
I know that the issue is related to the fact that it can't find firefox / chromium / opera... But how can I make it so tests are run correctly when deploying without having to remove the whole UI related part in my tests ?Robert Jaros
09/27/2021, 5:33 PMuseKarma {
useChromeHeadless()
}
Dra
09/27/2021, 5:39 PMChromeHeadless
.... Can I ? Aren't Firefox / Safari too different ?Big Chungus
09/27/2021, 5:44 PMDra
09/27/2021, 5:54 PMephemient
09/27/2021, 10:57 PMif (providers.environmentVariable("CI").forUseAtConfigurationTime().isPresent()) useChromeHeadless() else { useFirefox(); useChrome(); useSafari() }