Skip to content

Update mstest tutorial for csproj - #1531

Merged
BillWagner merged 9 commits into
dotnet:csprojfrom
BillWagner:csproj-using-mstest
Feb 24, 2017
Merged

BillWagner merged 9 commits into
dotnet:csprojfrom
BillWagner:csproj-using-mstest

Conversation

@BillWagner

@BillWagner BillWagner commented Feb 9, 2017 •

Copy link
Copy Markdown
Member

And, add that mstest is now cross-platform.
Fixes #1467

@mairaw mairaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @BillWagner! I've left some comments.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that CD into that directory would translate well. Perhaps use a different verb to explain that?
Also, should you start saying that they should open a command prompt?

Plus:
classib -> classlib

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above re. cd

also from our style guide, we should be using italic for paths (we haven't done that in a consistent way)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when referring to mstest as a tool I think it should be cases like "MSTest", no?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, fixed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

directly edit -> manually edit?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Comment thread docs/core/testing/index.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xunit -> xUnit? I see different casings used throughout the changed topics

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOpe. removed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be H2?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this stray ```

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

usually our guidelines recommend on not using ing for the verbs on titles and filenames. I know we haven't followed this pattern for the pair topics so it's up to you whether you want to follow the guideline here or not.

Also this topic is having some issues with TOC. TOC link takes me to the topic but it doesn't stick once you go to the topic.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the title: I tried alternatives to 'unit testing' and anything I tried seemed very contrived. I'd rather leave it as is.

On the TOC: I tried the review site this morning, and I'm not seeing any issues. Can you check again after this update builds?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good!

I'll check the new PR.

Comment thread docs/toc.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

capitalization doesn't match the previous entry

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed for consistency.

@mairaw

mairaw commented Feb 10, 2017 •

Copy link
Copy Markdown
Contributor

One more comment: if this change is applicable to RC4, it should actually be going to master instead of csproj. We're only making the changes in csproj that cannot go live before VS 2017 RTM.

@BillWagner

Copy link
Copy Markdown
Member Author

@mairaw When did the args change for dotnet new? This topic uses the new args for class library and test projects.

Let me know which it should be. The same probably also applies to #1487 If so, I'll close both those PRs and reopen new ones with those changes targeting the master branch.

@BillWagner

Copy link
Copy Markdown
Member Author

Closing this. The changes are now in PR #1538 and target the master branch instead of the csproj branch.

@BillWagner BillWagner closed this Feb 10, 2017
@mairaw

mairaw commented Feb 11, 2017

Copy link
Copy Markdown
Contributor

RC4 introduced the new dotnet new @BillWagner

@BillWagner

Copy link
Copy Markdown
Member Author

Ignore previous comments. These changes should target the csproj branch. Re-opening and closing #1538

spboyer and others added 7 commits February 13, 2017 09:47
* remove doc

* changed to redirect per feedback

* updates, remove from toc
This topic now mirrors the unit testing with dotnet test and xunit.
This meant updating the index file, the TOC, and adding redirection due
to the file name change.
@BillWagner

Copy link
Copy Markdown
Member Author

@mairaw Can you review this now that I've re-opened the original PR (targeting the csproj branch) and address the previous review comments?

@mairaw

mairaw commented Feb 14, 2017

Copy link
Copy Markdown
Contributor

Does staging show you the latest content @BillWagner? I'm not seeing some of the changes there, it's bizarre.

Comment thread docs/core/testing/index.md Outdated
[how to use xunit with .NET Core and Visual Studio](http://xunit.github.io/docs/getting-started-dotnet-core.html).
[how to use xUnit with .NET Core and Visual Studio](http://xunit.github.io/docs/getting-started-dotnet-core.html).

If you prefer using MSTest, try the [walkthrough creating unit tests with MSt est and the .NET CLI](unit-testing-with-mstest.md).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: MSTest has a space in the middle of the word

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

@mairaw mairaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Found some small nits but unfortunately couldn't see the latest built topics on staging.

Next, change directory back into the *unit-testing-using-mstest* directory, and create the *PrimeServices.Tests* directory.
Make the *PrimeService.Tests* directory the current directory and create a new project using
`dotnet new mstest`. This creates a test project
that uses MSstest as the test library.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: MSstest

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

that uses MSstest as the test library.

The generated template configured the test runner
in the PrimeServiceTests.csproj:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: style file name as italic (some other instances are using inline code)

@BillWagner

Copy link
Copy Markdown
Member Author

@mairaw The staging site isn't showing everything. I'll fix the changes you've added in this review and see if that triggers a new build that works.

@mairaw

mairaw commented Feb 24, 2017

Copy link
Copy Markdown
Contributor

Good to merge @BillWagner? The staging site now seems to be working.

@BillWagner

Copy link
Copy Markdown
Member Author

Yes, I'll merge it now. :shipit:

@BillWagner
BillWagner merged commit 5420b3c into dotnet:csproj Feb 24, 2017
@BillWagner
BillWagner deleted the csproj-using-mstest branch March 3, 2017 16:36
BillWagner added a commit that referenced this pull request Mar 7, 2017
* Updated publishing getting started

* Converted project.json to MSBuild

* Updated csproj files to default.

* Revised VSCode topic for MSBuild-based projects

* Tutorials revised for *.csproj projects (#1488)

* Converted some project.json projects

* Replaced csproj project file.

* Updated publishing getting started

* Converted project.json to MSBuild

* Updated csproj files to default.

* Revised VSCode topic for MSBuild-based projects

* Tutorials revised for *.csproj projects (#1488)

* Remove project-json.md (#1520)

* remove doc

* changed to redirect per feedback

* updates, remove from toc

* Updated library examples for csproj.

* Revised xml doc comments topic for csproj

* Addressed comments, fixed some other issues.

* Converted samples to csproj.

* Modified build-related information.

* Addressed comments

* Changed relative URLs to absolute

* Changed links from github to docs

* Update fsharp/tutorials/getting-started-command-line (#1521)

* Updated publishing getting started

* Converted project.json to MSBuild

* Updated csproj files to default.

* Revised VSCode topic for MSBuild-based projects

* Tutorials revised for *.csproj projects (#1488)

* fsharp update to 004769

* fixing --

* undoing --

* address feedback

* addressed nits

* remove global.json add dotnet sln

* add directory output

* add dash to command line in code.

* fixing feedback

* change ms.date

* Update mstest tutorial for csproj (#1531)

* Remove project-json.md (#1520)

* remove doc

* changed to redirect per feedback

* updates, remove from toc

* Update testingng with MSTest for csproj

This topic now mirrors the unit testing with dotnet test and xunit.

* update topic for multiple platforms

This meant updating the index file, the TOC, and adding redirection due
to the file name change.

* Add the meta tag to redirect LiveFyre comments.

* Update per feedback

* Final review and proofread

* Update per feedback on PR #1538

* respond to feedback.

* fixed product name

* Revised out parameter modifier for C# 7

* Corrected bad code example links.

* Fixed one more broken link.

* Fixed alert.

* C# 7 revision of throw

* Corrected code dropout in Lambda Expressions topic.

* Fixed bad code snippet end tag

* project migration from project.json to csproj

* Revised for csproj migration

* Replaced incorrect version of csproj file

* Additional topic added

* Samples ported to MSBuild

* Fix typo

* bringing changes back

* Update pattern matching to fix a couple small issues (#1612)

* Update pattern matching to fix a couple small issues

1. Update feature name for pattern matching (issue #1479)
2. Update description of match expressions to explain that match
expressions in the wrong order generate a compiler error (Issue #1585)

* fix build issues.

Directory move because the solution directory isn’t needed.

* missed one set of build errors.

* update to the 1.1 meta package.

* temporarily disable enable_incremental_build (#1643)

* Addressed review comments

* Incorporated review comments

* removing test protocol doc (#1615)

* uses raw version of sampleQuotes.txt in link (#1652)

This makes it easier to `wget` the file.

* dotnet new updates for MSBuild/csproj (#1649)

* Update index.md

* Update index.md

* Update dependencies.md

* Update index.md

* Update dependencies.md

* Update dotnet.md

* Update index.md

* Update dependencies.md

* Update using-with-xplat-cli-msbuild-folders.md

* Update getting-started-command-line.md

* Update with-visual-studio-code.md

* Update attributes.md

* Update console-teleprompter.md

* Update console-webapiclient.md

* Update attributes.md

* Update inheritance.md

* Update string-interpolation.md

* Update working-with-linq.md

* Update working-with-linq.md

* Update dotnet-migrate.md

* Update using-with-xplat-cli-msbuild-folders.md

* Update using-with-xplat-cli-msbuild-folders.md

* Update dotnet-new.md

* Update dotnet-add-package.md

* Update dotnet-add-reference.md

* Update dotnet-build.md

* Update dotnet-add-reference.md

* Update dotnet-add-package.md

* Update dotnet-clean.md

* Update dotnet-build.md

* Update dotnet-clean.md

* Update dotnet-install-script.md

* Update dotnet-build.md

* Update dotnet-build.md

* Update dotnet-install-script.md

* Update dotnet-list-reference.md

* Update dotnet-msbuild.md

* Update dotnet-new.md

* Update dotnet-nuget-delete.md

* Update dotnet-nuget-locals.md

* Update dotnet-msbuild.md

* dotnet command updates

* Update broken xref

* Update dotnet-pack.md

* Update dotnet-publish.md

* Update using-with-xplat-cli-msbuild-folders.md

* Update with-visual-studio-code.md

* 💥 removing preview3 folder (#1650)

* test redirection with document id

removing dotnet-new from preview3

* 💥 removing preview3 folder

* removed warnings and RC4 mentions

fixing build issues

fixing more build issues

* addressed feedback

more fixes

* rebase and fixes

* fixes

* cleanup

* fix broken link

* Migration and build, publish & run fixes (#1592)

* Migration and build, publish & run fixes

This adds the migraiton document into a migration folder under the
Preview 3 folder. The migration document covers the migration from
project.json to csproj using the automated tools, points to the old DNX
migration for those people that still use that and offers some advice on
getting from pre-RC4 csproj to RC4 (and thus RTW) csproj formats.

The change also adds some content to the dotnet build, dotnet run and
dotnet publish documents to make sure that their differences are clearly
outlined.

Fixes #1512, #1509, #1515

* Fixing broken links

* Responding to PR feedback

* Responding to PR feedback.

* Resolving build breaks

* Fixing build breaks...again.

* some updates

* fixed toc entry

* addressed feedback + fixes

* more fixes

* few more fixes

* removing preview3 links

* Update getting started on macos (#1560)

* update getting started for csproj build system.

Updates all the application code,
the text in the MD file,
and the updated VS Code debugging settings.

* Update for new VS code extension behavior.

* respond to feedback.

* remove version specific notes on the SDK.

* Update the docker getting started topic. (#1503)

* Update the docker getting started topic.

* fix build errors

And update Docker build instructions

* update instructions to use dotnet add package

* Update Unit Testing with XUnit (#1487)

* Remove project-json.md (#1520)

* remove doc

* changed to redirect per feedback

* updates, remove from toc

* run dotnet migrate

* build and run tests

* move projects to the correct updated location

* Update project files and code.

* fix a file name.

* mis-typed the region name.

* proofread and update.

This is ready for review and mergning.

* update instructions to use the new CLI command.

* use updated commands

the older commands still work, but it’s better to standardize on the
new names.

* remove note about .NET Core 1.0

* update for correct xUnit branding.

* small fixes (#1655)

* Documented C# when keyword (#1647)

* documented when keyword

* Incorporated review comments

* Switch statement revised for C# 7 (#1640)

* Switch statement revised for C# 7

* Fixed bad links

* Changed 'switch expression' to 'match expression'

* Addressed review comments.

* Added code snippet tags.

* modified code

* update dotnet-install script topic (#1618)

* update dotnet-install script

* fixed word dropout

* Changes to dotnet new (#1637)

* changes to dotnet new

* removed current dir from the summary

* a few more edits

* fix two broken links. (#1657)

* fix two broken links.

* fix more bad links.

* removing RC4 from the menu

* more fixes
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

Successfully merging this pull request may close these issues.

4 participants