Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

README Update for xunit tips #2

Closed
smudge202 opened this issue Dec 3, 2015 · 3 comments
Closed

README Update for xunit tips #2

smudge202 opened this issue Dec 3, 2015 · 3 comments

Comments

@smudge202
Copy link
Contributor

As per my comment on a previous issue, it would be good to get the Produce output on builds info added to the readme. In addition, I think the follow two tips would be great:

To automate testing of your specs:

  • In project.json, add a dependency to xunit.runner.dnx (at time of writing, version 2.1.0-rc1-build204).
  • Add a second command (in addition to the one used by the prebuild element) as follows:

"test": "xunit.runner.dnx"

This will make your specs appear in test explorer.

The overall output will be along the lines of:

{
    "version": "1.0.0-*",
    "commands": {
        "create-specs": "SpecFlow.Dnx",
        "test": "xunit.runner.dnx"
    },
    "scripts": {
        "prebuild": "dnx create-specs"
    },
    "frameworks": {
        "dnx46": {
            "dependencies": {
                "SpecFlow.Dnx": "1.0.0-alpha8",
                "xunit": "2.1.0",
                "xunit.runner.dnx": "2.1.0-rc1-build204"
            }
        }
    }
}

The above is obvious if you've ever done work with DNX in the past, but for people entering the arena it would be helpful I'm sure.

@stajs
Copy link
Owner

stajs commented Dec 3, 2015

Okay, I saw your other comment first, and have updated the README for "produce outputs".

Good idea for the tips. Did you want to submit a PR (then you'll get the credit)? If so, I suggest referencing the sample project.json, in particular not including the dependencies as framework dependencies (otherwise each framework has to independently reference).

@smudge202
Copy link
Contributor Author

Yup, I'll PR over some Readme changes.

@smudge202
Copy link
Contributor Author

See #5

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants