Skip to content

Commit

Permalink
invoke test-reports at the end of the CI run
Browse files Browse the repository at this point in the history
  • Loading branch information
Peng Cheng committed May 11, 2022
1 parent cffcc45 commit 763e894
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dev/CI/stage1-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ set -e
source "${FWDIR}/profiles/${1}/.common.sh"

"$FWDIR"/mvn-install.sh "${MVN_PROFILES[@]}" -Pbenchmark && \
exec "$FWDIR"/test.sh "${MVN_PROFILES[@]}" -Pbenchmark
"$FWDIR"/test.sh "${MVN_PROFILES[@]}" -Pbenchmark && \
"$FWDIR"/test-reports.sh
5 changes: 5 additions & 0 deletions dev/test-reports.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

FWDIR="$(cd "`dirname "$0"`"/..; pwd)"

find "${FWDIR}" -wholename "**/scalatest-report.txt" -exec cat {} \;
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,7 @@
<configuration>
<reportsDirectory>${project.build.directory}/test-results/scalatest</reportsDirectory>
<junitxml>.</junitxml>
<filereports>scalatest-report.txt</filereports>
<htmlreporters>${project.build.directory}/site/scalatest</htmlreporters>

<tagsToExclude>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ object WebDriverFactory {

//called from executors
override def _createImpl(session: Session, lifespan: Lifespan): CleanWebDriver = {
val self = new PhantomJSDriver(newCaps(session.spooky))
val caps = newCaps(session.spooky)
val self = new PhantomJSDriver(caps)
new CleanWebDriver(self, lifespan)
}
}
Expand Down

0 comments on commit 763e894

Please sign in to comment.