Writing tests with MSTest v2

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ค. 2024
  • MSTest v2 on GitHub
    github.com/microsoft/testfx
    Unit Testing with MSTest
    docs.microsoft.com/en-us/dotn...
    MSTest v2 Framework docs
    github.com/microsoft/testfx-docs
    Quarterly Reports
    github.com/microsoft/testfx-d...
    MS Test Releases
    github.com/microsoft/testfx-d...
    The Microsoft Test Framework (MSTest) is an extensible testing framework for .NET applications. With MSTest v2, developers now have the ability to target .NET Core.
    In this episode, Sarabjot Singh sits down with Kendra to give us a demonstration of how developers can get started with MSTest v2 and make use of some of the newer features.
    [01:08] - What is MSTest?
    [02:58] - What is new with MSTest v2?
    [06:30] - How to migrate from MSTest v1 to v2?
    [09:40] - How to create a new .NET Core test project?
    [12:24] - How to enable parallel test execution?
    [16:20] - What are the extensibility points with MSTest v2?
    [23:13] - How to get updates about MSTest RFCs and releases?
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 16

  • @MrGeekGamer
    @MrGeekGamer 4 ปีที่แล้ว +18

    Doesn't talk about writing tests at all, only how to update to v2 and extensibility features.

  • @sau002
    @sau002 5 ปีที่แล้ว

    Good stuff. I am glad to see this.

  • @ivandrofly
    @ivandrofly 3 ปีที่แล้ว +1

    Extension method
    Recursive running test 18:00
    DynamicData 21:00
    Extending MStest 22:00

  • @shrividyahegde3119
    @shrividyahegde3119 3 ปีที่แล้ว

    while getting the data from the methods using Data Row, is there any naming convention to be followed , how does the test method map the returned data to the parameters of the Test method?

  • @meirkr
    @meirkr 5 ปีที่แล้ว +7

    Looks nice after we have adopted xunit.
    Trying to compare, does it also support async methods?
    How about grouping the tests by categories?
    Does it support fixture like solution?
    Disposable pattern?
    And about something xunit doesn't have but mstest1 does: support dll resolving path by runsettings. Does it also support this feature?

  • @Tolg
    @Tolg 3 ปีที่แล้ว

    Wish you could do a basic getting started demo, with 1) VSCode 2) Basic .Net Core 5 Console/Web app 3) MS Test 2.

  • @aniruddhadonge
    @aniruddhadonge 3 ปีที่แล้ว

    If anybody can help that ill be great. How to rerun failed test in mstest v2

  • @vinzer72frie
    @vinzer72frie 5 ปีที่แล้ว +2

    Kendra is so cute

    • @MrGeekGamer
      @MrGeekGamer 4 ปีที่แล้ว

      Hired for her skill, no doubt.

  • @user-ov7ff4tx4j
    @user-ov7ff4tx4j 4 ปีที่แล้ว +2

    The migration from V1 to V2 is BAD. It is not so easy in a real project with hundreds of tests.
    MSTest V2 doesn't work with TestSettings file, you must use RunSettings.
    It doesn't work with DataSource attribute, so you need to implement a code of your own to read the test data and change it in all your tests!
    It doesn't work with DeploymentItem.
    A new framework version should UPGRADE the previous framework, not to remove very important features that are used in a lot of projects.

  • @marcpanther7924
    @marcpanther7924 5 ปีที่แล้ว

    v2: still hot

  • @sandeshad1046
    @sandeshad1046 4 ปีที่แล้ว

    It's good but do not support execution from MTM.

  • @atomadeus
    @atomadeus ปีที่แล้ว

    Can you speak English?