aboutsummaryrefslogtreecommitdiff
path: root/test/dotty
Commit message (Collapse)AuthorAgeFilesLines
* Move compiler and compiler tests to compiler dirFelix Mulder2016-11-2236-4433/+0
|
* Move (most) unit tests to correct locationsFelix Mulder2016-11-2231-2/+3884
| | | | | | Should still perhaps move `test/dotc/tests.scala` and the others in the same directory to a better more cohesive location. Would like to delete the worksheets as well - but maybe they hold sentimental value...
* Move sjs, make sure that partest compiles everything in dirsFelix Mulder2016-11-221-66/+36
|
* Create dotty-lib.jar for run testsFelix Mulder2016-11-221-22/+91
|
* Remove compiler when running applications via dotrFelix Mulder2016-11-221-1/+5
|
* Make sure all `Message` creation is by nameFelix Mulder2016-11-141-2/+2
|
* Make sure messages are lazily evaluated until `report` in `Reporter`Felix Mulder2016-11-101-0/+37
|
* Change `ClassicReporter` to `TestReporter` in test sourcesFelix Mulder2016-11-091-0/+52
|
* partest: put more stuff on javac classpathGuillaume Martres2016-07-271-0/+56
| | | | | | | | Some java tests require the scala-library to be present on the classpath, this fixes tests/pos/java-interop/{t1186, t1235, t1254, t1642}. Also correctly redirect the output of javac so that it will be displayed by partest --verbose
* partest: Enable separate compilation and javac testsGuillaume Martres2016-07-271-26/+0
| | | | | | | | | | | | partest can separately compile files based on their suffix (_1, _2, ...), it turns out that this feature was never enabled in the dotty version of partest and no one noticed (it prints warnings in ./tests/partest-generated/gen.log which no one reads), tests with *.java files should be compiled both with javac and dotty, but compiling with javac was also disabled. Enabling this revealed some latent bugs that will be fixed in the next few commits.
* partest: run tests with -Xms64M -Xmx1024M instead of JVM defaultsGuillaume Martres2016-02-112-2/+11
| | | | | | This is the same settings that scalac uses, this should help use avoid using too much memory (the default on 64 bits Linux seems to be -Xms248M -Xmx3938M).
* 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
|
* Make partest run in parallelMartin Odersky2015-07-061-1/+1
|
* 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-243-26/+29
|
* Fix --show-diff for partestvsalvis2015-05-271-1/+20
|
* Update-check option for partest, added "do not edit" headervsalvis2015-05-221-5/+49
|
* Less verbose partest with compiler output redirected, better --verbose outputvsalvis2015-05-222-31/+35
|
* Partest command line options (same as scala) useable from sbtvsalvis2015-05-131-5/+8
|
* Better documentation for partest dottyJar optionvsalvis2015-05-121-1/+3
|
* Run tests for partestvsalvis2015-05-121-7/+32
|
* Partest for Dotty with pos tests and neg tests with error countvsalvis2015-04-173-0/+255
|
* Test case for TreeInfo#defPathJason Zaugg2014-03-161-0/+30
I'm about to refactor that method in terms of a TreeAccumulator. Note that I've packaged the test case in `dotty.tools.dotc.ast` I believe this is the best approach for organizing unit tests: the import tax is minimized, and use of relative imports is made less fragile by avoiding creating new packages to test code. I'll reorganize the other unit tests like this if others agree.