AutoJunit

a project about auto gen junit source

License

License

Categories

Categories

JUnit Unit Testing Auto Application Layer Libs Code Generators
GroupId

GroupId

com.github.onlypiglet
ArtifactId

ArtifactId

autojunit
Last Version

Last Version

1.0.1-alpha
Release Date

Release Date

Type

Type

pom
Description

Description

AutoJunit
a project about auto gen junit source
Project URL

Project URL

https://github.com/onlypiglet/AutoJunit
Source Code Management

Source Code Management

https://github.com/onlypiglet/AutoJunit.git

Download autojunit

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.onlypiglet/autojunit/ -->
<dependency>
    <groupId>com.github.onlypiglet</groupId>
    <artifactId>autojunit</artifactId>
    <version>1.0.1-alpha</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.onlypiglet/autojunit/
implementation 'com.github.onlypiglet:autojunit:1.0.1-alpha'
// https://jarcasting.com/artifacts/com.github.onlypiglet/autojunit/
implementation ("com.github.onlypiglet:autojunit:1.0.1-alpha")
'com.github.onlypiglet:autojunit:pom:1.0.1-alpha'
<dependency org="com.github.onlypiglet" name="autojunit" rev="1.0.1-alpha">
  <artifact name="autojunit" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.github.onlypiglet', module='autojunit', version='1.0.1-alpha')
)
libraryDependencies += "com.github.onlypiglet" % "autojunit" % "1.0.1-alpha"
[com.github.onlypiglet/autojunit "1.0.1-alpha"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • autojunit-core
  • autojunit-plugin

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

Versions

Version
1.0.1-alpha
1.0.0-alpha