Skip to content

Commit 1236a3f

Browse files
committed
Merge branch 'feature-dotty-modules' of https://github.com/cheeseng/scalatest into cheeseng-feature-dotty-modules
2 parents 6ac00d4 + 33dd010 commit 1236a3f

File tree

17 files changed

+1175
-241
lines changed

17 files changed

+1175
-241
lines changed

build.sbt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,17 @@ lazy val scalatestDiagramsNative = ScalatestBuild.scalatestDiagramsNative
8484
lazy val scalatestMatchersCoreNative = ScalatestBuild.scalatestMatchersCoreNative
8585
lazy val scalatestShouldMatchersNative = ScalatestBuild.scalatestShouldMatchersNative
8686
lazy val scalatestMustMatchersNative = ScalatestBuild.scalatestMustMatchersNative
87-
lazy val scalatestModulesNative = ScalatestBuild.scalatestModulesNative
87+
lazy val scalatestModulesNative = ScalatestBuild.scalatestModulesNative
88+
lazy val scalatestCoreDotty = ScalatestBuild.scalatestCoreDotty
89+
lazy val scalatestFeatureSpecDotty = ScalatestBuild.scalatestFeatureSpecDotty
90+
lazy val scalatestFlatSpecDotty = ScalatestBuild.scalatestFlatSpecDotty
91+
lazy val scalatestFreeSpecDotty = ScalatestBuild.scalatestFreeSpecDotty
92+
lazy val scalatestFunSuiteDotty = ScalatestBuild.scalatestFunSuiteDotty
93+
lazy val scalatestPropSpecDotty = ScalatestBuild.scalatestPropSpecDotty
94+
lazy val scalatestRefSpecDotty = ScalatestBuild.scalatestRefSpecDotty
95+
lazy val scalatestWordSpecDotty = ScalatestBuild.scalatestWordSpecDotty
96+
lazy val scalatestDiagramsDotty = ScalatestBuild.scalatestDiagramsDotty
97+
lazy val scalatestMatchersCoreDotty = ScalatestBuild.scalatestMatchersCoreDotty
98+
lazy val scalatestShouldMatchersDotty = ScalatestBuild.scalatestShouldMatchersDotty
99+
lazy val scalatestMustMatchersDotty = ScalatestBuild.scalatestMustMatchersDotty
100+
lazy val scalatestModulesDotty = ScalatestBuild.scalatestModulesDotty
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright 2001-2018 Artima, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package org.scalatest
17+
18+
/**
19+
* Classes and traits supporting ScalaTest's "fixture" style traits, which
20+
* allow you to pass fixture objects into tests.
21+
*
22+
* This package is released as part of the `scalatest-core` module.
23+
*/
24+
package object fixture
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
/*
2+
* Copyright 2001-2013 Artima, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package org
17+
18+
/**
19+
* ScalaTest's main traits, classes, and other members, including members supporting ScalaTest's DSL for the Scala interpreter.
20+
*/
21+
package object scalatest {
22+
23+
// SKIP-SCALATESTJS,NATIVE-START
24+
private val defaultShell = ShellImpl()
25+
26+
/**
27+
* Returns a copy of this <code>Shell</code> with <code>colorPassed</code> configuration parameter set to <code>true</code>.
28+
*/
29+
lazy val color: Shell = defaultShell.color
30+
31+
/**
32+
* Returns a copy of this <code>Shell</code> with <code>durationsPassed</code> configuration parameter set to <code>true</code>.
33+
*/
34+
lazy val durations: Shell = defaultShell.durations
35+
36+
/**
37+
* Returns a copy of this <code>Shell</code> with <code>shortStacksPassed</code> configuration parameter set to <code>true</code>.
38+
*/
39+
lazy val shortstacks: Shell = defaultShell.shortstacks
40+
41+
/**
42+
* Returns a copy of this <code>Shell</code> with <code>fullStacksPassed</code> configuration parameter set to <code>true</code>.
43+
*/
44+
lazy val fullstacks: Shell = defaultShell.fullstacks
45+
46+
/**
47+
* Returns a copy of this <code>Shell</code> with <code>statsPassed</code> configuration parameter set to <code>true</code>.
48+
*/
49+
lazy val stats: Shell = defaultShell.stats
50+
51+
/**
52+
* Returns a copy of this <code>Shell</code> with <code>colorPassed</code> configuration parameter set to <code>false</code>.
53+
*/
54+
lazy val nocolor: Shell = defaultShell.nocolor
55+
56+
/**
57+
* Returns a copy of this <code>Shell</code> with <code>durationsPassed</code> configuration parameter set to <code>false</code>.
58+
*/
59+
lazy val nodurations: Shell = defaultShell.nodurations
60+
61+
/**
62+
* Returns a copy of this <code>Shell</code> with <code>shortStacksPassed</code> configuration parameter set to <code>false</code>.
63+
*/
64+
lazy val nostacks: Shell = defaultShell.nostacks
65+
66+
/**
67+
* Returns a copy of this <code>Shell</code> with <code>statsPassed</code> configuration parameter set to <code>false</code>.
68+
*/
69+
lazy val nostats: Shell = defaultShell.nostats
70+
// SKIP-SCALATESTJS,NATIVE-END
71+
72+
/**
73+
* The version number of ScalaTest.
74+
*
75+
* @return the ScalaTest version number.
76+
*/
77+
val ScalaTestVersion: String = ScalaTestVersions.ScalaTestVersion
78+
79+
private[scalatest] type Expectation = Fact
80+
81+
/**
82+
* Marker trait that serves as the result type of <code>assert</code>, <code>assume</code>, and <code>pending</code> methods of
83+
* trait <code>Assertions</code>, which return its only instance, the <code>Succeeded</code> singleton, or throw
84+
* an exception that indicates a failed, canceled, or pending test.
85+
*/
86+
type Assertion = compatible.Assertion
87+
}

project/BuildCommons.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ trait BuildCommons {
1313

1414
def rootProject: Project
1515

16+
def scalatestCompatible: Project
17+
1618
def scalaXmlDependency(theScalaVersion: String): Seq[ModuleID]
1719

1820
def scalatestLibraryDependencies: Seq[ModuleID]

0 commit comments

Comments
 (0)