Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Adding JUnit5-assert may lead to java.lang.OutOfMemoryError: Java heap space

Having a huge class path may lead to OOM, because AspectJ processes all the classes. Link to documentation

You can configure AspectJ to only process required classes

  • a) package io.qameta.allure -> to process Allure classes
  • b) package org.junit -> to process JUnit classes
  • c) package com.company -> to process your test classes

Link to documentation https://www.eclipse.org/aspectj/doc/released/devguide/ltw-configuration.html#configuring-load-time-weaving-with-aopxml-files

In order to avoid this issue add aop.xml into resources/META-INF/ folder.

<aspectj>
    <weaver>
        <include within="io.qameta..*" />
        <include within="org.junit..*" />
        <include within="com.company..*" />
    </weaver>
</aspectj>```
Morty Proxy This is a proxified and sanitized view of the page, visit original site.