Using the xUnit 2.0 VS runner I've set up multiple builds, including one CI build, for a project that implements unit testing. The only problem is, I'd like to filter those tests somehow based on the type of build that runs. I know there's no easy way to do it like in the xUnit console runner but I wanted to know if anyone had ideas for a good workaround. Currently the best option is to simply give up on that and split my unit tests into separate dlls, but that would require a lot of redundant testing code + maintenance. I believe I could also call the console runner as a command in an MSBuild .targets file, and filter on traits, but that would obscure the test data, right? Hopefully I'm missing an easier solution that's right in front of me.
Aucun commentaire:
Enregistrer un commentaire