Commit Graph

47 Commits

Author SHA1 Message Date
Veronica Berglyd Olsen 3403d98c72 Rename package from 'nw' to 'novelwriter' (#868)
* Rename nw folder to novelwriter
* Rename nw to novelwriter in auxiliary files
* Rename nw to novelwriter in main app source
* Rename nw to novelwriter in tests
* Make setup script for pdf docs less spammy
2021-08-26 17:33:54 +02:00
Veronica Berglyd Olsen 1bf584f9bf Add [NEW PAGE] page and [VSPACE] to Insert menu (#848)
* Add menu entries for inserting new page and vspace codes
* Update tests
2021-08-15 18:58:49 +02:00
Veronica Berglyd Olsen bb1a778277 Merge Novel Layouts (#837)
* Merge novel layouts and simplify the Tokenizer class
* Fix core tests
* Delete auto-layout code
* Remove no longer needed item layouts
* Remove references to deleted item layouts in test
* Make some minor changes to Tokenizer class and update tests
* Update test reference files
* Update sample project
* Fix a few issues with the Tokenizer
* Centre some text in the sample documents
* Make some minor changes to how new projects are generated
* Add support for New Page and VSpace commands to the Tokenizer
* Remove Title and Page layouts and add codes for page break and vertical space
* Add document layout and fix some issues in index class with new title formats
* Update tests and reference files
* Bump the project file version and fix a minor issue in items class
* Update tests and test coverage
* Clean up some warnings and issues in tests
2021-08-02 23:44:35 +02:00
Veronica Berglyd Olsen e5c715695e Config class improvements (#826)
* Subclass ConfigParser
* Remove redundant variables and update tests
* Update file description
* Move NWConfigParser class to common.py
* Improve coverage of config class
* Use NWConfigParser also in themes.py
* Update config class file header
* Fix comment
* Update the usage of ConfigParser to recommended practice and extend tests
* Improve logging for info level a bit
2021-07-28 00:10:15 +02:00
Veronica Berglyd Olsen 36be7b0b33 Test Coverage of the Editor (#787)
* Drop the _qDocument class variables
* Split up the current doceditor test file
* Add tests for editor init, load and save
* Add tests for editor meta functions and actions
* Add tests for editor insert functions
* Add tests for editor text manipulation and block formatting
* Fix code style
* Add text coverage for alignment and indent
2021-07-05 16:10:52 +02:00
Veronica Berglyd Olsen 6d7ca2bb86 Cleanup (#820)
* Update instructions and readmes
* Cleanup in base files
* Cleanup in core files
* Cleanup in gui files
* Cleanup in dialog files
* Cleanup in tools files
* Cleanup in test files
2021-07-04 17:57:54 +02:00
Veronica Berglyd Olsen 26912f226f Add double space before in-line comments 2021-06-25 21:36:52 +02:00
Veronica Berglyd Olsen 991a61f2f6 Remove encoding line and add spaces between classes and functions, tests 2021-06-25 21:04:48 +02:00
Veronica K. B. Olsen ce8264b8f2 New split tool test 2021-05-02 19:47:04 +02:00
Veronica K. B. Olsen 6c79a1daba Test terminology update 2021-05-02 17:48:28 +02:00
Veronica K. B. Olsen 6cc974a8e9 Fix tests 2021-02-18 20:47:22 +01:00
Veronica K. B. Olsen e4d03f9581 Fix tests for variable change, and change monkeypatches to use the context manager 2021-02-18 19:21:46 +01:00
Veronica K. B. Olsen fb09066679 Remove debug print and add test coverage 2021-02-17 09:53:27 +01:00
Veronica K. B. Olsen dd18040232 Fix some source file headers 2021-02-01 21:52:51 +01:00
Veronica K. B. Olsen 692159219e Fix an issue with generated files in test projects in the test suite 2021-01-15 10:40:19 +01:00
Veronica K. B. Olsen 585287b487 Reorganise remainin GUI tests, but no improved coverage 2020-12-12 18:58:05 +01:00
Veronica K. B. Olsen c37d4013f8 Refactored build, merge, split, and item editor tests 2020-12-12 16:56:15 +01:00
Veronica K. B. Olsen 70eadd11cb Separated out writing stats test and updated it 2020-12-12 14:44:33 +01:00
Veronica K. B. Olsen 9772c85ece Rewritten Config class test 2020-12-07 23:34:12 +01:00
Veronica K. B. Olsen bd9ed0d5d3 Fix testCoreProject_Methods test on Windows 2020-12-05 21:24:19 +01:00
Veronica K. B. Olsen d274c418d1 Remove nwFuncTemp fixture 2020-12-05 21:08:42 +01:00
Veronica K. B. Olsen c353e9ffb1 Updated and new tests for NWProject class 2020-12-05 21:06:57 +01:00
Veronica K. B. Olsen 57397fa2bc Updated existing NWProject tests 2020-12-04 21:28:35 +01:00
Veronica K. B. Olsen c13bd18271 Remove nw prefix from common test files 2020-12-03 17:39:42 +01:00
Veronica K. B. Olsen 8cc6fa6030 New test for NWDoc class 2020-12-01 22:19:18 +01:00
Veronica K. B. Olsen 2018d44ba8 Some changes to fixtures and added tests README 2020-12-01 21:00:31 +01:00
Veronica K. B. Olsen afea7b66bd Rename nwRef to refDir 2020-12-01 10:50:41 +01:00
Veronica K. B. Olsen 2c0eaeb557 Fix old tests 2020-12-01 10:23:35 +01:00
Veronica K. B. Olsen 6a1dc8b5ae New test for NWItem class 2020-11-30 22:28:01 +01:00
Veronica K. B. Olsen e251ddacd2 Completed coverage of setProjectPath and made all os imports explicit 2020-09-29 23:27:51 +02:00
Veronica K. B. Olsen 0c9849b906 Various test changes, and improvements to project wizard test 2020-09-29 21:10:21 +02:00
Veronica K. B. Olsen 28ef1d12b0 All message box questions are now handled in test suite, so no need to check for showGUI 2020-09-28 22:22:29 +02:00
Veronica K. B. Olsen 678a31855f Improved coverage of dialogs tools, and import document feature 2020-09-28 20:29:52 +02:00
Veronica K. B. Olsen fc096ddb0b Significant improvements to dialog tests 2020-09-28 18:17:14 +02:00
Veronica K. B. Olsen fa72b9b0d0 Added test to convert older project to new format 2020-09-26 16:48:43 +02:00
Veronica K. B. Olsen 5810ba68b5 Added test for main preferences and improved the Preferences dialog a bit 2020-09-19 20:30:04 +02:00
Veronica K. B. Olsen 64cd356c34 Decoupled gui tests 2020-08-28 16:10:47 +02:00
Veronica K. B. Olsen b065e4d52b Decoupled config tests 2020-08-28 12:56:03 +02:00
Veronica K. B. Olsen 8340c0665d Made project tests independent 2020-08-28 12:31:38 +02:00
Veronica K. B. Olsen 6af156af39 Added test for insert menu functionality 2020-08-16 11:48:46 +02:00
Veronica K. B. Olsen 77b1d50e31 Cleaned up tests for syntax 2020-08-14 19:50:29 +02:00
Veronica K. B. Olsen a46803232c Added tests for new sample and new custom project 2020-08-11 00:02:02 +02:00
Veronica K. B. Olsen df61101ac3 Added project root path to sys.path for test suite 2020-08-04 12:59:24 +02:00
Veronica K. B. Olsen 67b369b532 Chache dir is not commited, so doesn't exist when running CI 2020-05-30 12:16:45 +02:00
Veronica K. B. Olsen ec0dc54e55 Cleare meta data when running test on lipsum project, and add the correct reference files 2020-05-30 12:08:56 +02:00
Veronica K. B. Olsen 5861892b2d Added a test for the Build Novel Project tool 2020-05-30 11:42:09 +02:00
Veronica K. B. Olsen 2768c46976 Updated tests and added a better way to save temp files 2019-05-18 15:02:58 +02:00