summaryrefslogtreecommitdiffstats
path: root/tests/auto/qdoc/generatedoutput
Commit message (Collapse)AuthorAgeFilesLines
* QDoc: Add tests to cover webXML generationPaul Wicking2019-12-1318-0/+384
| | | | | | | | | | This patch adds new tests and test data for covering webxml generation from plain qdoc, as well as from cpp and qml projects. Fixes: QTBUG-79003 Change-Id: I416e88cb4d0ee5c9a27c5096f4fd0d534a4ba50c Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* QDoc tests: add convenience functionLevon Sargsyan2019-12-131-0/+8
| | | | | | | | Allow tests to remove full paths from strings to circumvent hard-coded paths in output. Change-Id: I4270f201649e9e5145b1ce75d2d372605a95579d Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Make testAndCompare() take an output directory as parameterLevon Sargsyan2019-12-111-4/+16
| | | | | | | | | | | | | This patch introduces an extra parameter to testAndCompare(), that allows comparing expected vs actual in the provided output directory. This is necessary for further refactoring of the test, so each test point will use its own directory for its expected output. This will help to avoid name collisions. Change-Id: I6c539ac7e2ec9dae06d8f03ef30f1c218de50ac9 Reviewed-by: Levon Sargsyan <levon.sargsyan@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Improve QDoc autotest for QML documentationTopi Reinio2019-12-0622-5/+945
| | | | | | | | | | | | Fix the previous test that never generated any QML type documentation, and add new test types, documented in .cpp, .qdoc, and inline in .qml. Use all available \qml-specific QDoc commands. Fixes: QTBUG-80154 Change-Id: I60d9762836b986ca534c664517274517b73c085d Reviewed-by: Levon Sargsyan <levon.sargsyan@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Add regression test for class name sortingLevon Sargsyan2019-12-0412-0/+219
| | | | | | | | | | | | This patch adds a regression test to cover QTBUG-80259 by adding new test data to the existing end-2-end qdoc test suite. The test is covering class name sorting functionality during documentation generation. Change-Id: I6421981596f4d72e8b0ce8351e85a8e5b3856b45 Fixes: QTBUG-80456 Reviewed-by: Levon Sargsyan <levon.sargsyan@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Add new input data to test \reimp commandLevon Sargsyan2019-10-148-1/+112
| | | | | | | | | | | | The purpose of this change is to test the documentation that is generated for comments that use QDoc's \reimp command. This is done by adding a new virtual method to the Test class, and a new inherited class that implements it. Change-Id: If2367362475cc3daf31004dec43e8e15076acfb5 Reviewed-by: Levon Sargsyan <levon.sargsyan@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Add new test data for htmlFromCpp test-pointLevon Sargsyan2019-10-036-2/+89
| | | | | | | | | | | | | This change introduces several data updates for the test htmlFromCpp, that will help us prevent possible regressions in the future. Enhancements include: 1. CPP function with default arguments. 2. Usage of \qtvariable to produce appropriate qmake instructions. 3. Obsolete and deprecated members. Change-Id: I9e1d346b43f515f649004d180d1ddead67df97b4 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* qdoc: generatedoutput autotest: Test more C++ -related commandsTopi Reinio2019-09-304-1/+24
| | | | | | | | | | | | | | | Improve the coverage of C++ test with the following cases: * \macro taking an argument * A non-related member (above macro) associated with a class * \inheaderfile command * \since command Fix incorrect expected output since fixing the bug mentioned in the task number. Task-number: QTBUG-77960 Change-Id: I6010cab9ab0a86a1897a38a397b8d7ba8155f95a Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Add a test case for QDoc's link commandTopi Reinio2019-09-276-3/+67
| | | | | | | | | Validate different ways of linking to other documentation topics. Fix the incorrect expected output in the existing tests. Task-number: QTBUG-78040 Change-Id: Idb6bf9c79ec99894e2fe0ddb7e65150204c96627 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* qdoc: generatedoutput autotest: Display filename on test failureTopi Reinio2019-09-231-1/+2
| | | | | | | | In addition to line number, display also the name of the tested file on failure. Change-Id: Icea00c94e176265bd3d91b6e7301b514bea88048 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Add an initial test case for C++ documentation generated by QDocTopi Reinio2019-09-059-0/+306
| | | | | | | | | This will be expanded later on. The minimal C++ project tests QDoc's HTML output for a module page, namespace and class reference, and some class members. Change-Id: Ifabc394116b675152d3ac95dc96a46e6e9c768ec Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Improve QDoc's generatedOutput autotestTopi Reinio2019-09-051-56/+50
| | | | | | | | | | | Streamline the process of adding new tests/files, by adding a helper function to both run QDoc and compare the generated output with expected data. Add a way to pass extra command line parameters to QDoc. Change-Id: I04870c18ae3d31ae07115d3d8f5d3c77d090418a Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Use correct name in test functionPaul Wicking2019-08-151-2/+2
| | | | | | | | The test actually tests content from a .qdoc-file, not from .cpp. Use correct name in test to avoid future confusion. Change-Id: Iffd21a927f3b17b0df94c14c71bd84a9e21cd7dd Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* QDoc: Add smoke test for QML component outputPaul Wicking2019-07-2611-4/+736
| | | | | | | | | This change adds a simple smoke test using the QML component documentation example as test data. Task-number: QTBUG-71168 Change-Id: Ieb4af0ff69e044cf3eed10297db62edaf066d933 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* QDoc: Refactor testPaul Wicking2019-07-255-0/+252
Refactor test to make it easier to extend. Task-number: QTBUG-71168 Change-Id: Ic5a011b1b15cb3576e4101fb4875abde757dc986 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>