Skip to content

Commit 3f8ebf2

Browse files
committed
Merge branch '3.1.x' of git://github.com/scalatest/scalatest into experiment-scala-native-0.3.8
2 parents 4295caf + 123d551 commit 3f8ebf2

File tree

823 files changed

+57542
-44584
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

823 files changed

+57542
-44584
lines changed

.travis.yml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,11 @@ language: scala
22
scala:
33
- 2.10.7
44
- 2.11.12
5-
- 2.12.6
6-
# - 2.13.0-M2
7-
addons:
8-
apt:
9-
packages:
10-
- openjdk-6-jdk
5+
- 2.12.8
6+
- 2.13.0
117

128
jdk:
13-
- openjdk6
149
- oraclejdk8
15-
- oraclejdk9
1610

1711
dist: trusty
1812
sudo: true
@@ -51,23 +45,6 @@ env:
5145
- MODE=examples
5246
- MODE=examplesJS
5347

54-
matrix:
55-
exclude:
56-
- scala: "2.13.0-M2"
57-
jdk: openjdk6
58-
- scala: "2.13.0-M2"
59-
jdk: oraclejdk9
60-
- scala: "2.12.6"
61-
jdk: openjdk6
62-
- scala: "2.11.12"
63-
jdk: oraclejdk8
64-
- scala: "2.11.12"
65-
jdk: oraclejdk9
66-
- scala: "2.10.7"
67-
jdk: oraclejdk8
68-
- scala: "2.10.7"
69-
jdk: oraclejdk9
70-
7148
branches:
7249
only:
7350
- 3.0.x

README.md

Lines changed: 22 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Using ScalaTest
1313

1414
### Setup
1515

16-
Please visit [Download and Setup](http://www.scalatest.org/download) for download and setup instructions.
16+
Please visit [Download and Setup](https://www.scala-sbt.org/1.x/docs/Setup.html) for download and setup instructions.
1717

1818
### Quick Start
1919

@@ -27,14 +27,10 @@ Building ScalaTest
2727

2828
The followings are needed for building ScalaTest:
2929

30-
* JDK 6, 7, 8 or 9
31-
* [SBT 0.13.2](http://www.scala-sbt.org/0.13.2/docs/Getting-Started/Setup.html)
30+
* JDK 8
31+
* [SBT 1.2.8](https://www.scala-sbt.org/1.x/docs/Setup.html)
3232

33-
for JDK 6 or 7, use the following options in your SBT launch file:
34-
35-
SBT_OPTS="-server -Xms512M -Xmx3000M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:NewRatio=8 -XX:MaxPermSize=512M"
36-
37-
for JDK 8 or 9, use the following SBT options instead:
33+
use the following SBT options instead:
3834

3935
SBT_OPTS="-server -Xms512M -Xmx3000M -Xss1M -XX:+UseConcMarkSweepGC -XX:NewRatio=8"
4036

@@ -90,7 +86,7 @@ $ sbt -Dscalatest.skip.jdk.check=true ++2.11.12 scalatestTestNative/test:compile
9086
$ sbt -Dscalatest.skip.jdk.check=true ++2.11.12 scalatestTestNative/test
9187
```
9288

93-
### Building Exmaples
89+
### Building Examples
9490

9591
You can build examples project using this command:
9692

@@ -137,7 +133,7 @@ If you would like to export a particular private key into a separate GPG file, y
137133

138134
With Sonatype credentials and GPG file in place, you can now publish to Sonatype.
139135

140-
Before publishing any patch release, binary compatibility with previous version should be checked, using Java 6 (for Scala 2.10 and 2.11):
136+
Before publishing any patch release, binary compatibility with previous version should be checked:
141137

142138
$ sbt ++2.11.12 scalactic/package scalactic/mimaReportBinaryIssues
143139
$ sbt ++2.11.12 scalatest/package scalatest/mimaReportBinaryIssues
@@ -149,34 +145,26 @@ Before publishing any patch release, binary compatibility with previous version
149145
$ sbt ++2.10.7 scalacticJS/package scalacticJS/mimaReportBinaryIssues
150146
$ sbt ++2.10.7 scalatestJS/package scalatestJS/mimaReportBinaryIssues
151147

152-
and using Java 8 (for Scala 2.12 and 2.13):
148+
$ sbt ++2.12.8 scalactic/package scalactic/mimaReportBinaryIssues
149+
$ sbt ++2.12.8 scalatest/package scalatest/mimaReportBinaryIssues
150+
$ sbt ++2.12.8 scalacticJS/package scalacticJS/mimaReportBinaryIssues
151+
$ sbt ++2.12.8 scalatestJS/package scalatestJS/mimaReportBinaryIssues
153152

154-
$ sbt ++2.12.6 scalactic/package scalactic/mimaReportBinaryIssues
155-
$ sbt ++2.12.6 scalatest/package scalatest/mimaReportBinaryIssues
156-
$ sbt ++2.12.6 scalacticJS/package scalacticJS/mimaReportBinaryIssues
157-
$ sbt ++2.12.6 scalatestJS/package scalatestJS/mimaReportBinaryIssues
153+
$ sbt ++2.13.0 scalactic/package scalactic/mimaReportBinaryIssues
154+
$ sbt ++2.13.0 scalatest/package scalatest/mimaReportBinaryIssues
155+
$ sbt ++2.13.0 scalacticJS/package scalacticJS/mimaReportBinaryIssues
156+
$ sbt ++2.13.0 scalatestJS/package scalatestJS/mimaReportBinaryIssues
158157

159-
$ sbt ++2.13.0-M5 scalactic/package scalactic/mimaReportBinaryIssues
160-
$ sbt ++2.13.0-M5 scalatest/package scalatest/mimaReportBinaryIssues
161-
$ sbt ++2.13.0-M5 scalacticJS/package scalacticJS/mimaReportBinaryIssues
162-
$ sbt ++2.13.0-M5 scalatestJS/package scalatestJS/mimaReportBinaryIssues
158+
To publish scalactic, scalatest and scalatest-app use the following command:
163159

164-
To publish scalactic, scalatest and scalatest-app (for Scala and Scala-js, version 2.11 and 2.10, and make sure you're on Java 6) to Sonatype, use the following command:
165-
166-
$ export SCALAJS_VERSION=0.6.25
167-
$ sbt ++2.10.7 "project scalatestApp" clean publishSigned "project scalatestAppJS" clean publishSigned
160+
$ export SCALAJS_VERSION=0.6.28
161+
$ sbt ++2.10.7 clean publishSigned "project scalatestAppJS" clean publishSigned
168162
$ sbt ++2.11.12 clean publishSigned "project scalatestAppJS" clean publishSigned
163+
$ sbt ++2.12.8 "project scalatestApp" clean publishSigned "project scalatestAppJS" clean publishSigned
164+
$ sbt ++2.13.0 "project scalatestApp" clean publishSigned "project scalatestAppJS" clean publishSigned
165+
$ sbt ++2.11.12 "project scalatestAppNative" clean publishSigned
169166
$ export SCALAJS_VERSION=1.0.0-M3
170167
$ sbt ++2.11.12 "project scalatestAppJS" clean publishSigned
171-
172-
To publish scalactic, scalatest and scalatest-app (for Scala and Scala-js, version 2.12 and 2.13, and make sure you're on Java 8) to Sonatype, use the following command:
173-
174-
$ export SCALAJS_VERSION=0.6.25
175-
$ sbt ++2.12.7 "project scalatestApp" clean publishSigned "project scalatestAppJS" clean publishSigned
176-
$ sbt ++2.13.0-M5 "project scalatestApp" clean publishSigned "project scalatestAppJS" clean publishSigned
177-
$ export SCALAJS_VERSION=1.0.0-M3
178168
$ sbt ++2.12.6 "project scalatestAppJS" clean publishSigned
179-
180-
To publish scalactic, scalatest and scalatest-app (for Scala-native version 2.11, and make sure you're on Java 8) to Sonatype, use the following command:
181-
182-
`$ sbt -Dscalatest.skip.jdk.check=true ++2.11.12 "project scalatestAppNative" clean publishSigned`
169+
$ export SCALAJS_VERSION=1.0.0-M8
170+
$ sbt ++2.13.0 "project scalatestAppJS" clean publishSigned

build.sbt

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
lazy val commonTest = ScalatestBuild.commonTest
2+
lazy val commonTestJS = ScalatestBuild.commonTestJS
3+
lazy val commonTestNative = ScalatestBuild.commonTestNative
4+
lazy val commonTestDotty = ScalatestBuild.commonTestDotty
5+
lazy val scalacticMacro = ScalatestBuild.scalacticMacro
6+
lazy val scalacticMacroJS = ScalatestBuild.scalacticMacroJS
7+
lazy val scalacticMacroNative = ScalatestBuild.scalacticMacroNative
8+
lazy val scalactic = ScalatestBuild.scalactic
9+
lazy val scalacticJS = ScalatestBuild.scalacticJS
10+
lazy val scalacticNative = ScalatestBuild.scalacticNative
11+
lazy val scalacticDotty = ScalatestBuild.scalacticDotty
12+
lazy val scalacticTest = ScalatestBuild.scalacticTest
13+
lazy val scalacticTestJS = ScalatestBuild.scalacticTestJS
14+
lazy val scalacticTestNative = ScalatestBuild.scalacticTestNative
15+
lazy val scalacticTestDotty = ScalatestBuild.scalacticTestDotty
16+
lazy val scalatest = ScalatestBuild.scalatest
17+
lazy val scalatestTest = ScalatestBuild.scalatestTest
18+
lazy val scalatestJS = ScalatestBuild.scalatestJS
19+
lazy val scalatestNative = ScalatestBuild.scalatestNative
20+
lazy val scalatestDotty = ScalatestBuild.scalatestDotty
21+
lazy val scalatestTestJS = ScalatestBuild.scalatestTestJS
22+
lazy val scalatestTestNative = ScalatestBuild.scalatestTestNative
23+
lazy val scalatestTestDotty = ScalatestBuild.scalatestTestDotty
24+
lazy val scalatestApp = ScalatestBuild.scalatestApp
25+
lazy val scalatestAppJS = ScalatestBuild.scalatestAppJS
26+
lazy val scalatestAppNative = ScalatestBuild.scalatestAppNative
27+
lazy val genRegularTests1 = ScalatestBuild.genRegularTests1
28+
lazy val genRegularTests2 = ScalatestBuild.genRegularTests2
29+
lazy val genRegularTests3 = ScalatestBuild.genRegularTests3
30+
lazy val genRegularTests4 = ScalatestBuild.genRegularTests4
31+
lazy val genRegularTests5 = ScalatestBuild.genRegularTests5
32+
lazy val genMustMatchersTests1 = ScalatestBuild.genMustMatchersTests1
33+
lazy val genMustMatchersTests2 = ScalatestBuild.genMustMatchersTests2
34+
lazy val genMustMatchersTests3 = ScalatestBuild.genMustMatchersTests3
35+
lazy val genMustMatchersTests4 = ScalatestBuild.genMustMatchersTests4
36+
lazy val genGenTests = ScalatestBuild.genGenTests
37+
lazy val genTablesTests = ScalatestBuild.genTablesTests
38+
lazy val genInspectorsTests = ScalatestBuild.genInspectorsTests
39+
lazy val genInspectorsShorthandsTests1 = ScalatestBuild.genInspectorsShorthandsTests1
40+
lazy val genInspectorsShorthandsTests2 = ScalatestBuild.genInspectorsShorthandsTests2
41+
lazy val genTheyTests = ScalatestBuild.genTheyTests
42+
lazy val genContainTests1 = ScalatestBuild.genContainTests1
43+
lazy val genContainTests2 = ScalatestBuild.genContainTests2
44+
lazy val genSortedTests = ScalatestBuild.genSortedTests
45+
lazy val genLoneElementTests = ScalatestBuild.genLoneElementTests
46+
lazy val genEmptyTests = ScalatestBuild.genEmptyTests
47+
lazy val gentests = ScalatestBuild.gentests
48+
lazy val examples = ScalatestBuild.examples
49+
lazy val examplesJS = ScalatestBuild.examplesJS
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package org.scalatest
2+
3+
import scala.quoted._
4+
import scala.tasty._
5+
6+
private[scalatest] trait LineNumberHelper {
7+
inline def thisLineNumber = ${ LineNumberMacro.thisLineNumberImpl }
8+
}
9+
10+
object LineNumberMacro {
11+
def thisLineNumberImpl(implicit qctx: QuoteContext): Expr[Int] = {
12+
import qctx.tasty._
13+
rootPosition.startLine.toExpr
14+
}
15+
}

0 commit comments

Comments
 (0)