aboutsummaryrefslogtreecommitdiff
path: root/sbt-bridge/sbt-test/discovery/test-discovery/test
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2016-12-01 23:54:39 +0100
committerGuillaume Martres <smarter@ubuntu.com>2016-12-02 00:58:34 +0100
commit9411539eac8aaa8f052b7e6701d5d1d2b833d409 (patch)
treeed3176c9d3db3b21209866b2372cfadb2ae6b06e /sbt-bridge/sbt-test/discovery/test-discovery/test
parent3d0accd7e172303671be23a2be1d827fc9b4dc6e (diff)
downloaddotty-9411539eac8aaa8f052b7e6701d5d1d2b833d409.tar.gz
dotty-9411539eac8aaa8f052b7e6701d5d1d2b833d409.tar.bz2
dotty-9411539eac8aaa8f052b7e6701d5d1d2b833d409.zip
Fix #1741: sbt.ExtractAPI: extract annotations
This is necessary for correct incremental recompilation but is also used by sbt to find tests to run (for junit they should be annotated @org.junit.Test). I added an sbt scripted test to verify that JUnit now works, to run it: $ sbt > scripted discovery/test-discovery
Diffstat (limited to 'sbt-bridge/sbt-test/discovery/test-discovery/test')
-rw-r--r--sbt-bridge/sbt-test/discovery/test-discovery/test8
1 files changed, 8 insertions, 0 deletions
diff --git a/sbt-bridge/sbt-test/discovery/test-discovery/test b/sbt-bridge/sbt-test/discovery/test-discovery/test
new file mode 100644
index 000000000..2e035dee8
--- /dev/null
+++ b/sbt-bridge/sbt-test/discovery/test-discovery/test
@@ -0,0 +1,8 @@
+> compile
+# Intentionally failing test
+-> test
+# Fix the bug!
+$ copy-file changes/A2.scala src/main/scala/A.scala
+> compile
+# The test should pass now
+> test