public string ParamNameRegex(string config)
        {
            File.Copy(config, "allureConfig.json", true);
            var configuration = new PluginConfiguration(AllureLifecycle.CreateInstance().Configuration);

            return(configuration.ParamNameRegex?.ToString());
        }
Beispiel #2
0
        public void Defaults(string config)
        {
            RestoreState(config);

            var allureCycle = AllureLifecycle.CreateInstance();

            Assert.IsType <AllureLifecycle>(allureCycle);
        }
Beispiel #3
0
        public void ShouldAccessConfigProperties()
        {
            var config = @"{""allure"":{""customKey"": ""customValue""}}";

            RestoreState(config);
            var cycle = AllureLifecycle.CreateInstance();

            Assert.Equal("customValue", cycle.Configuration["allure:customKey"]);
        }