You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by GitBox <gi...@apache.org> on 2020/05/17 07:00:25 UTC

[GitHub] [lucenenet] bongohrtech commented on pull request #287: Implemenation of "System Properties" in .NET (addresses #254)

bongohrtech commented on pull request #287:
URL: https://github.com/apache/lucenenet/pull/287#issuecomment-629753027


   I have been unable to read test parameters from the command line. This impacts on the TestParametersConfigurationSource implementation. 
   
   https://github.com/Microsoft/vstest-docs/blob/master/docs/RunSettingsArguments.md suggests you can pass a runsettings file and args via dotnet test but I was unable to get this to work.
   
   This test would not pick up any args via CLI. 
   
           [Test]
           public virtual void TestCommandLineProperty()
           {
               TestContext.Progress.WriteLine("TestContext.Parameters ({0})", TestContext.Parameters.Count);
               foreach (var x in TestContext.Parameters.Names)
                   TestContext.Progress.WriteLine(string.Format("{0}={1}", x, TestContext.Parameters[x]));
   
           }
   
   Further, and more importantly, even when passing args via CLI i was not able to use a : colon as a separator. This is possible in a runsettings file but not on the CLI it seems:
   dotnet test  -- tests:seed=0x00000010
   returns
   "One or more runsettings provided contain invalid token"
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org