Allow specifying the Assembly to run tests in
See original GitHub issueI’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:
- Created 7 years ago
- Comments:10 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@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.