-
-
Notifications
You must be signed in to change notification settings - Fork 6
Ability to store the configuration file in the specified directory
Available from version 2.5.3.
If for some reason (for example, if you want to use one config for several projects) you cannot store the configuration file in the project's build directory, you can specify where to find it.
To do this, in your tests assembly, add to any class a static field or static property or constant, with the name as shown below:
private static string AllureConfigDir = @"C:\SomeFolderWithConfig\";
or
protected static string AllureConfigDir => //some code to return path here
(if path of directory with config is dynamic)
or
public const string AllureConfigDir = @"C:\SomeFolderWithConfig\";
Where value is the path to the folder where allureConfig.json is stored.
Therefore, if there is a member named AllureConfigDir
, the config will be searched
in the directory he provided.
Also, you can use any modifier from the presented.