Docs: Update Information about Running Unittests (#4093)
* Expanded information in docs * Revert run.xml changes * Update docs/tests.md Co-authored-by: qwint <qwint.42@gmail.com> * Remove newline * Apply suggestions from code review Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com> * Added suggestsions from code review --------- Co-authored-by: qwint <qwint.42@gmail.com> Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									382a5df1d8
								
							
						
					
					
						commit
						3f6754d7f2
					
				|  | @ -85,4 +85,4 @@ PyCharm has a built-in version control integration that supports Git. | |||
| 
 | ||||
| ## Running tests | ||||
| 
 | ||||
| Run `pip install pytest pytest-subtests`, then use your IDE to run tests or run `pytest` from the source folder. | ||||
| Information about running tests can be found in [tests.md](https://github.com/ArchipelagoMW/Archipelago/blob/main/docs/tests.md#running-tests) | ||||
|  |  | |||
|  | @ -84,7 +84,19 @@ testing portions of your code that can be tested without relying on a multiworld | |||
| 
 | ||||
| ## Running Tests | ||||
| 
 | ||||
| In PyCharm, running all tests can be done by right-clicking the root `test` directory and selecting `run Python tests`. | ||||
| If you do not have pytest installed, you may get import failures. To solve this, edit the run configuration, and set the | ||||
| working directory of the run to the Archipelago directory. If you only want to run your world's defined tests, repeat | ||||
| the steps for the test directory within your world. | ||||
| #### Using Pycharm | ||||
| 
 | ||||
| In PyCharm, running all tests can be done by right-clicking the root test directory and selecting Run 'Archipelago Unittests'.  | ||||
| Unless you configured PyCharm to use pytest as a test runner, you may get import failures. To solve this, edit the run configuration,  | ||||
| and set the working directory to the Archipelago directory which contains all the project files.  | ||||
| 
 | ||||
| If you only want to run your world's defined tests, repeat the steps for the test directory within your world. | ||||
| Your working directory should be the directory of your world in the worlds directory and the script should be the  | ||||
| tests folder within your world. | ||||
| 
 | ||||
| You can also find the 'Archipelago Unittests' as an option in the dropdown at the top of the window | ||||
| next to the run and debug buttons. | ||||
| 
 | ||||
| #### Running Tests without Pycharm | ||||
| 
 | ||||
| Run `pip install pytest pytest-subtests`, then use your IDE to run tests or run `pytest` from the source folder. | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue