-
-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
71 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,23 @@ | ||
package mill.testkit | ||
|
||
abstract class UtestIntegrationTestSuite extends utest.TestSuite with IntegrationTestSuite { | ||
protected def workspaceSourcePath: os.Path = os.Path(sys.env("MILL_TEST_RESOURCE_FOLDER")) | ||
protected def clientServerMode: Boolean = sys.env("MILL_INTEGRATION_SERVER_MODE").toBoolean | ||
protected def millExecutable: os.Path = | ||
os.Path(System.getenv("MILL_INTEGRATION_LAUNCHER"), os.pwd) | ||
import os.Path | ||
|
||
trait IntegrationTestSuite { | ||
protected def workspaceSourcePath: os.Path | ||
protected def clientServerMode: Boolean | ||
|
||
protected def millExecutable: Path | ||
|
||
def debugLog: Boolean = false | ||
def integrationTest[T](t: IntegrationTester => T): T = { | ||
val tester = new IntegrationTester( | ||
clientServerMode, | ||
workspaceSourcePath, | ||
millExecutable, | ||
debugLog, | ||
workspacePath = os.pwd | ||
) | ||
try t(tester) | ||
finally tester.close() | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package mill.testkit | ||
|
||
abstract class UtestIntegrationTestSuite extends utest.TestSuite with IntegrationTestSuite { | ||
protected def workspaceSourcePath: os.Path = os.Path(sys.env("MILL_TEST_RESOURCE_FOLDER")) | ||
protected def clientServerMode: Boolean = sys.env("MILL_INTEGRATION_SERVER_MODE").toBoolean | ||
protected def millExecutable: os.Path = | ||
os.Path(System.getenv("MILL_INTEGRATION_LAUNCHER"), os.pwd) | ||
} |