Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

MSBuild testing framework written in MSBuild

Notifications You must be signed in to change notification settings

DanielTheCoder/msbuild.MSBTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MSBuild.MSBTest

Build status

MSBTest is a simple testing framework for testing MSBuild scripts

How to use

The nuget package will install the following files to your project

  • Properties/MSBTest.props
  • readme/MSBTest.readme.txt

project structure

Based on conventions MSBTest will find tests, extensions and the collection of scripts which should be test.
The typicall folder structure will look like similar to this:

project  
|-Properties  
|-|-MSBTest.props
|-extensions
|-|-imports.targets
|-readme
|-|-MSBTest.readme.txt
|-src
|-|-imports.targets
|-tests  
|-|-sample-test-suite  
|-|-|-sample.test.targets
|-|-test.import  

Properties/MSBTest.props

Global settings to control the behaviour of MSBTest like tracing or additional project specific configurations.

extensions/imports.targets

If a folder extensions with a containing imports.targets file is present you'll can use this to add custom MSBuild tasks of inline MSBuild tasks to your testsuite. Import with

<Import Project="$(ExtensionsImports)" Condition="Exists('$(ExtensionsImports)')" />

readme/MSBTest.readme.txt

Readme with some additional information about available variables

src/imports.targets

If a folder src with a containing imports.target file is present you'll can use this to import custom MSBuild targets, projects and props. Import with

<Import Project="$(SourceImports)" Condition="Exists('$(SourceImports)')"/>

tests/**/*.test.targets

Files named *.test.targets placed in the folder tests will be identified as test scripts. These files will be excecuted during build time. Contributing

If you are interested in contributing,

  1. Get a Github account
  2. Fork the project
  3. Make your feature addition or bugfix. Please also update the changelog.
  4. Send me a pull request via GitHub

About

MSBuild testing framework written in MSBuild

Resources

Stars

Watchers

Forks

Packages

No packages published