How to specify wildcards to match test assemblies in appveyor.yml
I'm trying to specify a wildcard to match on the test assemblies in appveyor.yml, using the following:
test:
assemblies:
- *\*.UnitTests.dll
When the build runs it fails immediately with the following error:
Error parsing appveyor.yml: (Lin: 52, Col: 6, Chr: 1452) - (Lin: 52, Col: 7, Chr: 1453): While scanning an anchor or alias, did not find expected alphabetic or numeric character.
I can work around this by specifying the tests to execute directly, but I want to have them picked up automatically. I can't use the default settings as that also fails, because it's trying to load a common assembly that references xUnit, but it then fails because it's referencing an old version of xUnit and it errs when resolving assemblies.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 29 Aug, 2014 08:19 PM
Surrounding the value with single quotes should do the trick:
2 Posted by James Skimming on 01 Sep, 2014 06:59 PM
That's work in so far as the
Error parsing appveyor.yml
issue, but now no test assemblies are found.Previously I has this configuration:
And all the tests from those 4 assemblies were executed, but now with this configuration:
No assemblies are discovered.
I've also tried
'*UnitTests.dll'
but to no avail.Support Staff 3 Posted by Feodor Fitsner on 01 Sep, 2014 07:16 PM
Try '**\*.UnitTests.dll'
-Feodor
4 Posted by James Skimming on 01 Sep, 2014 08:17 PM
That fixed it. Could you update the Running tests documentation as it gives
'*\*.tests.dll'
as the example.Support Staff 5 Posted by Feodor Fitsner on 01 Sep, 2014 08:22 PM
Sure, fixed. Thanks!
6 Posted by James Skimming on 01 Sep, 2014 09:08 PM
Great thanks.
James Skimming closed this discussion on 01 Sep, 2014 09:09 PM.