aboutsummaryrefslogtreecommitdiff
path: root/test/test/DottyTest.scala
Commit message (Collapse)AuthorAgeFilesLines
* Add tests for classes and traitsFelix Mulder2016-04-071-2/+1
|
* Store the JSDefinitions in a custom platform SJSPlatform.Sébastien Doeraene2016-03-011-1/+1
| | | | | | This required the ability to instantiate a different `Platform` depending on settings, which, in turn, required to defer the initialization of `ContextBase.platform`.
* Remove useless options in testsGuillaume Martres2016-02-041-11/+0
| | | | | | | | - 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.
* Avoid print-types being on by default in testingMartin Odersky2015-03-181-1/+1
|
* Disable context escape detectionMartin Odersky2014-12-191-2/+3
| | | | | | | | | I get very frequent build failures due to the mutual Scala<->Java dependency. It builds for a long time, then decides that getCtx overrides nothing. The only way to fix is another clean build. Total time lost: >5 minutes. These happened occasionally before but have become much more frequent under ScalaIDe4.0, to the point where this becomes a major drag on productity. Context escape detection is nice but if it stops us getting work done, not worth the effort.
* Rename in Phase: name -> phaseNameMartin Odersky2014-08-181-2/+2
| | | | | Most transformations are subclasses of phase. Having a generic name like `name` in scope everywhere is therefore very risky.
* Phases in tests now also have valid periods.Dmitry Petrashko2014-07-161-0/+1
|
* Context escape detection.Dmitry Petrashko2014-04-091-2/+6
| | | | | | | During creation of each of DottyTests context is stolen from test and a WeakReference for it is created. After running all tests references are examined to detect if any of them has leaked.
* Reduce verbosity of logs.Dmitry Petrashko2014-04-021-3/+2
| | | | | | | | | | We are already over limit on output size imposed by travis that is shown in webpage, if we'll continue to add tests will be soon over limit even to run builds. This commit disables printing of classpath, and removes printlns in several places. In order for ShowClassTests to print info as is was printing previously, please set "test.ShowClassTests.verbose" property.
* Rename methods on FreshContext to make mutation obviousDmitry Petrashko2014-03-271-5/+5
| | | | And avoid name clashes
* Allow MiniPhase to be DenotTransformerDmitry Petrashko2014-03-191-6/+7
| | | | | | All MiniPhases now as are full-fledged phases, and are given their own periods and can register DenotTransformers. MiniPhases belonging to same group(list) will be squashed to single phase.
* For some tests context is required, it should be passed to checker phase.Dmitry Petrashko2014-03-031-18/+27
|
* Infrastructure for per-phase tests, with inline source as a string.Dmitry Petrashko2014-03-011-0/+25
|
* Make Definitions load all symbols in current runId.Martin Odersky2014-02-101-1/+1
|
* Changed Throwing reporting scheme.Martin Odersky2013-09-231-0/+3
| | | | | Changed ThrowingReporter to use an underlying reporter for issuing messages below ERROR. Made ThrowingReporters the default in initialContext.
* Added main runner and driver.Martin Odersky2013-08-121-1/+1
| | | | Left dummies for Compiler and Run.
* Redesign of trees.Martin Odersky2013-07-271-1/+0
| | | | | | 1) Trees are now contravariant. 2) All creation ops, transformers, copiers are pushed into Instance. 3) Still to do: integrate TreeMappers and tpd.TreeTransformers.
* Refactored Printers, Showable and Text into new package dotc.printing.Martin Odersky2013-05-141-1/+1
|
* New parser testsMartin Odersky2013-05-131-1/+0
| | | | | | | | | | | | … which take some statistics. So far (on a Macbook pro): code base tested = scala/src + dotty/src lines: 290'000 nodes created: ~1'004'000 parse times + tree building times after 10 iterations: 700-750ms, i.e. ~ 400Klines/sec full transform of 1M nodes without tree copying: ~50ms full transform with full copying: 150-200ms
* Early initialization of keywords to save space.Martin Odersky2013-05-121-0/+4
|
* ShowClass tests now run both with -Ydebug and without.Martin Odersky2013-04-091-1/+1
|
* Refining refined printers.Martin Odersky2013-04-091-2/+2
| | | | Various refinements to make output look more like source.
* Changes to pre complete declsMartin Odersky2013-04-071-0/+1
| | | | | | Dropped preCompleteDecls for a general refactoring that makes decls available after a class is loaded and before it is completed. Also some other fixes to classloading problems.
* More tests in worksheets.Martin Odersky2013-04-051-2/+2
|
* Refactored test frameworkMartin Odersky2013-04-051-0/+32
Moves worksheets to test. Factored out class DottyTest and made it usable from worksheets. Added worksheet test for signatures.