Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Fuchu unit tests #742

Closed
haf opened this issue Apr 5, 2015 · 8 comments
Closed

Question: Fuchu unit tests #742

haf opened this issue Apr 5, 2015 · 8 comments

Comments

@haf
Copy link
Member

haf commented Apr 5, 2015

Hi,

How would I configure FAKE to run Fuchu? It's just an executable; or FAKE could itself load the DLL and run all tests in it.

I suppose I could use ProcessHelper; does it automatically take care to prefix mono, like albacore does, or would I have to add that manually?

@forki
Copy link
Member

forki commented Apr 7, 2015

Yes IIRC we detect mono. /cc @mausch

@mausch
Copy link
Member

mausch commented Apr 7, 2015

See also #234

@haf
Copy link
Member Author

haf commented Apr 7, 2015

Ok, laundry list:

  • Same sort of failed/succeeded outputs as other unit tests
  • Same sort of performance output as other tests
  • Ability to specify a computer-readable output for saving into the CI environment
  • A task that invokes the executable, since that's the 'form' that FAKE has for its tasks.

Beware that I'm fully OK with this NOT being implemented, it's up to you. It's just that there are tasks for other test runners, so it would be natural this one would too have a task.

@mausch
Copy link
Member

mausch commented Apr 7, 2015

About "same output as other tests / computer-readable output" I was considering ( mausch/Fuchu#1 ) generating NUnit XML output, which is probably understood by every tool out there.

About the FAKE task, do you have any pseudo-code in mind of how it would look like when calling it?

@pjean
Copy link

pjean commented Sep 27, 2015

Hi,

Can we have an update about Fuchu integration ?
I'm newbie to F# and Fake. If there is a workaround to run Fuchu with Fake, can you provide an example, please ?

Thanks

@mausch
Copy link
Member

mausch commented Sep 28, 2015

@pjean Here's an example: https://github.com/mausch/Fuchu/blob/5ef9ec303abf56f8ca5511cda3fb53bfa705007c/build.fsx#L112 i.e. you can just run the tests executable like any other executable.

Kazark added a commit to Kazark/FAKE that referenced this issue Jun 15, 2016
Something like this has been discussed at fsprojects#234, and there is an open
issue for this more specifically at fsprojects#742. And while there seem to be
some questions of how to do this in the best way, or polish it, I am of
the opinion that it is better to have something than nothing. It is
rather reassuring to n00bs particularly when they see that tools are at
least aware of each other, and this is one of the big draws of FAKE.

The code is derived from the example from Fuchu itself:

    https://github.com/mausch/Fuchu/blob/5ef9ec303abf56f8ca5511cda3fb53bfa705007c/build.fsx#L119
@Kazark
Copy link
Contributor

Kazark commented Jun 22, 2016

Is this closed by #1268 ?

@mausch
Copy link
Member

mausch commented Jun 23, 2016

Cool, had not seen #1268 . Yeah I think this can be closed now...

@forki forki closed this as completed Jun 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants