Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 237ab1fd8cd18e31c8e47b4751a8a6202f604c71 (plain) (tree)
1
2
3
4
5
6
7



      


                                                                                  









                                                                        





                                                                                    



                                                                    





                                                                              

About:
------

This plugin contains automated tests for the User Assistance component of eclipse,
except help, which is in org.eclipse.help.tests. This includes cheatsheets and
intro (welcome).

Running the tests:
------------------

- Right click on org.eclipse.ua.tests.AllTests in the base source folder
- Select Run As -> JUnit Plugin Test

Updating model tests:
---------------------

There are several sets of parser tests which load a model in memory, then serialize
to text. Then it compares with a pre-generated serialization that is known to be
correct (the _expected.txt) files. If changes are made to the model, both the
serializer and the saved results must be updated. There are special JUnit tests that
are not part of the suites that are used to regenerate the result files to test on,
e.g:

- org.eclipse.ua.tests.intro.util.IntroModelSerializerTest
- org.eclipse.ua.tests.cheatsheet.util.CheatSheetModelSerializerTest

To regenerate the results, simply run the serializer tests individually, then 
refresh your workspace (select folder, hit F5 - it changes the files in the
filesystem).

Note: It is done as a test because we want to ensure that the environment is
identical for the serializer and the test.

Back to the top