question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow specifying the Assembly to run tests in

See original GitHub issue

I’ve added a new function to my fork of Expecto - runTestsInDifferentAssembly My particular use case is where I have the tests in a F# class library, but I need to run the tests from within a c# exe.

It’s meeting my need, happy to contribute a PR if you believe it’d be of general use.

  /// Runs tests in a passed in assembly with the supplied command-line options.
  /// Returns 0 if all tests passed, otherwise 1
  let runTestsInDifferentAssembly config args (assembly:Assembly) =
    let config = { config with locate = getLocation (assembly) }
    testFromDifferentAssembly assembly
    |> Option.orDefault (TestList ([], Normal))
    |> runTestsWithArgs config args

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mtnrbqcommented, Mar 13, 2019

Hi,

From memory it was unclear to me on the correct way to proceed, and I found another approach.

Regards Rob

Get Outlook for Androidhttps://aka.ms/ghei36


From: Henrik Feldt notifications@github.com Sent: Wednesday, March 13, 2019 6:55:37 PM To: haf/expecto Cc: mtnrbq; Mention Subject: Re: [haf/expecto] Allow specifying the Assembly to run tests in (#94)

@lfrhttps://github.com/lfr He closed his PR the same day as he sent it. I’m not at all sure what he wanted and this was a while ago now. The PR was not merged.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/haf/expecto/issues/94#issuecomment-472317012, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AC5I3Wfon7M86YL-vddVW6lMYJeDxLA2ks5vWK75gaJpZM4L-EW5.

0reactions
hafcommented, Mar 13, 2019

@lfr He closed his PR the same day as he sent it. I’m not at all sure what he wanted and this was a while ago now. The PR was not merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

.net - How do I allow assembly (unit testing one) to access ...
In the example code - App.Infrastructure.UnitTests can access all internals in the assembly that you declared (InternalsVisibleTo attribute) it ...
Read more >
Configure unit tests by using a .runsettings file
To specify a run settings file in the IDE, select Test > Select Settings File. Browse to and select the .runsettings file.
Read more >
Running Tests in Parallel
Put all test classes into a single test collection by default: [assembly: CollectionBehavior(CollectionBehavior. · Set the maximum number of threads to use when ......
Read more >
In-assembly parallel execution · Issue #142 · microsoft/testfx
Description. Enable tests runs to complete faster by allowing tests within a single assembly to execute in parallel.
Read more >
General | ReSharper Documentation
When assemblies are placed in the default project location, test files are retrieved from the same location. Choose Specified folder to run ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found