Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Sept/Oct 2019 Issue of The NT Insider available


Download PDF here: http://insider.osr.com/2019/ntinsider_2019_01.pdf

It’s a particularly BIG issue, too: 40 pages of technical goodness, ranging from WDF to Minifilters. Check it out.
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

TAEF with custom tests

gkoremangkoreman Member Posts: 1

How do you create and run custom TAEF tests in a visual studio integrated environment?

I am developing a file system mini-filter driver (which is why I selected this forum over the other forums), as I'm interested in the workflow of other mini-filter driver developers.

I have followed the instructions on writing tests here: https://docs.microsoft.com/en-us/windows-hardware/drivers/taef/authoring-tests-in-c--
I am able to copy my DLL to the target machine and run tests using TE.exe and the tests run successfully.

I see that there is documentation on writing a driver test and it references using a visual studio template for the project, however I can't seem to find any of the referenced templates.
https://docs.microsoft.com/en-us/windows-hardware/drivers/develop/how-to-write-a-driver-test-

From the list of installed templates in the New Project dialog box, select Visual C# > Windows Driver .
Select Windows Driver Test in C#.

I've attempted to use the Driver Test Group Explorer to find my tests but I can't find any way to add custom tests to the list.
In the Test Explorer I have attempted to use "Run All" to auto-discover the tests in my project, but none of the installed test executors can find any tests.

What I'm trying to do is develop my driver using visual studio and then install the driver and run a mixture of built-in and custom tests while optionally using the kernel debugger to debug the diver. Is anyone using this kind of workflow? Are there other ways to do something similar? How do mini-filter developers quickly iterate and test their drivers, considering that the virtual machine may frequently need to be reset?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Writing WDF Drivers 21 Oct 2019 OSR Seminar Space & ONLINE
Internals & Software Drivers 18 Nov 2019 Dulles, VA
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 27 Apr 2020 OSR Seminar Space & ONLINE