Search Unity

Bug Online documentation inconsistencies

Discussion in 'Testing & Automation' started by CubicCBridger, Nov 19, 2017.

  1. CubicCBridger

    CubicCBridger

    Joined:
    Apr 19, 2017
    Posts:
    44
    Hi, not sure if this is the correct category, but I was attempting to automate some unity test runner tests and came across some minor inconsistencies in the documentation which I was hoping could be cleared up for me.

    Under the title "Running from the command line" at https://docs.unity3d.com/Manual/testing-editortestsrunner.html, it says to run a test use the switch "runTest - Executes tests in the Project." except in the example it uses runTests ( which is slightly different as it is the plural), is this intentional?

    Also at https://docs.unity3d.com/Manual/CommandLineArguments.html none of the commands include anything from the test runner and in fact, there is a switch -runEditorTests which is again different to which is compared to what is stated above. None of the other switches that the editor test runner talks about are included in this page either, such as TestPlatform or Test Results (but there is a -editorTestsResultFile instead).

    Could anybody clear this up? Cheers.
     
  2. CubicCBridger

    CubicCBridger

    Joined:
    Apr 19, 2017
    Posts:
    44
  3. Graham-Dunnett

    Graham-Dunnett

    Administrator

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    I'm not an expert at this but would suggest trying runTest against runTests. One will work and the other won't. (Is my 99.9% view.)

    Not sure about the CommandLineArguments version. Will try and make some time to look into this.