NSpec: Execution Order before_all does not get called

I’ve followed the execution order page: https://github.com/nspec/NSpec/wiki/Execution-Orders

However it does not seem to call before_all, my understanding is before_all should get called as it’s included in the inherited parent?

I’m on version 3.0.7

using NSpec;
using System;

namespace NSpecExecutionOrder
{
    class parent_class : nspec 
    {
       
        void before_all()
        {
            throw new Exception("!!");
        }
        
    }

    class child_class : parent_class
    {
        void describe_test()
        {
            it["Should Fail"] = () =>
            {
                Console.WriteLine("Never make it here!");
            };

        }

    }
}

@amirrajan Congrats again for RubyMotion 👍

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15

Commits related to this issue

Most upvoted comments

I’m back in the office (UK time) tomorrow, so I’ll be able to look over any checks you need, if you keep me posted and I’ll update the issue.