Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 57 lines (33 sloc) 2.283 kb
b03f83b Added README file
Iulian Dragos authored
1 Migration Manager for Scala
2 ==============
3
4 A tool for diagnosing and fixing migration problems for Scala libraries.
5
6 Build
7 -------
8
f24137b Updated README.md. Created new functional-tests. Updated sbt Build.sc…
Mirco authored
9 Using [the xsbt tool][xsbt].
b03f83b Added README file
Iulian Dragos authored
10
f24137b Updated README.md. Created new functional-tests. Updated sbt Build.sc…
Mirco authored
11 $ xsbt update compile
b03f83b Added README file
Iulian Dragos authored
12
13
05034d0 Updated Readme
Mirco authored
14 Make sure to build the sources of branch 0.9, installation notes can be found [here][xsbt].
f24137b Updated README.md. Created new functional-tests. Updated sbt Build.sc…
Mirco authored
15
16 [xsbt]: https://github.com/harrah/xsbt/tree/0.9
17
35fb00b update README with Launch section
Mirco authored
18
19 Launch MiMa
20 -------
21
22 $ xsbt run
23
f24137b Updated README.md. Created new functional-tests. Updated sbt Build.sc…
Mirco authored
24 Functional Tests
25 -------
26
05034d0 Updated Readme
Mirco authored
27 The 'functional-tests' folder contains a number of functional tests that exercise the Mima's error reporting functionality. All tests are executed by running the following command:
f24137b Updated README.md. Created new functional-tests. Updated sbt Build.sc…
Mirco authored
28
29 $ xsbt package
30
05034d0 Updated Readme
Mirco authored
31 If you prefer to run a single test, use the following command
f24137b Updated README.md. Created new functional-tests. Updated sbt Build.sc…
Mirco authored
32
33 $ xsbt <test-folder-name>/fun-tests
34
05034d0 Updated Readme
Mirco authored
35 To add a new functional test to the suite, create a new folder within 'functional-tests' directory with the following structure:
f24137b Updated README.md. Created new functional-tests. Updated sbt Build.sc…
Mirco authored
36
37 functional-tests
38 |
05034d0 Updated Readme
Mirco authored
39 | --> <your-new-test-folder> (folder for your new test)
f24137b Updated README.md. Created new functional-tests. Updated sbt Build.sc…
Mirco authored
40 |
41 |-----> problems.txt (the expected list of reported errors - 1 line per error)
42 |-----> v1 (folder containing sources @ version 1)
43 |-----> v2 (folder containing sources @ version 2)
44
05034d0 Updated Readme
Mirco authored
45 After doing that, `reload` if you are in a `xsbt` console session (if that makes nosense to you, it means you are fine and you can run the test as usual).
f24137b Updated README.md. Created new functional-tests. Updated sbt Build.sc…
Mirco authored
46
05034d0 Updated Readme
Mirco authored
47 Tests within the `functional-tests` folder should always pass. If you spot a bug (or missing feature), please create a test that exercise the problem and put it in the `functional-tests-exposing-bugs` directory, located in the project root. Once the test succeed, then you should move it into the `functional-tests` directory.
48
49 Note: The `problems.txt` is the test oracle. Expected errors are declared using the Mima's reporting output (i.e., the output of the tool and the expected errors should match perfectly). Admittedly, this coupling is an issue since the testing framework is highly coupled with the tool output used to report errors to the user. We should improve this and make the two independent. Until then, mind that by changing the output of the tool you will likely have to update some of the test oracles (i.e., problems.txt file).
f24137b Updated README.md. Created new functional-tests. Updated sbt Build.sc…
Mirco authored
50
51 Bugs and Feature requests
52 -------
53
54 Use the [Assembla project page][mima-assembla] for filing new tickets.
55
35fb00b update README with Launch section
Mirco authored
56 [mima-assembla]: https://www.assembla.com/spaces/mima/tickets
Something went wrong with that request. Please try again.