Skip to content

Commit 9eff036

Browse files
committed
updated README.md
1 parent 175bfda commit 9eff036

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ This tiny Library helps you to serve and store environment data for Allure easil
44
## Installation
55
1 Since it's not pushed to the MVN central repository yet, there are two installation options:
66

7-
a) Download already compiled and packaged **.jar** file [here]("https://") and proceed to the 2nd step
8-
b) Pull this repo to your local machine, make a jar by running **`mvn package`** in the repo directory and proceed to the 2nd step
7+
* Download already compiled and packaged **.jar** file [HERE][here] and proceed to the 2nd step
8+
* Pull this repo to your local machine, make a jar by running **`mvn package`** in the repo directory and proceed to the 2nd step
99

1010
2 Put a **.jar** file into your project directory (for instance – create root dir `~/libs/` and paste there)
1111

@@ -41,7 +41,7 @@ b) Pull this repo to your local machine, make a jar by running **`mvn package`**
4141
If your /allure-results is in custom directory – just pass one more parameter
4242
with customPath to your /allure-results directory
4343
*/
44-
AllureEnv.createAllureEnvironmentFile(envData, "/");
44+
AllureEnv.createAllureEnvironmentFile(envData, "/custom/path/to/allure-results/");
4545
4646
// some your other code
4747
}
@@ -52,3 +52,5 @@ b) Pull this repo to your local machine, make a jar by running **`mvn package`**
5252
3. Once suite is finished, generate allure report and take a look on the **Environment** section:
5353

5454
![Allure Report Results](https://i.ibb.co/RbstTc3/Allure-Environment-Creator.png)
55+
56+
[here]: http://s000.tinyupload.com/download.php?file_id=00747392328180442744&t=0074739232818044274430069/

src/main/java/com/github/rsheremeta/AllureEnv.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ private AllureEnv() { }
2121
public static void createAllureEnvironmentFile(Map<String, String> propsConfig, String pathToAllureResultsDir) {
2222
propsConfig.forEach(props::setProperty);
2323

24-
try(FileOutputStream fos = new FileOutputStream(new File(pathToAllureResultsDir))) {
24+
try(FileOutputStream fos = new FileOutputStream(new File(pathToAllureResultsDir + "/environment.properties"))) {
2525
props.store(fos, "Environment properties data for Allure report");
2626
System.out.println("Allure environment.properties file has been created and stored successfully in the " + pathToAllureResultsDir);
2727
} catch (IOException e) {

0 commit comments

Comments
 (0)