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

Command-Line Scaffolding for Unit Test Projects #5727

Closed
SantoDE opened this issue Sep 1, 2015 · 2 comments
Closed

Command-Line Scaffolding for Unit Test Projects #5727

SantoDE opened this issue Sep 1, 2015 · 2 comments

Comments

@SantoDE
Copy link

SantoDE commented Sep 1, 2015

Hey there,

what do you guys think about a command line scaffolding option to create Unit Test Projects for our own modules?

I'm currently trying to create such a module on my own and therefore I ended up "missing" such a feature.

Cheers,
SantoDE

@rtpHarry
Copy link
Contributor

rtpHarry commented Sep 2, 2015

I didn't realise this when you brought it up but I've just noticed that there is actually a command in Orchard.exe for creating a module test project.

It was added in 4ce3ee3

You can use it by going to your Orchard.Web\Bin folder, running orchard.exe and then using this command:

codegen moduletests <module-name> [/IncludeInSolution:true|false]

Mind you, I have just tried it out and all it does is creates an empty project inside your module folder called modulename.tests and creates a stub csproj file to go in it.

@Piedone
Copy link
Member

Piedone commented Sep 3, 2015

You don't need anything more by default in a test project as the next step is writing the tests: there is no one size fits all module-level code generation solution here. And actually adding the right references is the trickiest part, trust me.

Closing as already implemented. But if you'd like to add a note about this to the Docs everybody would be very grateful :-).

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

3 participants