Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Running tests results in exception #49

Closed
togakangaroo opened this Issue · 2 comments

2 participants

@togakangaroo
PS C:\Users\gmauer\Documents\WindowsPowerShell\Modules\psake> .\psake-buildTester.ps1
Running psake build tests
.......Invalid specification syntax. Specs should end with _should_pass or _should_fail. executing_module_function_that_depends_on_another_module_should_work.ps1
At C:\Users\gmauer\Documents\WindowsPowerShell\Modules\psake\psake-buildTester.ps1:72 char:8
+         throw <<<<  "Invalid specification syntax. Specs should end with _should_pass or _should_fail. $fileName"
    + CategoryInfo          : OperationStopped: (Invalid specifi...should_work.ps1:String) [], RuntimeException
    + FullyQualifiedErrorId : Invalid specification syntax. Specs should end with _should_pass or _should_fail. executing_module_function_that_depends_on_another_module_should_w
   ork.ps1
@togakangaroo

Even renaming that file many tests fail. (Windows 7 64 bit)

PS C:\Users\gmauer\Documents\WindowsPowerShell\Modules\psake> mv .\specs\executing_module_function_that_depends_on_another_module_should_work.ps1 .\specs\executing_module_function_that_depends_on_another_module_should_pass.ps1
PS C:\Users\gmauer\Documents\WindowsPowerShell\Modules\psake> .\psake-buildTester.ps1
Running psake build tests
.......F
Unhandled Exception: System.TypeInitializationException: The type initializer for 'Microsoft.Build.CommandLine.MSBuildApp' threw an exception. ---> System.TypeLoadException: Could not load type 'Microsoft.Build.Shared.AssemblyResources' from assembly 'Microsoft.Build.Engine, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
   at Microsoft.Build.CommandLine.MSBuildApp..cctor()
   --- End of inner exception stack trace ---
   at Microsoft.Build.CommandLine.MSBuildApp.Main()
F........F.........F.
bad_PreAndPostActions_should_fail.ps1 (Passed)
calling_invoke-task_should_pass.ps1 (Passed)
circular_dependency_in_tasks_should_fail.ps1 (Passed)
default_task_with_action_should_fail.ps1 (Passed)
dotNet4_should_pass.ps1 (Passed)
duplicate_alias_should_fail.ps1 (Passed)
duplicate_tasks_should_fail.ps1 (Passed)
executing_module_function_that_depends_on_another_module_should_pass.ps1 (Failed)
explicitly_specified_32bit_build_should_pass.ps1 (Failed)
failing_postcondition_should_fail.ps1 (Passed)
missing_task_should_fail.ps1 (Passed)
multiline_blocks_should_pass.ps1 (Passed)
nested_builds_should_pass.ps1 (Passed)
running_aspnet_compiler_under_dotNet35_should_pass.ps1 (Passed)
simple_properties_and_tasks_should_pass.ps1 (Passed)
specifying_a_non_existant_buildfile_should_fail.ps1 (Passed)
task_with_alias_and_dependencies_should_pass.ps1 (Passed)
task_with_alias_should_pass.ps1 (Failed)
tasksetup_should_pass.ps1 (Passed)
using_initialization_block_should_pass.ps1 (Passed)
using_msbuild_should_pass.ps1 (Passed)
using_parameters_should_pass.ps1 (Passed)
using_postcondition_should_pass.ps1 (Passed)
using_PreAndPostActions_should_pass.ps1 (Passed)
using_precondition_should_pass.ps1 (Passed)
using_properties_should_pass.ps1 (Passed)
using_required_when_not_set_should_fail.ps1 (Passed)
using_required_when_set_should_pass.ps1 (Passed)
writing_psake_variables_should_pass.ps1 (Failed)

One or more of the build files failed
@damianh
Owner

Currently all specs on Master pass. Please re-open if still an issue.

@damianh damianh closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.