Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

StackOverflow Point

StackOverflow Point Navigation

  • Web Stories
  • Badges
  • Tags
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Web Stories
  • Badges
  • Tags
Home/ Questions/Q 1905
Alex Hales
  • 0
Alex HalesTeacher
Asked: May 31, 20222022-05-31T07:02:56+00:00 2022-05-31T07:02:56+00:00

unit testing – Configuring Visual Studio tests for Spark via external loader

  • 0

[ad_1]

I have two unit test projects, one for basic processing tests that only interact with mocks and another that needs to call an external loader before the tests can the called. The loader is used to invoke Spark via its Java runtime.

I can run my tests on the command line with something like:

spark-submit –class org.apache.spark.deploy.dotnet.DotnetRunner (more options) dotnet test mytest.dll

This successfully runs the tests and dotnet outputs a line like this:

Passed! – Failed: 0, Passed: 2, Skipped: 0, Total: 2, Duration: 10 ms – mytests.dll (netcoreapp3.1)

but the Visual Studio’s Test Explorer doesn’t know it ran and passed, so I get no green ticks. If I run a similar command line:

spark-submit –class org.apache.spark.deploy.dotnet.DotnetRunner (more options) debug

and run the tests from Visual Studio, everything works great and I get my green ticks. But I have to do it manually.

So the questions are:

  • how to I configure Visual Studio so that if I run my tests, it will run them via the loader and show the results.
  • how do I do it just for this one project and not the other unit test project? *.runsettings files seem to be solution wide.

[ad_2]

  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report
Leave an answer

Leave an answer
Cancel reply

Browse

Sidebar

Ask A Question

Related Questions

  • xcode - Can you build dynamic libraries for iOS and ...

    • 0 Answers
  • bash - How to check if a process id (PID) ...

    • 5380 Answers
  • database - Oracle: Changing VARCHAR2 column to CLOB

    • 1169 Answers
  • What's the difference between HEAD, working tree and index, in ...

    • 1111 Answers
  • Amazon EC2 Free tier - how many instances can I ...

    • 0 Answers

Stats

  • Questions : 43k

Subscribe

Login

Forgot Password?

Footer

Follow

© 2022 Stackoverflow Point. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.