Skip to content

Commit 39b8ca0

Browse files
authored
add readme for junit5 assert module (via #459)
1 parent b600f7b commit 39b8ca0

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

allure-junit5-assert/README.MD

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Adding JUnit5-assert may lead to java.lang.OutOfMemoryError: Java heap space
2+
3+
Having a huge class path may lead to OOM, because AspectJ processes all the classes. [Link to documentation](https://www.eclipse.org/aspectj/doc/released/devguide/ltw.html)
4+
5+
You can configure AspectJ to only process required classes
6+
* a) package io.qameta.allure -> to process Allure classes
7+
* b) package org.junit -> to process JUnit classes
8+
* c) package com.company -> to process your test classes
9+
10+
Link to documentation https://www.eclipse.org/aspectj/doc/released/devguide/ltw-configuration.html#configuring-load-time-weaving-with-aopxml-files
11+
12+
In order to avoid this issue add aop.xml into `resources/META-INF/` folder.
13+
14+
```<?xml version="1.0" encoding="utf-8"?>
15+
<aspectj>
16+
<weaver>
17+
<include within="io.qameta..*" />
18+
<include within="org.junit..*" />
19+
<include within="com.company..*" />
20+
</weaver>
21+
</aspectj>```

0 commit comments

Comments
 (0)