aboutsummaryrefslogtreecommitdiff
path: root/test/dotty/partest/DPDirectCompiler.scala
Commit message (Collapse)AuthorAgeFilesLines
* Better compiler entry pointsGuillaume Martres2016-02-041-8/+2
| | | | | | | | | - Document the entry points - It is now possible to set a custom reporter without using a custom context - Use `null` for optional arguments to make it easier to run the compiler using reflection or from Java. - DPDirectCompiler does not use a custom context anymore
* Driver: properly use root Context passed as argumentGuillaume Martres2016-02-041-4/+2
| | | | | | | | | | | | | | | Also CompilerTest no longer runs the compiler with the context DottyTest#ctx. Previously, we got away with this because Compiler#process ignored it and created a new Context, but this commit fixes this, and it is now very important that we use a different context for every test we compile. Since DottyTest#ctx was the only part of DottyTest we used, CompilerTest no longer extends DottyTest to make sure that we do not use it accidentally. If we want to use DottyTest as a base class for tests again, we will have to remove its implicit Context field first. Also do not try to initialize the definitions in the context used by partest, this is not necessary.
* Remove useless options in testsGuillaume Martres2016-02-041-3/+1
| | | | | | | | - Removed "-Xprint-types", it is only rarely needed and makes it very hard to read trees, enable it yourself if you need it. - Removed "-Ylog:<some", this does not seem to have any effect currently. - Removed "-pagewidth 90", this is overloaded in tests.scala to 160 anyway.
* ConsoleReporter: remove unused argument ctxGuillaume Martres2016-02-041-1/+1
|
* partest: Print stack traces of swallowed exceptionsGuillaume Martres2016-01-151-1/+4
|
* Turn global vars into valsMartin Odersky2015-07-061-1/+1
| | | | Some globally accessible vars were never updated; should be vals.
* Fix rebase breakage around reporters.Martin Odersky2015-06-291-2/+4
| | | | | Reporters are part of the context which is passed into a compiler run. Passing them as a separate option is an unnecessary complication.
* Partest 3/3: Proper compiler output redirectionvsalvis2015-06-241-6/+13
|
* Partest for Dotty with pos tests and neg tests with error countvsalvis2015-04-171-0/+34