mirror of
https://github.com/google/nomulus.git
synced 2025-06-26 06:14:54 +02:00
Delete screenshots folder in fragile test first (#735)
It is not clear to me why this folder is deleted in standardTest first, presumably this is done when the webdriver tests were part of standardTest? Also not clear to me is why screenshots are only deleted in presubmits but not locally. At least on my workstation standardTest runs after fragileTest, just like in kokoro, so it should have deleted the screenshots folder, but it didn't. Regardless, the correct thing to do is to delete this folder first in fragileTest so that it doesn't interfere with the results.
This commit is contained in:
parent
d290b82566
commit
0e6bc91861
1 changed files with 4 additions and 4 deletions
|
@ -705,6 +705,10 @@ task fragileTest(type: FilteringTest) {
|
|||
|
||||
// Run every test class in a freshly started process.
|
||||
forkEvery 1
|
||||
|
||||
doFirst {
|
||||
new File(screenshotsDir).deleteDir()
|
||||
}
|
||||
}
|
||||
|
||||
task outcastTest(type: FilteringTest) {
|
||||
|
@ -897,10 +901,6 @@ task standardTest(type: FilteringTest) {
|
|||
|
||||
systemProperty 'test.projectRoot', rootProject.projectRootDir
|
||||
systemProperty 'test.resourcesDir', resourcesDir
|
||||
|
||||
doFirst {
|
||||
new File(screenshotsDir).deleteDir()
|
||||
}
|
||||
}
|
||||
|
||||
test {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue