Skip to content

OnlyPiglet/AutoJunit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoJunit

LICENSEGPL Licencejdk>=1.8codacyAJ AJ


简介

自动生成基于Maven工程的Junit的单元测试文件

快速入门

<dependency>
    <groupId>com.github.onlypiglet</groupId>
    <artifactId>autojunit-core</artifactId>
    <version>1.0.1-alpha</version>
</dependency>


<plugin>    
    <groupId>com.github.onlypiglet</groupId>
    <artifactId>autojunit</artifactId>
    <version>1.0.1-alpha</version>   
    <executions>        
        <execution>            
            <phase>generate-test-sources</phase>            
            <goals>                
                <goal>genjunit</goal>            
            </goals>        
        </execution>    
    </executions>
</plugin>

在Pom.xml中添加相应插件,并执行mvn clean generate-test-sources

About

A auto junit maven plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages